Add broken testcases
authorEddie Hung <eddieh@ece.ubc.ca>
Mon, 25 Feb 2019 23:06:23 +0000 (15:06 -0800)
committerEddie Hung <eddieh@ece.ubc.ca>
Mon, 25 Feb 2019 23:06:23 +0000 (15:06 -0800)
tests/simple_abc9/abc9.v

index d387b99eb0681e1d459e9a9a07b1c6991a7e018b..ad0e86d247fe8f997df996e624276c78b6ebe2ad 100644 (file)
@@ -46,3 +46,49 @@ endmodule
 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
+
+// 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
+
+// TODO
+//module abc9_test011(inout [7:0] io, input oe);
+//reg [7:0] latch;
+//always @(io or oe)
+//    if (!oe)
+//        latch[3:0] <= io;
+//    else
+//        latch[7:4] <= io;
+//assign io[3:0] = oe ? ~latch[3:0] : 4'bz;
+//assign io[7:4] = !oe ? {latch[4], latch[7:3]} : 4'bz;
+//endmodule
+
+// TODO
+//module abc9_test012(inout [7:0] io, input oe);
+//abc9_test012_sub sub(io, oe);
+//endmodule
+//
+//module abc9_test012_sub(inout [7:0] io, input oe);
+//reg [7:0] latch;
+//always @(io or oe)
+//    if (!oe)
+//        latch[3:0] <= io;
+//    else
+//        latch[7:4] <= io;
+//assign io[3:0] = oe ? ~latch[3:0] : 4'bz;
+//assign io[7:4] = !oe ? {latch[4], latch[7:3]} : 4'bz;
+//endmodule