projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c27ab60
)
Add test
author
Eddie Hung
<eddie@fpgeh.com>
Thu, 20 Jun 2019 23:07:22 +0000
(16:07 -0700)
committer
Eddie Hung
<eddie@fpgeh.com>
Thu, 20 Jun 2019 23:07:22 +0000
(16:07 -0700)
tests/simple/generate.v
patch
|
blob
|
history
diff --git
a/tests/simple/generate.v
b/tests/simple/generate.v
index 3c55682cbfce8982dba4a6cd5cf8ead71a9921dd..0e353ad9b7b5422f6d82bcb2884873bfcb685378 100644
(file)
--- 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