Skip to content

Commit

Permalink
abc: add -retime with speed script
Browse files Browse the repository at this point in the history
Signed-off-by: Øyvind Harboe <[email protected]>
  • Loading branch information
oharboe committed Nov 1, 2024
1 parent d425516 commit aa85e3e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions flow/scripts/synth_preamble.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,21 @@ if {[env_var_exists_and_non_empty PRESERVE_CELLS]} {
}
}

set abc_args {}

if {$::env(ABC_AREA)} {
puts "Using ABC area script."
set abc_script $::env(SCRIPTS_DIR)/abc_area.script
lappend abc_args -script $::env(SCRIPTS_DIR)/abc_area.script
} else {
puts "Using ABC speed script."
set abc_script $::env(SCRIPTS_DIR)/abc_speed.script
lappend abc_args -script $::env(SCRIPTS_DIR)/abc_speed.script
lappend abc_args -retime
}

# Technology mapping for cells
# ABC supports multiple liberty files, but the hook from Yosys to ABC doesn't
set abc_args [list -script $abc_script \
-liberty $::env(DONT_USE_SC_LIB) \
-constr $::env(OBJECTS_DIR)/abc.constr]
lappend abc_args -liberty $::env(DONT_USE_SC_LIB)
lappend abc_args -constr $::env(OBJECTS_DIR)/abc.constr

# Exclude dont_use cells. This includes macros that are specified via
# LIB_FILES and ADDITIONAL_LIBS that are included in LIB_FILES.
Expand Down

0 comments on commit aa85e3e

Please sign in to comment.