diff options
Diffstat (limited to 'tests')
-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 |