Add test
authorEddie Hung <eddie@fpgeh.com>
Thu, 20 Jun 2019 23:07:22 +0000 (16:07 -0700)
committerEddie Hung <eddie@fpgeh.com>
Thu, 20 Jun 2019 23:07:22 +0000 (16:07 -0700)
tests/simple/generate.v

index 3c55682cbfce8982dba4a6cd5cf8ead71a9921dd..0e353ad9b7b5422f6d82bcb2884873bfcb685378 100644 (file)
@@ -148,3 +148,14 @@ generate
 endgenerate
 assign out = steps[WIDTH].outer[0].val;
 endmodule
+
+// ------------------------------------------
+
+module gen_test6(output [3:0] o);
+generate
+    genvar i;
+    for (i = 3; i >= 0; i = i-1) begin
+        assign o[i] = 1'b0;
+    end
+endgenerate
+endmodule