File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -183,18 +183,19 @@ proc connect_clk {cell_name clock_pin_name target_clk_port_name} {
183183 }
184184}
185185
186- proc check_logical_equivalence {top_module gold gate} {
186+ proc check_logical_equivalence {top_module gold gate abc_args lib_args lib_dont_use_args } {
187187 puts " Save a backup that won't get deleted by this function"
188188 design -save backup_1
189189
190190 # Create new modules
191+
192+ # puts "Create new modules"
191193 design -copy-from $gold -as gold $top_module
192194 design -copy-from $gate -as gate $top_module
193195
194196 equiv_make -inames gold gate equiv
195-
196- prep -flatten -top equiv
197197 yosys cd equiv
198+ prep -flatten -top equiv
198199 opt_clean -purge
199200
200201 async2sync
Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ delete t:\$print
8787# At least this is predictable.
8888renames -wire
8989
90+ # Optimize the design
91+ opt -purge
9092
9193puts " Duplicate each flip-flop"
9294techmap -max_iter 1 -map $::env(DUPLICATE_DFFS_MAP_FILE)
@@ -107,6 +109,7 @@ connect_clk *custom_FF_replace_2.mux_latch C clk_1
107109connect_clk *custom_FF_replace_1.mux_latch C clk_2
108110
109111
112+ design -save post_retiming
110113design -save pre_retiming
111114
112115puts " Perform retiming"
@@ -116,10 +119,7 @@ opt -noff -purge
116119design -save post_retiming
117120
118121puts " Perform logical equivalence checking"
119- check_logical_equivalence $::env(DESIGN_NAME) pre_retiming post_retiming
120-
121- # Optimize the design
122- opt -purge
122+ check_logical_equivalence $::env(DESIGN_NAME) pre_retiming post_retiming $abc_args $lib_args $lib_dont_use_args
123123
124124# puts "Replace each DFF with a corresponding latch"
125125techmap -autoproc -map $::env(DFF_TO_LATCH_MAP_FILE)
You can’t perform that action at this time.
0 commit comments