3
0
Fork 0
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:
whitequark 2018-12-05 04:50:38 +00:00
parent 12596b5003
commit 9ef078848a
10 changed files with 133 additions and 0 deletions

13
tests/lut/check_map.ys Normal file
View 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