mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-01 03:57:52 +00:00
gatemate: Add test for LUT tree mapping
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
38a24ec5cc
commit
48efc9b75c
3 changed files with 813 additions and 0 deletions
13
tests/arch/gatemate/luttrees.ys
Normal file
13
tests/arch/gatemate/luttrees.ys
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
read_verilog luttrees.v
|
||||
design -save read
|
||||
|
||||
hierarchy -top luttrees
|
||||
proc
|
||||
equiv_opt -async2sync -assert -map +/gatemate/cells_sim.v synth_gatemate -noiopad -luttree -nomx4 -nomx8 # equivalency check
|
||||
design -load postopt # load the post-opt design (otherwise equiv_opt loads the pre-opt design)
|
||||
cd luttrees # Constrain all select calls below inside the top module
|
||||
|
||||
select -assert-count 750 t:CC_LUT2 t:CC_L2T4 t:CC_L2T5 %%
|
||||
select -assert-none t:CC_LUT2 t:CC_L2T4 t:CC_L2T5 %% t:* %D
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue