Just make sure the RAM cannot be written to when phase 2 is low.
cr1901 wrote:
Amusingly, for the
address decoding section, Garth's primer shows a circuit where /OE and /CS are both qualified with PHI2, and a circuit where only /CS is qualified by PHI2, but doesn't show a circuit for the case where only /OE and RWB is gated by PHI2.
There are lots of ways to work it; but much of my point there is to show that you can do the whole job with a single 14-pin IC, and that beginners tend to make it much too complicated. As for reliability, the first circuit there is what I've been using on the workbench for over 20 years with no problems, and what was in an aircraft intercom we produced and sold for about 14 years (shown on the same page) and it never failed, even at temperature extremes (-40 to +180 deg F). RAM is available in speeds much faster than you need for this kind of scheme at 5 or 10MHz, not to mention 1 or 2MHz. There is so much margin at the lower frequencies that it is pointless to talk about getting the extra time by selecting the RAM before phase 2 goes up. When you get into the higher frequencies, then yes, more attention is needed as the timing margins get thinner and thinner.
Quote:
Gating only /OE doesn't work, b/c at least with the SRAM I have on hand, /OE's logic level doesn't matter if /WE is asserted.
I'm sure there are SRAMs that need OE\ high to be able to write, but I have not run into one myself. All the ones I've seen will ignore OE\ when WR\ is low.