yosys/tests/xilinx/latches.ys

17 lines
462 B
Plaintext
Raw Normal View History

2019-09-27 14:50:20 -05:00
read_verilog latches.v
2019-09-10 00:08:03 -05:00
design -save read
2019-09-27 14:50:20 -05:00
proc
2019-09-10 00:08:03 -05:00
async2sync # converts latches to a 'sync' variant clocked by a 'super'-clock
2019-09-27 14:50:20 -05:00
flatten
2019-09-10 00:08:03 -05:00
equiv_opt -assert -map +/xilinx/cells_sim.v synth_xilinx # equivalency check
2019-09-27 14:50:20 -05:00
synth_xilinx
2019-09-10 00:36:59 -05:00
flatten
cd top
2019-09-27 14:50:20 -05:00
select -assert-count 1 t:LUT1
select -assert-count 2 t:LUT3
#Xilinx Vivado synthesizes LDCE cell for this case. Need support it.
2019-09-10 00:08:03 -05:00
select -assert-count 3 t:$_DLATCH_P_
2019-09-10 00:36:59 -05:00
select -assert-none t:LUT1 t:LUT3 t:$_DLATCH_P_ %% t:* %D