yosys/tests/arch/efinix/latches.ys

34 lines
871 B
Plaintext
Raw Normal View History

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