mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-05 19:00:26 +00:00
Add opt_lut_ins pass. (#1673)
This commit is contained in:
parent
7033503cd9
commit
34d2fbd2f9
10 changed files with 367 additions and 4 deletions
23
tests/opt/opt_lut_ins.ys
Normal file
23
tests/opt/opt_lut_ins.ys
Normal file
|
@ -0,0 +1,23 @@
|
|||
read_ilang << EOF
|
||||
|
||||
module \top
|
||||
|
||||
wire width 4 input 1 \A
|
||||
|
||||
wire output 2 \Y
|
||||
|
||||
cell $lut \lut
|
||||
parameter \LUT 16'1111110011000000
|
||||
parameter \WIDTH 4
|
||||
connect \A \A
|
||||
connect \Y \Y
|
||||
end
|
||||
end
|
||||
|
||||
EOF
|
||||
|
||||
equiv_opt -assert opt_lut_ins
|
||||
|
||||
design -load postopt
|
||||
|
||||
select -assert-count 1 t:$lut r:WIDTH=3 %i
|
Loading…
Add table
Add a link
Reference in a new issue