diff --git a/cpld/RAM.v b/cpld/RAM.v index e25987f..2afa2c3 100644 --- a/cpld/RAM.v +++ b/cpld/RAM.v @@ -120,6 +120,12 @@ module RAM( RAMReady <= 1; end end 4: begin // Refresh RAS II + RS <= 5; + RASEL <= 0; + RASrr <= 1; + RASEN <= 0; + RAMReady <= 0; + end 5: begin // Refresh precharge I RS <= 6; RASEL <= 0; RASrr <= 0; @@ -141,7 +147,7 @@ module RAM( endcase end always @(negedge CLK) begin - RASrf <= RS==1 || RS==4; + RASrf <= RS==1; case (RS[2:0]) 0: nCAS <= !RS0toRef; 1: nCAS <= 0;