summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2015-10-31 22:01:41 +0100
committerClifford Wolf <clifford@clifford.at>2015-10-31 22:01:41 +0100
commitddf3e2dc657da5e441bd9315bf1a86959a07cab9 (patch)
tree0bb35e45f34214a2b898a4d3c028ec4f52b5760a /tests
parentccdbf41be60f78df9f8f2347026aaaf03693bd35 (diff)
Bugfix in memory_dff
Diffstat (limited to 'tests')
-rw-r--r--tests/simple/memory.v15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/simple/memory.v b/tests/simple/memory.v
index 67f89cd7..d58ed9d1 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