mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-21 18:50:38 +00:00
gate2lut: new techlib, for converting Yosys gates to FPGA LUTs.
This commit is contained in:
parent
12596b5003
commit
9ef078848a
10 changed files with 133 additions and 0 deletions
13
tests/lut/check_map.ys
Normal file
13
tests/lut/check_map.ys
Normal file
|
@ -0,0 +1,13 @@
|
|||
design -save preopt
|
||||
|
||||
simplemap
|
||||
techmap -map +/gate2lut.v -D LUT_WIDTH=4
|
||||
select -assert-count 1 t:$lut
|
||||
design -stash postopt
|
||||
|
||||
design -copy-from preopt -as preopt top
|
||||
design -copy-from postopt -as postopt top
|
||||
equiv_make preopt postopt equiv
|
||||
prep -flatten -top equiv
|
||||
equiv_induct
|
||||
equiv_status -assert
|
Loading…
Add table
Add a link
Reference in a new issue