mirror of
https://github.com/garrettsworkshop/Warp-SE.git
synced 2024-11-25 13:33:58 +00:00
New RAM /OE control so it doesn't bus fight
This commit is contained in:
parent
a7632a3057
commit
53bc4c08bd
@ -37,10 +37,15 @@ module RAM(
|
||||
|
||||
/* RAM control signals */
|
||||
assign nRAS = !((!nAS && RAMCS && RASEN) || RASrf);
|
||||
assign nOE = 0;//!( !nAS && RAMCS && BACTr);
|
||||
assign nLWE = !(!nLDS && RASEL && !nWE);
|
||||
assign nUWE = !(!nUDS && RASEL && !nWE);
|
||||
|
||||
/* RAM /OE control */
|
||||
always @(posedge CLK) begin
|
||||
if (nAS) nOE <= 1;
|
||||
else nOE <= !(BACT && RAMCS0X && nWE);
|
||||
end
|
||||
|
||||
/* ROM control signals */
|
||||
assign nROMOE = !(!nAS && ROMCS && nWE);
|
||||
assign nROMWE = !(!nAS && ROMCS4X && !nWE && BACTr);
|
||||
|
Loading…
Reference in New Issue
Block a user