@@ -188,7 +188,7 @@ def create_and_synth(
188
188
189
189
return run_tcl_template (
190
190
ctx ,
191
- ctx .file ._create_project_tcl_template ,
191
+ ctx .file .create_project_tcl_template ,
192
192
substitutions ,
193
193
ctx .file .xilinx_env ,
194
194
all_files + ip_block_dirs ,
@@ -230,7 +230,7 @@ vivado_create_project = rule(
230
230
doc = "Jobs to pass to vivado which defines the amount of parallelism." ,
231
231
default = 4 ,
232
232
),
233
- "_create_project_tcl_template " : attr .label (
233
+ "create_project_tcl_template " : attr .label (
234
234
doc = "The create project tcl template" ,
235
235
default = "@rules_hdl//vivado:create_project.tcl.template" ,
236
236
allow_single_file = [".template" ],
@@ -292,7 +292,7 @@ vivado_synthesize = rule(
292
292
doc = "Jobs to pass to vivado which defines the amount of parallelism." ,
293
293
default = 4 ,
294
294
),
295
- "_create_project_tcl_template " : attr .label (
295
+ "create_project_tcl_template " : attr .label (
296
296
doc = "The create project tcl template" ,
297
297
default = "@rules_hdl//vivado:create_project.tcl.template" ,
298
298
allow_single_file = [".template" ],
@@ -326,7 +326,7 @@ def _vivado_synthesis_optimize_impl(ctx):
326
326
327
327
default_info = run_tcl_template (
328
328
ctx ,
329
- ctx .file ._synthesis_optimize_template ,
329
+ ctx .file .synthesis_optimize_template ,
330
330
substitutions ,
331
331
ctx .file .xilinx_env ,
332
332
[checkpoint_in ],
@@ -360,7 +360,7 @@ vivado_synthesis_optimize = rule(
360
360
doc = "Threads to pass to vivado which defines the amount of parallelism." ,
361
361
default = 8 ,
362
362
),
363
- "_synthesis_optimize_template " : attr .label (
363
+ "synthesis_optimize_template " : attr .label (
364
364
doc = "The synthesis optimzation tcl template" ,
365
365
default = "@rules_hdl//vivado:synth_optimize.tcl.template" ,
366
366
allow_single_file = [".template" ],
@@ -392,7 +392,7 @@ def _vivado_placement_impl(ctx):
392
392
393
393
default_info = run_tcl_template (
394
394
ctx ,
395
- ctx .file ._placement_template ,
395
+ ctx .file .placement_template ,
396
396
substitutions ,
397
397
ctx .file .xilinx_env ,
398
398
[checkpoint_in ],
@@ -426,7 +426,7 @@ vivado_placement = rule(
426
426
doc = "Threads to pass to vivado which defines the amount of parallelism." ,
427
427
default = 8 ,
428
428
),
429
- "_placement_template " : attr .label (
429
+ "placement_template " : attr .label (
430
430
doc = "The placement tcl template" ,
431
431
default = "@rules_hdl//vivado:placement.tcl.template" ,
432
432
allow_single_file = [".template" ],
@@ -458,7 +458,7 @@ def _vivado_place_optimize_impl(ctx):
458
458
459
459
default_info = run_tcl_template (
460
460
ctx ,
461
- ctx .file ._place_optimize_template ,
461
+ ctx .file .place_optimize_template ,
462
462
substitutions ,
463
463
ctx .file .xilinx_env ,
464
464
[checkpoint_in ],
@@ -492,7 +492,7 @@ vivado_place_optimize = rule(
492
492
doc = "Threads to pass to vivado which defines the amount of parallelism." ,
493
493
default = 8 ,
494
494
),
495
- "_place_optimize_template " : attr .label (
495
+ "place_optimize_template " : attr .label (
496
496
doc = "The placement tcl template" ,
497
497
default = "@rules_hdl//vivado:place_optimize.tcl.template" ,
498
498
allow_single_file = [".template" ],
@@ -540,7 +540,7 @@ def _vivado_routing_impl(ctx):
540
540
541
541
default_info = run_tcl_template (
542
542
ctx ,
543
- ctx .file ._route_template ,
543
+ ctx .file .route_template ,
544
544
substitutions ,
545
545
ctx .file .xilinx_env ,
546
546
[checkpoint_in ],
@@ -574,7 +574,7 @@ vivado_routing = rule(
574
574
doc = "Threads to pass to vivado which defines the amount of parallelism." ,
575
575
default = 8 ,
576
576
),
577
- "_route_template " : attr .label (
577
+ "route_template " : attr .label (
578
578
doc = "The placement tcl template" ,
579
579
default = "@rules_hdl//vivado:route.tcl.template" ,
580
580
allow_single_file = [".template" ],
@@ -601,7 +601,7 @@ def _vivado_write_bitstream_impl(ctx):
601
601
602
602
default_info = run_tcl_template (
603
603
ctx ,
604
- ctx .file ._write_bitstream_template ,
604
+ ctx .file .write_bitstream_template ,
605
605
substitutions ,
606
606
ctx .file .xilinx_env ,
607
607
[checkpoint_in ],
@@ -627,7 +627,7 @@ vivado_write_bitstream = rule(
627
627
doc = "Threads to pass to vivado which defines the amount of parallelism." ,
628
628
default = 8 ,
629
629
),
630
- "_write_bitstream_template " : attr .label (
630
+ "write_bitstream_template " : attr .label (
631
631
doc = "The write bitstream tcl template" ,
632
632
default = "@rules_hdl//vivado:write_bitstream.tcl.template" ,
633
633
allow_single_file = [".template" ],
@@ -722,7 +722,7 @@ def _xsim_test_impl(ctx):
722
722
723
723
_ , vivado_log , vivado_journal = run_tcl_template (
724
724
ctx ,
725
- ctx .file ._xsim_test_template ,
725
+ ctx .file .xsim_test_template ,
726
726
substitutions ,
727
727
ctx .file .xilinx_env ,
728
728
all_files ,
@@ -781,7 +781,7 @@ xsim_test = rule(
781
781
mandatory = True ,
782
782
allow_single_file = [".sh" ],
783
783
),
784
- "_xsim_test_template " : attr .label (
784
+ "xsim_test_template " : attr .label (
785
785
doc = "The tcl template to run on vivado." ,
786
786
default = "@rules_hdl//vivado:xsim_test.tcl.template" ,
787
787
allow_single_file = [".template" ],
@@ -843,7 +843,7 @@ def _vivado_create_ip_impl(ctx):
843
843
encrypt_content , encrypted_files , post_processing_command = generate_encrypt_tcl (
844
844
ctx ,
845
845
all_files ,
846
- ctx .file ._keyfile .path ,
846
+ ctx .file .keyfile .path ,
847
847
ip_src_dir ,
848
848
)
849
849
outputs += encrypted_files
@@ -866,10 +866,10 @@ def _vivado_create_ip_impl(ctx):
866
866
867
867
ip_block_outputs = run_tcl_template (
868
868
ctx ,
869
- ctx .file ._create_ip_block_template ,
869
+ ctx .file .create_ip_block_template ,
870
870
substitutions ,
871
871
ctx .file .xilinx_env ,
872
- all_files + [ctx .file ._keyfile ],
872
+ all_files + [ctx .file .keyfile ],
873
873
outputs ,
874
874
post_processing_command ,
875
875
)
@@ -922,12 +922,12 @@ vivado_create_ip = rule(
922
922
mandatory = True ,
923
923
allow_single_file = [".sh" ],
924
924
),
925
- "_create_ip_block_template " : attr .label (
925
+ "create_ip_block_template " : attr .label (
926
926
doc = "The create project tcl template" ,
927
927
default = "@rules_hdl//vivado:create_ip_block.tcl.template" ,
928
928
allow_single_file = [".template" ],
929
929
),
930
- "_keyfile " : attr .label (
930
+ "keyfile " : attr .label (
931
931
doc = "The keyfile to use when optionally encrypting" ,
932
932
default = "@rules_hdl//vivado:xilinx_keyfile.txt" ,
933
933
allow_single_file = [".txt" ],
0 commit comments