yosys/tests/arch/ice40/latches.ys

34 lines
862 B
Plaintext
Raw Permalink Normal View History

2019-10-18 12:19:59 +02:00
read_verilog ../common/latches.v
design -save read
2019-08-28 21:21:15 +02:00
2019-10-18 12:19:59 +02:00
hierarchy -top latchp
2019-08-28 21:21:15 +02:00
proc
2019-10-03 19:45:53 +02:00
# Can't run any sort of equivalence check because latches are blown to LUTs
2019-10-18 12:19:59 +02:00
synth_ice40
cd latchp # Constrain all select calls below inside the top module
select -assert-count 1 t:SB_LUT4
select -assert-none t:SB_LUT4 %% t:* %D
design -load read
hierarchy -top latchn
proc
# Can't run any sort of equivalence check because latches are blown to LUTs
synth_ice40
cd latchn # Constrain all select calls below inside the top module
select -assert-count 1 t:SB_LUT4
select -assert-none t:SB_LUT4 %% t:* %D
2019-08-28 21:21:15 +02:00
2019-10-18 12:19:59 +02:00
design -load read
hierarchy -top latchsr
proc
# Can't run any sort of equivalence check because latches are blown to LUTs
2019-08-20 06:50:05 +02:00
synth_ice40
2019-10-18 12:19:59 +02:00
cd latchsr # Constrain all select calls below inside the top module
select -assert-count 2 t:SB_LUT4
2019-08-22 21:30:49 +02:00
select -assert-none t:SB_LUT4 %% t:* %D