projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80e4594
)
Added test case for AstNode::MEM2REG_FL_CMPLX_LHS
author
Clifford Wolf
<clifford@clifford.at>
Tue, 17 Jun 2014 19:49:59 +0000
(21:49 +0200)
committer
Clifford Wolf
<clifford@clifford.at>
Tue, 17 Jun 2014 19:49:59 +0000
(21:49 +0200)
tests/simple/mem2reg.v
patch
|
blob
|
history
diff --git
a/tests/simple/mem2reg.v
b/tests/simple/mem2reg.v
index e2c136ddb911a35146a08cf9c3a2a20062ee1f24..3630b57c7e76166f681cc9d58cb10093846a420b 100644
(file)
--- a/
tests/simple/mem2reg.v
+++ b/
tests/simple/mem2reg.v
@@
-43,3
+43,15
@@
end
endmodule
+// ------------------------------------------------------
+
+// http://www.reddit.com/r/yosys/comments/28d9lx/problem_with_concatenation_of_two_dimensional/
+module test3( input clk, input [8:0] din_a, output reg [7:0] dout_a, output [7:0] dout_b);
+reg [7:0] dint_c [0:7];
+always @(posedge clk)
+ begin
+ {dout_a[0], dint_c[3]} <= din_a;
+ end
+assign dout_b = dint_c[3];
+endmodule
+