add simple test case for wand/wor
authorStefan Biereigel <stefan.biereigel@cern.ch>
Thu, 23 May 2019 11:42:42 +0000 (13:42 +0200)
committerStefan Biereigel <stefan.biereigel@cern.ch>
Thu, 23 May 2019 11:57:27 +0000 (13:57 +0200)
tests/various/wandwor.v [new file with mode: 0644]

diff --git a/tests/various/wandwor.v b/tests/various/wandwor.v
new file mode 100644 (file)
index 0000000..824f896
--- /dev/null
@@ -0,0 +1,35 @@
+module a(Q);
+    output wire Q;
+
+    assign Q = 0;
+endmodule
+
+module b(D);
+    input wire D;
+endmodule
+
+module c;
+    wor D;
+    assign D = 1;
+    assign D = 0;
+    assign D = 1;
+    assign D = 0;
+
+
+    wand E;
+    wire E_wire = E;
+    
+    genvar i;
+    for (i = 0; i < 3; i = i + 1)
+    begin :genloop
+        a a_inst (
+            .Q(E)
+        );
+        
+        b b_inst (
+            .D(E_wire)
+        );
+    end
+
+endmodule
+