mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-30 09:17:13 +00:00
quicklogic: Add basic k6n10f tests
This commit is contained in:
parent
90f427c7a8
commit
a3b3333eeb
11 changed files with 211 additions and 0 deletions
34
tests/arch/quicklogic/qlf_k6n10f/latches.ys
Normal file
34
tests/arch/quicklogic/qlf_k6n10f/latches.ys
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
read_verilog ../../common/latches.v
|
||||
design -save read
|
||||
|
||||
hierarchy -top latchp
|
||||
proc
|
||||
# Can't run any sort of equivalence check because latches are blown to LUTs
|
||||
synth_quicklogic -family qlf_k6n10f
|
||||
cd latchp # Constrain all select calls below inside the top module
|
||||
select -assert-count 1 t:latchsre
|
||||
|
||||
select -assert-none t:latchsre %% t:* %D
|
||||
|
||||
|
||||
design -load read
|
||||
hierarchy -top latchn
|
||||
proc
|
||||
# Can't run any sort of equivalence check because latches are blown to LUTs
|
||||
synth_quicklogic -family qlf_k6n10f
|
||||
cd latchn # Constrain all select calls below inside the top module
|
||||
select -assert-count 1 t:latchnsre
|
||||
|
||||
select -assert-none t:latchnsre %% t:* %D
|
||||
|
||||
|
||||
design -load read
|
||||
hierarchy -top latchsr
|
||||
proc
|
||||
# Can't run any sort of equivalence check because latches are blown to LUTs
|
||||
synth_quicklogic -family qlf_k6n10f
|
||||
cd latchsr # Constrain all select calls below inside the top module
|
||||
select -assert-count 2 t:$lut
|
||||
select -assert-count 1 t:dffsr
|
||||
|
||||
select -assert-none t:$lut t:dffsr %% t:* %D
|
||||
Loading…
Add table
Add a link
Reference in a new issue