yosys/tests/arch/ecp5/latches.ys

35 lines
880 B
Plaintext
Raw Normal View History

2019-10-18 05:19:59 -05:00
read_verilog ../common/latches.v
2019-09-03 03:53:37 -05:00
design -save read
2019-10-04 03:31:51 -05:00
hierarchy -top latchp
2019-10-18 02:04:02 -05:00
proc
2019-10-04 03:31:51 -05:00
# Can't run any sort of equivalence check because latches are blown to LUTs
2019-09-03 03:53:37 -05:00
synth_ecp5
2019-10-04 03:31:51 -05:00
cd latchp # Constrain all select calls below inside the top module
select -assert-count 1 t:LUT4
select -assert-none t:LUT4 %% t:* %D
2019-09-03 03:53:37 -05:00
design -load read
2019-10-04 03:31:51 -05:00
hierarchy -top latchn
2019-10-18 02:04:02 -05:00
proc
2019-10-04 03:31:51 -05:00
# Can't run any sort of equivalence check because latches are blown to LUTs
2019-09-03 03:53:37 -05:00
synth_ecp5
2019-10-04 03:31:51 -05:00
cd latchn # Constrain all select calls below inside the top module
select -assert-count 1 t:LUT4
select -assert-none t:LUT4 %% t:* %D
design -load read
hierarchy -top latchsr
2019-10-18 02:04:02 -05:00
proc
2019-10-04 03:31:51 -05:00
# Can't run any sort of equivalence check because latches are blown to LUTs
synth_ecp5
cd latchsr # Constrain all select calls below inside the top module
select -assert-count 2 t:LUT4
2019-09-03 03:53:37 -05:00
select -assert-count 1 t:PFUMX
2019-10-04 03:31:51 -05:00
2019-09-03 03:53:37 -05:00
select -assert-none t:LUT4 t:PFUMX %% t:* %D