@@ -18,10 +18,17 @@ if {[env_var_exists_and_non_empty SYNTH_KEEP_MODULES]} {
1818 }
1919}
2020
21+ set synth_full_args $::env(SYNTH_ARGS)
22+ if {[env_var_exists_and_non_empty SYNTH_OPERATIONS_ARGS]} {
23+ set synth_full_args [concat $synth_full_args $::env(SYNTH_OPERATIONS_ARGS) ]
24+ } else {
25+ set synth_full_args [concat $synth_full_args " -extra-map $::env(FLOW_HOME) /platforms/common/lcu_kogge_stone.v" ]
26+ }
27+
2128if {![env_var_equals SYNTH_HIERARCHICAL 1]} {
2229 # Perform standard coarse-level synthesis script, flatten right away
2330 # (-flatten part of $synth_args per default)
24- synth -run :fine {*}$::env(SYNTH_FULL_ARGS)
31+ synth -run :fine {*}$synth_full_args
2532} else {
2633 # Perform standard coarse-level synthesis script,
2734 # defer flattening until we have decided what hierarchy to keep
@@ -38,15 +45,15 @@ if {![env_var_equals SYNTH_HIERARCHICAL 1]} {
3845 }
3946
4047 # Re-run coarse-level script, this time do pass -flatten
41- synth -run coarse:fine {*}$::env(SYNTH_FULL_ARGS)
48+ synth -run coarse:fine {*}$synth_full_args
4249}
4350
4451json -o $::env(RESULTS_DIR) /mem.json
4552# Run report and check here so as to fail early if this synthesis run is doomed
4653exec -- python3 $::env(SCRIPTS_DIR) /mem_dump.py --max-bits $::env(SYNTH_MEMORY_MAX_BITS) $::env(RESULTS_DIR) /mem.json
4754
4855if {![env_var_exists_and_non_empty SYNTH_WRAPPED_OPERATORS]} {
49- synth -top $::env(DESIGN_NAME) -run fine: {*}$::env(SYNTH_FULL_ARGS)
56+ synth -top $::env(DESIGN_NAME) -run fine: {*}$synth_full_args
5057} else {
5158 source $::env(SCRIPTS_DIR) /synth_wrap_operators.tcl
5259}
0 commit comments