From: Eddie Hung Date: Thu, 20 Jun 2019 23:07:22 +0000 (-0700) Subject: Add test X-Git-Tag: yosys-0.9~57^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c20adc52638b0f3ba3b1c39e5286ae92e901005d;p=yosys.git Add test --- diff --git a/tests/simple/generate.v b/tests/simple/generate.v index 3c55682cb..0e353ad9b 100644 --- a/tests/simple/generate.v +++ b/tests/simple/generate.v @@ -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