diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-10-31 22:01:41 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-10-31 22:01:41 +0100 |
commit | ddf3e2dc657da5e441bd9315bf1a86959a07cab9 (patch) | |
tree | 0bb35e45f34214a2b898a4d3c028ec4f52b5760a /tests/simple | |
parent | ccdbf41be60f78df9f8f2347026aaaf03693bd35 (diff) | |
download | yosys-ddf3e2dc657da5e441bd9315bf1a86959a07cab9.tar.gz yosys-ddf3e2dc657da5e441bd9315bf1a86959a07cab9.tar.bz2 yosys-ddf3e2dc657da5e441bd9315bf1a86959a07cab9.zip |
Bugfix in memory_dff
Diffstat (limited to 'tests/simple')
-rw-r--r-- | tests/simple/memory.v | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/simple/memory.v b/tests/simple/memory.v index 67f89cd75..d58ed9d1a 100644 --- a/tests/simple/memory.v +++ b/tests/simple/memory.v @@ -228,3 +228,18 @@ module memtest09 ( end endmodule +// ---------------------------------------------------------- + +module memtest10(input clk, input [5:0] din, output [5:0] dout); + reg [5:0] queue [0:3]; + integer i; + + always @(posedge clk) begin + queue[0] <= din; + for (i = 1; i < 4; i=i+1) begin + queue[i] <= queue[i-1]; + end + end + + assign dout = queue[3]; +endmodule |