Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/user/FlowVariables.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ configuration file.
| <a name="ABC_AREA"></a>ABC_AREA| Strategies for Yosys ABC synthesis: Area/Speed. Default ABC_SPEED.| 0|
| <a name="ABC_DRIVER_CELL"></a>ABC_DRIVER_CELL| Default driver cell used during ABC synthesis.| |
| <a name="ABC_LOAD_IN_FF"></a>ABC_LOAD_IN_FF| During synthesis set_load value used.| |
| <a name="ABC_SCRIPT"></a>ABC_SCRIPT| Replaces the ABC script synthesis runs, so that a design can vendor and change it. Ignored when SYNTH_WRAPPED_OPERATORS or SWAP_ARITH_OPERATORS is set: abc_new then maps each arithmetic operator with its own script.| |
| <a name="ABSTRACT_SOURCE"></a>ABSTRACT_SOURCE| Which .odb file to use to create abstract| |
| <a name="ADDER_MAP_FILE"></a>ADDER_MAP_FILE| Optional mapping file supplied to Yosys to map adders| |
| <a name="ADDITIONAL_FILES"></a>ADDITIONAL_FILES| Additional files to be added to `make issue` archive.| |
Expand Down Expand Up @@ -340,6 +341,7 @@ configuration file.
- [ABC_AREA](#ABC_AREA)
- [ABC_DRIVER_CELL](#ABC_DRIVER_CELL)
- [ABC_LOAD_IN_FF](#ABC_LOAD_IN_FF)
- [ABC_SCRIPT](#ABC_SCRIPT)
- [ADDER_MAP_FILE](#ADDER_MAP_FILE)
- [ADDITIONAL_MEMORIES](#ADDITIONAL_MEMORIES)
- [CACHED_REPORTS](#CACHED_REPORTS)
Expand Down
7 changes: 6 additions & 1 deletion flow/scripts/synth.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,13 @@ if {
} {
log_cmd abc {*}$abc_args
} else {
# Not dead code: abc_new mistakes the "-script" in /OpenROAD-flow-scripts/...
# paths for a given -script and drops its default (YosysHQ/yosys#6320).
scratchpad -set abc9.script $::env(SCRIPTS_DIR)/abc_speed_gia_only.script
# crop out -script from arguments
# abc_new maps each arithmetic operator module with the abc9_script
# attribute synth_wrap_operators.tcl sets on it, and every other module
# with the script above. An explicit -script overrides both, so it is
# cropped from the arguments and ABC_SCRIPT does not apply here.
set abc_args [lrange $abc_args 2 end]
log_cmd abc_new {*}$abc_args
delete {t:$specify*}
Expand Down
5 changes: 4 additions & 1 deletion flow/scripts/synth_preamble.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,10 @@ proc read_design_sources { } {
}
}

if { $::env(ABC_AREA) } {
if { [env_var_exists_and_non_empty ABC_SCRIPT] } {
puts "Using ABC script $::env(ABC_SCRIPT)."
set abc_script $::env(ABC_SCRIPT)
Comment thread
oharboe marked this conversation as resolved.
Resolved
} elseif { $::env(ABC_AREA) } {
puts "Using ABC area script."
set abc_script $::env(SCRIPTS_DIR)/abc_area.script
} else {
Expand Down
6 changes: 6 additions & 0 deletions flow/scripts/variables.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions flow/scripts/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,13 @@ ABC_AREA:
stages:
- synth
default: 0
ABC_SCRIPT:
description: |
Replaces the ABC script synthesis runs, so that a design can vendor and
change it. Ignored when SYNTH_WRAPPED_OPERATORS or SWAP_ARITH_OPERATORS
is set: abc_new then maps each arithmetic operator with its own script.
stages:
- synth
PWR_NETS_VOLTAGES:
description: |
Used for IR Drop calculation.
Expand Down
Loading