diff options
author | Marcin KoĆcielnicki <mwk@0x04.net> | 2020-03-30 15:35:31 +0200 |
---|---|---|
committer | Marcelina KoĆcielnicka <mwk@0x04.net> | 2020-04-02 18:15:04 +0200 |
commit | 2d3753d730c99ab2c0253be119b04cec413e10ba (patch) | |
tree | 63f610df90eb4e47a526c9096e5a2a5e6eadbf9e /tests | |
parent | 22ef5701c0e0c8ff75ed1f3e4627b783ec192756 (diff) | |
download | yosys-2d3753d730c99ab2c0253be119b04cec413e10ba.tar.gz yosys-2d3753d730c99ab2c0253be119b04cec413e10ba.tar.bz2 yosys-2d3753d730c99ab2c0253be119b04cec413e10ba.zip |
iopadmap: Fix z assignment to inout port
Fixes #1841.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/techmap/iopadmap.ys | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/techmap/iopadmap.ys b/tests/techmap/iopadmap.ys index 25ea94dfc..df029b3a0 100644 --- a/tests/techmap/iopadmap.ys +++ b/tests/techmap/iopadmap.ys @@ -55,13 +55,19 @@ obuf b (.i(i), .o(tmp)); assign o = tmp; endmodule +module k(inout o, o2); +assign o = 1'bz; +endmodule + EOT opt_clean tribuf simplemap -iopadmap -bits -inpad ibuf o:i -outpad obuf i:o -toutpad obuft oe:i:o -tinoutpad iobuf oe:o:i:io a b c d e f g h i j +iopadmap -bits -inpad ibuf o:i -outpad obuf i:o -toutpad obuft oe:i:o -tinoutpad iobuf oe:o:i:io a b c d e f g h i j k opt_clean +hierarchy -check +check select -assert-count 1 a/t:ibuf select -assert-count 1 a/t:obuf @@ -140,6 +146,8 @@ select -assert-count 0 i/t:obuf select -assert-count 1 j/t:ibuf select -assert-count 1 j/t:obuf +select -assert-count 2 k/t:iobuf + # Check that \init attributes get moved from output buffer # to buffer input |