RAM /OE asynchronously reset by /AS rising

This commit is contained in:
Zane Kaminski 2024-10-08 21:13:18 -04:00
parent 07da9cd645
commit b21da9baee

View File

@ -45,9 +45,9 @@ module RAM(
assign nUWE = !(!nUDS && RASEL && !nWE); assign nUWE = !(!nUDS && RASEL && !nWE);
/* RAM /OE control */ /* RAM /OE control */
always @(posedge CLK) begin always @(posedge CLK, posedge nAS) begin
if (nAS) nOE <= 1; if (nAS) nOE <= 1;
else nOE <= !(BACT && RAMCS && nWE); else nOE <= !(RAMCS && nWE);
end end
/* ROM /OE and /WE control */ /* ROM /OE and /WE control */