yosys/tests/ice40/latches.ys

16 lines
425 B
Plaintext
Raw Normal View History

2019-08-21 13:52:07 -05:00
read_verilog latches.v
2019-08-28 14:21:15 -05:00
design -save read
proc
async2sync # converts latches to a 'sync' variant clocked by a 'super'-clock
flatten
synth_ice40
equiv_opt -assert -map +/ice40/cells_sim.v synth_ice40 # equivalency check
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
design -load read
2019-08-19 23:50:05 -05:00
synth_ice40
2019-08-22 14:30:49 -05:00
cd top
select -assert-count 4 t:SB_LUT4
select -assert-none t:SB_LUT4 %% t:* %D