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 62b4ef6953
commit 986b7a8252

View File

@ -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