mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-24 14:53:42 +00:00
Bugfix in memory_dff
This commit is contained in:
parent
ccdbf41be6
commit
ddf3e2dc65
2 changed files with 27 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue