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);
/* RAM /OE control */
always @(posedge CLK) begin
always @(posedge CLK, posedge nAS) begin
if (nAS) nOE <= 1;
else nOE <= !(BACT && RAMCS && nWE);
else nOE <= !(RAMCS && nWE);
end
/* ROM /OE and /WE control */