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
4 changes: 0 additions & 4 deletions docs/user/FlowVariables.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ configuration file.
| <a name="DPO_MAX_DISPLACEMENT"></a>DPO_MAX_DISPLACEMENT| Specifies how far an instance can be moved when optimizing.| 5 1|
| <a name="EARLY_SIZING_CAP_RATIO"></a>EARLY_SIZING_CAP_RATIO| Ratio between the input pin capacitance and the output pin load during initial gate sizing.| |
| <a name="ENABLE_DPO"></a>ENABLE_DPO| Enable detail placement with improve_placement feature.| 1|
| <a name="EQUIVALENCE_CHECK"></a>EQUIVALENCE_CHECK| Enable running equivalence checks to verify logical correctness of repair_timing.| 0|
| <a name="FASTROUTE_TCL"></a>FASTROUTE_TCL| Specifies a Tcl script with commands to run before FastRoute.| |
| <a name="FILL_CELLS"></a>FILL_CELLS| Fill cells are used to fill empty sites. If not set or empty, fill cell insertion is skipped.| |
| <a name="FILL_CONFIG"></a>FILL_CONFIG| JSON rule file for metal fill during chip finishing.| |
Expand Down Expand Up @@ -230,7 +229,6 @@ configuration file.
| <a name="RCX_RULES"></a>RCX_RULES| RC Extraction rules file path.| |
| <a name="RECOVER_POWER"></a>RECOVER_POWER| Specifies how many percent of paths with positive slacks can be slowed for power savings [0-100].| 0|
| <a name="REMOVE_ABC_BUFFERS"></a>REMOVE_ABC_BUFFERS (deprecated)| Remove abc buffers from the netlist. If timing repair in floorplanning is taking too long, use a SETUP/HOLD_SLACK_MARGIN to terminate timing repair early instead of using REMOVE_ABC_BUFFERS or set SKIP_LAST_GASP=1.| 0|
| <a name="REMOVE_CELLS_FOR_EQY"></a>REMOVE_CELLS_FOR_EQY| String patterns directly passed to write_verilog -remove_cells <> for equivalence checks.| |
| <a name="REMOVE_CELLS_FOR_LEC"></a>REMOVE_CELLS_FOR_LEC| String patterns directly passed to write_verilog -remove_cells <> for lec checks.| |
| <a name="REPAIR_PDN_VIA_LAYER"></a>REPAIR_PDN_VIA_LAYER| Remove power grid vias which generate DRC violations after detailed routing.| |
| <a name="REPORT_CLOCK_SKEW"></a>REPORT_CLOCK_SKEW| Report clock skew as part of reporting metrics, starting at CTS, before which there is no clock skew. This metric can be quite time-consuming, so it can be useful to disable.| 1|
Expand Down Expand Up @@ -480,14 +478,12 @@ configuration file.
- [CTS_SNAPSHOT](#CTS_SNAPSHOT)
- [CTS_SNAPSHOTS](#CTS_SNAPSHOTS)
- [DETAILED_METRICS](#DETAILED_METRICS)
- [EQUIVALENCE_CHECK](#EQUIVALENCE_CHECK)
- [HOLD_SLACK_MARGIN](#HOLD_SLACK_MARGIN)
- [LEC_CHECK](#LEC_CHECK)
- [MATCH_CELL_FOOTPRINT](#MATCH_CELL_FOOTPRINT)
- [MAX_REPAIR_TIMING_ITER](#MAX_REPAIR_TIMING_ITER)
- [POST_CTS_TCL](#POST_CTS_TCL)
- [PRE_CTS_TCL](#PRE_CTS_TCL)
- [REMOVE_CELLS_FOR_EQY](#REMOVE_CELLS_FOR_EQY)
- [REPORT_CLOCK_SKEW](#REPORT_CLOCK_SKEW)
- [SETUP_REPAIR_SEQUENCE](#SETUP_REPAIR_SEQUENCE)
- [SETUP_SLACK_MARGIN](#SETUP_SLACK_MARGIN)
Expand Down
3 changes: 0 additions & 3 deletions flow/designs/asap7/aes/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,13 @@ export CORE_ASPECT_RATIO = 1
export CORE_MARGIN = 2
export PLACE_DENSITY = 0.65
export TNS_END_PERCENT = 100
export EQUIVALENCE_CHECK ?= 1
export REMOVE_CELLS_FOR_EQY = TAPCELL*

ifeq ($(FLOW_VARIANT),top)
export DESIGN_NAME = aes_cipher_top
export SYNTH_BLACKBOXES = aes_key_expand_128
else ifeq ($(FLOW_VARIANT),blackbox)
export DESIGN_NAME = aes_key_expand_128
else ifeq ($(FLOW_VARIANT),combine)
export EQUIVALENCE_CHECK = 0
# List blackbox twice to demonstrates that duplicate modules are ignored.
export SYNTH_NETLIST_FILES = \
$(WORK_HOME)/results/$(PLATFORM)/$(DESIGN_NICKNAME)/top/1_synth.v \
Expand Down
3 changes: 0 additions & 3 deletions flow/designs/asap7/jpeg/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,4 @@ export CORE_MARGIN = 2
export PLACE_DENSITY = 0.75

export TNS_END_PERCENT = 100
export EQUIVALENCE_CHECK ?= 1
export REMOVE_CELLS_FOR_EQY = TAPCELL*


2 changes: 0 additions & 2 deletions flow/designs/asap7/uart/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export PLACE_DENSITY = 0.70
export DIE_AREA = 0 0 17 17
export CORE_AREA = 1.08 1.08 16 16
export TNS_END_PERCENT = 100
export EQUIVALENCE_CHECK ?= 1
export REMOVE_CELLS_FOR_EQY = TAPCELL*
export SKIP_GATE_CLONING = 1
export VERILOG_TOP_PARAMS = DATA_WIDTH 8
export SYNTH_HDL_FRONTEND = slang
2 changes: 0 additions & 2 deletions flow/designs/nangate45/aes/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ export FLOORPLAN_DEF = $(DESIGN_HOME)/$(PLATFORM)/$(DESIGN_NICKNAME)/aes_ng45_fp

export PLACE_DENSITY_LB_ADDON = 0.20
export TNS_END_PERCENT = 100
export REMOVE_CELLS_FOR_EQY = TAPCELL*

# workaround for high congestion in post-grt repair
export SKIP_INCREMENTAL_REPAIR = 1

Expand Down
1 change: 0 additions & 1 deletion flow/designs/nangate45/gcd/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export ADDER_MAP_FILE :=
export CORE_UTILIZATION ?= 55
export PLACE_DENSITY_LB_ADDON = 0.20
export TNS_END_PERCENT = 100
export REMOVE_CELLS_FOR_EQY = TAPCELL*
export SYNTH_REPEATABLE_BUILD ?= 1

# This needs a smaller pitch to accomodate a small block
Expand Down
3 changes: 0 additions & 3 deletions flow/designs/sky130hd/gcd/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ export ADDER_MAP_FILE :=

export CORE_UTILIZATION = 40
export TNS_END_PERCENT = 100
export EQUIVALENCE_CHECK ?= 1
export REMOVE_CELLS_FOR_EQY = sky130_fd_sc_hd__tapvpwrvgnd*

export SWAP_ARITH_OPERATORS = 1
export OPENROAD_HIERARCHICAL = 1
3 changes: 0 additions & 3 deletions flow/designs/sky130hs/gcd/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ export ADDER_MAP_FILE :=
export CORE_UTILIZATION = 50
export PLACE_DENSITY_LB_ADDON = 0.1
export TNS_END_PERCENT = 100
export EQUIVALENCE_CHECK ?= 1
export REMOVE_CELLS_FOR_EQY = sky130_fd_sc_hs__tapvpwrvgnd*

#export SYNTH_HDL_FRONTEND ?= slang
#export OPENROAD_HIERARCHICAL ?= 1
6 changes: 0 additions & 6 deletions flow/scripts/cts.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,12 @@ if { $::env(CTS_SNAPSHOTS) } {
}

if { !$::env(SKIP_CTS_REPAIR_TIMING) } {
if { $::env(EQUIVALENCE_CHECK) } {
write_eqy_verilog 4_before_rsz.v
}
if { $::env(LEC_CHECK) } {
write_lec_verilog 4_before_rsz_lec.v
}

repair_timing_helper

if { $::env(EQUIVALENCE_CHECK) } {
run_equivalence_test
}
if { $::env(LEC_CHECK) } {
write_lec_verilog 4_after_rsz_lec.v
run_lec_test 4_rsz 4_before_rsz_lec.v 4_after_rsz_lec.v
Expand Down
67 changes: 0 additions & 67 deletions flow/scripts/load.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -49,70 +49,3 @@ proc load_design { design_file sdc_file } {
set_delay_calculator prima
}
}

#===========================================================================================
# Routines to run equivalence tests when they are enabled.

proc write_eqy_verilog { filename } {
# Filter out cells with no verilog/not needed for equivalence such
# as fillers and tap cells
if { [env_var_exists_and_non_empty REMOVE_CELLS_FOR_EQY] } {
write_verilog -remove_cells $::env(REMOVE_CELLS_FOR_EQY) $::env(RESULTS_DIR)/$filename
} else {
write_verilog $::env(RESULTS_DIR)/$filename
}
}

proc write_eqy_script { } {
set top_cell [current_design]
set outfile [open "$::env(OBJECTS_DIR)/4_eqy_test.eqy" w]
# Gold netlist
puts $outfile "\[gold]\nread_liberty -ignore_miss_func $::env(LIB_FILES)\n"
puts $outfile "read_verilog -sv $::env(RESULTS_DIR)/4_before_rsz.v\n"
puts $outfile "prep -top $top_cell -flatten\nmemory_map\n\n"
# Modified netlist
puts $outfile "\[gate]\nread_liberty -ignore_miss_func $::env(LIB_FILES)\n"
puts $outfile "read_verilog -sv $::env(RESULTS_DIR)/4_after_rsz.v\n"
puts $outfile "prep -top $top_cell -flatten\nmemory_map\n\n"

# Recommendation from eqy team on how to speed up a design
puts $outfile "\[match *]\ngate-nomatch _*_.*"

# See issue OpenROAD#6545 "Equivalence check failure due to non-unique resizer nets"
puts $outfile "gate-nomatch net*"

# Forbid matching on buffer instances or cloned instances to make it less
# likely EQY will fail to prove equivalence because of its assuming structural
# similarity between gold and gate netlists. This doesn't remove coverage.
puts $outfile "gate-nomatch clone*"
puts $outfile "gate-nomatch place*"
puts $outfile "gate-nomatch rebuffer*"
puts $outfile "gate-nomatch wire*"
puts $outfile "gate-nomatch place*\n\n"

# Equivalence check recipe 1
puts $outfile "\[strategy basic]\nuse sat\ndepth 10\n\n"
# Equivalence check recipe 2
puts $outfile "\[strategy sby]\nuse sby\ndepth 10\nengine smtbmc bitwuzla\n\n"

close $outfile
}

proc run_equivalence_test { } {
write_eqy_verilog 4_after_rsz.v
write_eqy_script

# tclint-disable-next-line command-args
eval exec eqy -d $::env(LOG_DIR)/4_eqy_output \
--force \
--jobs $::env(NUM_CORES) \
$::env(OBJECTS_DIR)/4_eqy_test.eqy \
> $::env(LOG_DIR)/4_equivalence_check.log
set count \
[exec grep -c "Successfully proved designs equivalent" $::env(LOG_DIR)/4_equivalence_check.log]
if { $count == 0 } {
error "Repair timing output failed equivalence test"
} else {
puts "Repair timing output passed equivalence test"
}
}
13 changes: 0 additions & 13 deletions flow/scripts/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,6 @@ DETAILED_METRICS:
stages:
- cts
- grt
EQUIVALENCE_CHECK:
description: >
Enable running equivalence checks to verify logical correctness of
repair_timing.
default: 0
stages:
- cts
CORE_UTILIZATION:
description: |
The core utilization percentage (0-100).
Expand Down Expand Up @@ -760,12 +753,6 @@ SKIP_CRIT_VT_SWAP:
- cts
- floorplan
- grt
REMOVE_CELLS_FOR_EQY:
description: >
String patterns directly passed to write_verilog -remove_cells <> for
equivalence checks.
stages:
- cts
SKIP_CTS_REPAIR_TIMING:
description: >
Skipping CTS repair, which can take a long time, can be useful in
Expand Down
1 change: 0 additions & 1 deletion tools/AutoTuner/src/autotuner/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ def openroad(
if work_home is not None:
make_command += f" WORK_HOME={work_home}"
make_command += f" FLOW_VARIANT={flow_variant} {parameters}"
make_command += " EQUIVALENCE_CHECK=0"
make_command += f" NUM_CORES={args.openroad_threads} SHELL=bash"
if args.stop_stage != "finish":
make_command += f" {args.stop_stage}"
Expand Down
2 changes: 1 addition & 1 deletion tools/AutoTuner/test/smoke_test_algo_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def setUp(self):
def make_base(self):
commands = [
f"make -C {orfs_dir} DESIGN_CONFIG=./designs/{self.platform}/{self.design}/config.mk clean_all",
f"make -C {orfs_dir} DESIGN_CONFIG=./designs/{self.platform}/{self.design}/config.mk EQUIVALENCE_CHECK=0",
f"make -C {orfs_dir} DESIGN_CONFIG=./designs/{self.platform}/{self.design}/config.mk",
f"make -C {orfs_dir} DESIGN_CONFIG=./designs/{self.platform}/{self.design}/config.mk update_metadata_autotuner",
]
for command in commands:
Expand Down