aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple_abc9
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2019-02-26 11:39:17 -0800
committerEddie Hung <eddieh@ece.ubc.ca>2019-02-26 11:39:17 -0800
commit66b5f5166b358ae7efebd278ad32cd05f3eb72be (patch)
treeb2e766e08eabd6274ff3af4b103889a58657fbb8 /tests/simple_abc9
parent8f02c846f602882478469e86dbd598ade23d1d74 (diff)
downloadyosys-66b5f5166b358ae7efebd278ad32cd05f3eb72be.tar.gz
yosys-66b5f5166b358ae7efebd278ad32cd05f3eb72be.tar.bz2
yosys-66b5f5166b358ae7efebd278ad32cd05f3eb72be.zip
Enable two inout tests
Diffstat (limited to 'tests/simple_abc9')
-rw-r--r--tests/simple_abc9/abc9.v30
1 files changed, 14 insertions, 16 deletions
diff --git a/tests/simple_abc9/abc9.v b/tests/simple_abc9/abc9.v
index ad0e86d24..8a809e480 100644
--- a/tests/simple_abc9/abc9.v
+++ b/tests/simple_abc9/abc9.v
@@ -47,23 +47,21 @@ module abc9_test008_sub(input a, output b);
assign b = ~a;
endmodule
-// TODO
-//module abc9_test009(inout io, input oe);
-//reg latch;
-//always @(io or oe)
-// if (!oe)
-// latch <= io;
-//assign io = oe ? ~latch : 1'bz;
-//endmodule
+module abc9_test009(inout io, input oe);
+reg latch;
+always @(io or oe)
+ if (!oe)
+ latch <= io;
+assign io = oe ? ~latch : 1'bz;
+endmodule
-// TODO
-//module abc9_test010(inout [7:0] io, input oe);
-//reg [7:0] latch;
-//always @(io or oe)
-// if (!oe)
-// latch <= io;
-//assign io = oe ? ~latch : 1'bz;
-//endmodule
+module abc9_test010(inout [7:0] io, input oe);
+reg [7:0] latch;
+always @(io or oe)
+ if (!oe)
+ latch <= io;
+assign io = oe ? ~latch : 8'bz;
+endmodule
// TODO
//module abc9_test011(inout [7:0] io, input oe);