File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,10 @@ def _synthesize_design_impl(ctx):
132
132
args .add_all ("-c" , [synth_tcl ]) # run synthesis tcl script
133
133
if ctx .attr .extra_tcl_command :
134
134
args .add ("-p" , ctx .attr .extra_tcl_command )
135
+ if ctx .attr .autoidx_seed :
136
+ args .add ("--autoidx" , ctx .attr .autoidx_seed )
137
+ if ctx .attr .hash_seed :
138
+ args .add ("--hash-seed" , ctx .attr .hash_seed )
135
139
136
140
dont_use_args = ""
137
141
or_config = ctx .attr .standard_cells [StandardCellInfo ].open_road_configuration
@@ -346,12 +350,20 @@ synthesize_rtl = rule(
346
350
allow_single_file = True ,
347
351
doc = "Verilog file that maps yosys adder to PDK adders." ,
348
352
),
353
+ "autoidx_seed" : attr .int (
354
+ mandatory = False ,
355
+ doc = "Controls the starting point for the autoidx pass; introduces additional variability into the synthesis logic." ,
356
+ ),
349
357
"deps" : attr .label_list (
350
358
providers = [[VerilogInfo ], [UhdmInfo ]],
351
359
),
352
360
"extra_tcl_command" : attr .string (
353
361
default = "" ,
354
362
),
363
+ "hash_seed" : attr .int (
364
+ mandatory = False ,
365
+ doc = "Salts the hashes used in Yosys for (e.g.) iteration order; introduces additional variability into the synthesis logic." ,
366
+ ),
355
367
"output_file_name" : attr .string (
356
368
doc = "The output file name." ,
357
369
),
You can’t perform that action at this time.
0 commit comments