diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-20 16:08:36 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-20 16:08:36 -0700 |
commit | 31b0dee7f3f12c76b721f2fa8e11c722307abb09 (patch) | |
tree | 832561b85693c6d0826cb20f71613568e7abd383 /tests | |
parent | 0e3e647596db296e662348625c28b76215b55bcf (diff) | |
parent | c20adc52638b0f3ba3b1c39e5286ae92e901005d (diff) | |
download | yosys-31b0dee7f3f12c76b721f2fa8e11c722307abb09.tar.gz yosys-31b0dee7f3f12c76b721f2fa8e11c722307abb09.tar.bz2 yosys-31b0dee7f3f12c76b721f2fa8e11c722307abb09.zip |
Merge remote-tracking branch 'origin/eddie/fix1118' into xc7mux
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple/generate.v | 11 |
1 files changed, 11 insertions, 0 deletions
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 |