diff options
author | Marcelina KoĆcielnicka <mwk@0x04.net> | 2020-02-03 14:57:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 14:57:17 +0100 |
commit | 34d2fbd2f96a8789aa7eb655318308e11949eb7a (patch) | |
tree | 246fac88cc076f041cb9194bf6e4f954d50fd78c /tests/arch/ecp5 | |
parent | 7033503cd9e40e16c11fe6c805a436b0e23989dd (diff) | |
download | yosys-34d2fbd2f96a8789aa7eb655318308e11949eb7a.tar.gz yosys-34d2fbd2f96a8789aa7eb655318308e11949eb7a.tar.bz2 yosys-34d2fbd2f96a8789aa7eb655318308e11949eb7a.zip |
Add opt_lut_ins pass. (#1673)
Diffstat (limited to 'tests/arch/ecp5')
-rw-r--r-- | tests/arch/ecp5/opt_lut_ins.ys | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/arch/ecp5/opt_lut_ins.ys b/tests/arch/ecp5/opt_lut_ins.ys new file mode 100644 index 000000000..2bc546912 --- /dev/null +++ b/tests/arch/ecp5/opt_lut_ins.ys @@ -0,0 +1,32 @@ +read_ilang << EOF + +module \top + + wire input 1 \A + wire input 2 \B + wire input 3 \C + wire input 4 \D + + wire output 5 \Z + + cell \LUT4 $0 + parameter \INIT 16'1111110011000000 + connect \A \A + connect \B \B + connect \C \C + connect \D \D + connect \Z \Z + end +end + +EOF + +read_verilog -lib +/ecp5/cells_sim.v + +equiv_opt -assert -map +/ecp5/cells_sim.v opt_lut_ins -tech ecp5 + +design -load postopt + +select -assert-count 1 top/t:LUT4 +select -assert-count 0 top/w:A %co top/t:LUT4 %i +select -assert-count 1 top/w:B %co top/t:LUT4 %i |