RAM RefDone reset by RefReqIn only. No longer depends on RefUrg too

This commit is contained in:
Zane Kaminski 2024-10-08 22:48:11 -04:00
parent 14ef33904f
commit 48633d0847

View File

@ -27,7 +27,7 @@ module RAM(
/* Refresh command generation */ /* Refresh command generation */
reg RefDone; // Refresh done "remember" reg RefDone; // Refresh done "remember"
always @(posedge CLK) begin always @(posedge CLK) begin
if (!RefReqIn && !RefUrgIn) RefDone <= 0; if (!RefReqIn) RefDone <= 0;
else if (RS[2]) RefDone <= 1; else if (RS[2]) RefDone <= 1;
end end
wire RefReq = RefReqIn && !RefDone; wire RefReq = RefReqIn && !RefDone;