mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
change sram1rw to have a small delay so that we don't have signals changing on clock edges
This commit is contained in:
parent
62b4ef6953
commit
986b7a8252
2
wally-pipelined/src/cache/sram1rw.sv
vendored
2
wally-pipelined/src/cache/sram1rw.sv
vendored
@ -15,7 +15,7 @@ module sram1rw #(parameter DEPTH=128, WIDTH=256) (
|
|||||||
always_ff @(posedge clk) begin
|
always_ff @(posedge clk) begin
|
||||||
ReadData <= StoredData[Addr];
|
ReadData <= StoredData[Addr];
|
||||||
if (WriteEnable) begin
|
if (WriteEnable) begin
|
||||||
StoredData[Addr] <= WriteData;
|
StoredData[Addr] <= #1 WriteData;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
endmodule
|
endmodule
|
||||||
|
Loading…
Reference in New Issue
Block a user