This is a short question. It is related to some other projects I'm working on.
Attached is a picture of part of my schematic. I have 3x 74HC373 latches, and the 1x 62256 SRAM. Two of the latches have the addresses, and one latch as the data. They are all connected to a common input bus (on the 6502 side of things). I want to use them to write a byte to this RAM.
The procedure is to load the data into the first latch, then the second latch, then the third latch. Finally, I drive the /WRITE line low, which allows the latched data to travel to the RAM, and also enables the RAM's /WE pin. But what about the /CS pin? See, the data in the latches should take some nanoseconds longer to reach the RAM. If I had the /WRITE line also connected to the /CS line, the RAM would open up for writing, but the data from the latches won't yet be activated, so I *could* write random information to random places. Correct?
So I added a double-not gate, giving the latches time to propagate, and THEN the RAM writes what's on the bus. Is this a good thing to do?
I have 62256 RAM which is kind of slow, but lets say I had some 20ns SRAM or something. I don't know, just theories. Would I then need to slow down the /CS line at all?
We could switch the /WE and /CS pins of course, or I could just keep /CS low and use only the /WE pin instead. Either way, how do I make sure the RAM doesn't get spurious data written to it before the latches have time to send their data?
Thoughts?
Thank you everyone!
Chad