File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1313set variables {
1414 sv_flist { SV_FLIST " ../croc.flist" }
1515 top_design { TOP_DESIGN " croc_chip" }
16- period_ps { PERIOD_PS 10000 }
1716 out_dir { OUT out }
1817 tmp_dir { TMP tmp }
1918 rep_dir { REPORTS reports }
@@ -48,6 +47,7 @@ proc processAbcScript {abc_script} {
4847 set src_dir [file join [file dirname [info script]] ../src]
4948 set abc_out_path $tmp_dir /[file tail $abc_script ]
5049
50+ # substitute {STRING} placeholders with their value
5151 set raw [read -nonewline [open $abc_script r]]
5252 set abc_script_recaig [string map -nocase [list " {REC_AIG}" [subst " $src_dir /lazy_man_synth_library.aig" ]] $raw ]
5353 set abc_out [open $abc_out_path w]
Original file line number Diff line number Diff line change @@ -133,6 +133,7 @@ yosys tee -q -a ${rep_dir}/${top_design}_instances.rpt select -list "t:tc_clk*$
133133yosys dfflibmap {*}$tech_cells_args
134134
135135# then perform bit-level optimization and mapping on all combinational clouds in ABC
136+ # target period (per optimized block/module) in picoseconds
136137set period_ps 10000
137138# pre-process abc file (written to tmp directory)
138139set abc_comb_script [processAbcScript scripts/abc-opt.script]
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ YOSYS_REPORTS := $(YOSYS_DIR)/reports
1717
1818# top level to be synthesized
1919TOP_DESIGN ?= croc_chip
20- # target period in picoseconds
21- PERIOD_PS ?= 10000
2220
2321# file containing include dirs, defines and paths to all source files
2422SV_FLIST := $(realpath $(YOSYS_DIR ) /..) /croc.flist
@@ -38,7 +36,6 @@ $(NETLIST) $(NETLIST_DEBUG): $(SV_FLIST)
3836 cd $(YOSYS_DIR ) && \
3937 SV_FLIST=" $( SV_FLIST) " \
4038 TOP_DESIGN=" $( TOP_DESIGN) " \
41- PERIOD_PS=" $( PERIOD_PS) " \
4239 TMP=" $( YOSYS_TMP) " \
4340 OUT=" $( YOSYS_OUT) " \
4441 REPORTS=" $( YOSYS_REPORTS) " \
You can’t perform that action at this time.
0 commit comments