aboutsummaryrefslogtreecommitdiffstats
path: root/tests/techmap
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-12-30 14:31:42 -0800
committerEddie Hung <eddie@fpgeh.com>2019-12-30 14:31:42 -0800
commit405e974fe51f4ede0b374ddddc398a26e04b0265 (patch)
tree61f646fe54f9f57d18236058aca8746d8603eed8 /tests/techmap
parentece423415cbc17654c6ac81a0f4b15783c558660 (diff)
parentc0a17c2457532726b05586d3b7a030bd9f372dea (diff)
downloadyosys-405e974fe51f4ede0b374ddddc398a26e04b0265.tar.gz
yosys-405e974fe51f4ede0b374ddddc398a26e04b0265.tar.bz2
yosys-405e974fe51f4ede0b374ddddc398a26e04b0265.zip
Merge remote-tracking branch 'origin/master' into xaig_dff
Diffstat (limited to 'tests/techmap')
-rw-r--r--tests/techmap/iopadmap.ys23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/techmap/iopadmap.ys b/tests/techmap/iopadmap.ys
index f4345e906..c058d1607 100644
--- a/tests/techmap/iopadmap.ys
+++ b/tests/techmap/iopadmap.ys
@@ -28,6 +28,20 @@ assign io = oe ? i : 1'bz;
assign o2 = io;
assign o3 = ~io;
endmodule
+
+module f(output o, o2);
+assign o = 1'bz;
+endmodule
+
+module g(inout io, output o);
+assign o = io;
+endmodule
+
+module h(inout io, output o, input i);
+assign io = i;
+assign o = io;
+endmodule
+
EOT
opt_clean
@@ -97,3 +111,12 @@ select -assert-count 1 @oeb %co %co @iob %i
select -assert-count 1 @iob %co %co @o2b %i
select -assert-count 1 @iob %co %co t:$_NOT_ %i
select -assert-count 1 @o3b %ci %ci t:$_NOT_ %i
+
+select -assert-count 2 f/t:obuft
+
+select -assert-count 1 g/t:obuf
+select -assert-count 1 g/t:iobuf
+
+select -assert-count 1 h/t:ibuf
+select -assert-count 1 h/t:iobuf
+select -assert-count 1 h/t:obuf