From 0ff0acd94afc36fdeff6600e53a5687974380172 Mon Sep 17 00:00:00 2001 From: Austin Rovinski Date: Mon, 19 Feb 2024 22:52:05 -0500 Subject: [PATCH] syn: Use the dont_use flags in the abc pass This doesn't remove the lib modification in the markDontUse.py utility script due to lack of dont_use flags for dfflibmap as of right now. Signed-off-by: Austin Rovinski --- flow/scripts/synth_preamble.tcl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flow/scripts/synth_preamble.tcl b/flow/scripts/synth_preamble.tcl index 2d78be8ae8..978bc26aff 100644 --- a/flow/scripts/synth_preamble.tcl +++ b/flow/scripts/synth_preamble.tcl @@ -77,6 +77,13 @@ set abc_args [list -script $abc_script \ -liberty $::env(DONT_USE_SC_LIB) \ -constr $::env(OBJECTS_DIR)/abc.constr] +# Exclude dont_use cells +if {[info exist ::env(DONT_USE_CELLS)] && $::env(DONT_USE_CELLS) != ""} { + foreach cell $::env(DONT_USE_CELLS) { + lappend abc_args -dont_use $cell + } +} + if {[info exist ::env(SDC_FILE_CLOCK_PERIOD)] && [file isfile $::env(SDC_FILE_CLOCK_PERIOD)]} { puts "\[FLOW\] Extracting clock period from SDC file: $::env(SDC_FILE_CLOCK_PERIOD)" set fp [open $::env(SDC_FILE_CLOCK_PERIOD) r]