yosys.tcl: remove unregconized sdc file for ABC

This commit is contained in:
Zihao Yu 2023-07-24 23:07:57 +08:00
parent 08a65de237
commit f4334c744a
2 changed files with 5 additions and 7 deletions

View File

@ -12,9 +12,9 @@ init:
bash -c "$$(wget -O - https://ysyx.oscc.cc/slides/resources/scripts/init-yosys-sta.sh)"
syn: $(NETLIST_V)
$(NETLIST_V): $(SDC_FILE) $(RTL_FILES)
$(NETLIST_V): $(RTL_FILES) yosys.tcl
mkdir -p $(@D)
echo tcl yosys.tcl $(DESIGN) $(SDC_FILE) \"$(RTL_FILES)\" $(NETLIST_V) | yosys -s - | tee $(@D)/yosys.log
echo tcl yosys.tcl $(DESIGN) \"$(RTL_FILES)\" $(NETLIST_V) | yosys -s - | tee $(@D)/yosys.log
sta: $(TIMING_RPT)
$(TIMING_RPT): $(SDC_FILE) $(NETLIST_V)

View File

@ -2,9 +2,8 @@
# set parameter
#===========================================================
set DESIGN [lindex $argv 0]
set SDC_FILE [lindex $argv 1]
set VERILOG_FILES [string map {"\"" ""} [lindex $argv 2]]
set NETLIST_V [lindex $argv 3]
set VERILOG_FILES [string map {"\"" ""} [lindex $argv 1]]
set NETLIST_V [lindex $argv 2]
set VERILOG_INCLUDE_DIRS ""
set RESULT_DIR [file dirname $NETLIST_V]
@ -28,7 +27,7 @@ yosys -import
# Don't change these unless you know what you are doing
set stat_ext "_stat.rep"
set gl_ext "_gl.v"
set abc_script "+read_constr,$SDC_FILE;strash;ifraig;retime,-D,{D},-M,6;strash;dch,-f;map,-p,-M,1,{D},-f;topo;dnsize;buffer,-p;upsize;"
set abc_script "+strash;ifraig;retime,-D,{D},-M,6;strash;dch,-f;map,-p,-M,1,{D},-f;topo;dnsize;buffer,-p;upsize;"
# Setup verilog include directories
set vIdirsArgs ""
@ -87,7 +86,6 @@ opt -undriven
# Technology mapping for cells
abc -D [expr $CLOCK_PERIOD * 1000] \
-constr "$SDC_FILE" \
-liberty $MERGED_LIB_FILE \
-showtmp \
-script $abc_script