From bd061f6ea05c8b178cfefe8ab8876c98a93ff7cc Mon Sep 17 00:00:00 2001 From: Jeff Ng Date: Fri, 13 Mar 2026 23:42:01 +0000 Subject: [PATCH] Added UNSET_ABC9_BOX_CELLS to unset yosys abc9_box attribute lint fix newline fix Signed-off-by: Jeff Ng --- docs/user/FlowVariables.md | 2 ++ flow/scripts/synth_stdcells.tcl | 3 +++ flow/scripts/variables.yaml | 5 +++++ 3 files changed, 10 insertions(+) diff --git a/docs/user/FlowVariables.md b/docs/user/FlowVariables.md index e90aee5375..9692ab4f36 100644 --- a/docs/user/FlowVariables.md +++ b/docs/user/FlowVariables.md @@ -305,6 +305,7 @@ configuration file. | TIELO_CELL_AND_PORT| Tie low cells used in Yosys synthesis to replace a logical 0 in the Netlist.| | | TIE_SEPARATION| Distance separating tie high/low instances from the load.| 0| | TNS_END_PERCENT| Default TNS_END_PERCENT value for post CTS timing repair. Try fixing all violating endpoints by default (reduce to 5% for runtime). Specifies how many percent of violating paths to fix [0-100]. Worst path will always be fixed.| 100| +| UNSET_ABC9_BOX_CELLS| List of cells to unset the abc9_box attribute on| | | USE_FILL| Whether to perform metal density filling.| 0| | VERILOG_DEFINES| Preprocessor defines passed to the language frontend. Example: `-D HPDCACHE_ASSERT_OFF`| | | VERILOG_FILES| The path to the design Verilog/SystemVerilog files providing a description of modules.| | @@ -349,6 +350,7 @@ configuration file. - [SYNTH_WRAPPED_MULTIPLIERS](#SYNTH_WRAPPED_MULTIPLIERS) - [TIEHI_CELL_AND_PORT](#TIEHI_CELL_AND_PORT) - [TIELO_CELL_AND_PORT](#TIELO_CELL_AND_PORT) +- [UNSET_ABC9_BOX_CELLS](#UNSET_ABC9_BOX_CELLS) - [VERILOG_DEFINES](#VERILOG_DEFINES) - [VERILOG_FILES](#VERILOG_FILES) - [VERILOG_INCLUDE_DIRS](#VERILOG_INCLUDE_DIRS) diff --git a/flow/scripts/synth_stdcells.tcl b/flow/scripts/synth_stdcells.tcl index 1cd5d5c06f..5fb2039171 100644 --- a/flow/scripts/synth_stdcells.tcl +++ b/flow/scripts/synth_stdcells.tcl @@ -2,3 +2,6 @@ read_liberty -overwrite -setattr liberty_cell -lib {*}$::env(LIB_FILES) read_liberty -overwrite -setattr liberty_cell \ -unit_delay -wb -ignore_miss_func -ignore_buses {*}$::env(LIB_FILES) +if { [info exists ::env(UNSET_ABC9_BOX_CELLS)] } { + setattr -mod -unset abc9_box {*}$::env(UNSET_ABC9_BOX_CELLS) +} diff --git a/flow/scripts/variables.yaml b/flow/scripts/variables.yaml index d2018d5baf..3cd4193ae6 100644 --- a/flow/scripts/variables.yaml +++ b/flow/scripts/variables.yaml @@ -354,6 +354,11 @@ TIE_SEPARATION: stages: - floorplan default: 0 +UNSET_ABC9_BOX_CELLS: + description: | + List of cells to unset the abc9_box attribute on + stages: + - synth EARLY_SIZING_CAP_RATIO: description: | Ratio between the input pin capacitance and the output pin load during initial gate sizing.