change sram1rw to have a small delay so that we don't have signals changing on clock edges

This commit is contained in:
bbracker 2021-07-19 11:30:07 -04:00
parent 7d571f27a6
commit 67eb1f5c6b

View File

@ -15,7 +15,7 @@ module sram1rw #(parameter DEPTH=128, WIDTH=256) (
always_ff @(posedge clk) begin
ReadData <= StoredData[Addr];
if (WriteEnable) begin
StoredData[Addr] <= WriteData;
StoredData[Addr] <= #1 WriteData;
end
end
endmodule