Professional Documents
Culture Documents
RAM
LECTURER: PAZIR AHMAD
To get bigger memory we can simply combine flip-flops
The circuit we get this way is called a register
It uses one clock signal to save all inputs in parallel
4-Bit Register
(x =input=output)
If we want to add a control for input and output , we use a controlled buffer:
Outputs needed:
• data out
RAM: Data Input
We look at an example 4×4 RAM (4 words with 4 bits each):
Example RAM: Inputs
RAM: Addressing
We use a decoder to address a specific word in the RAM
Example RAM: Addressing
Combining In- and Outputs
•in- and output pins are never used at the same time
• therefore we can we can use the same pins for both
• we need to disconnect the output lines when writing to the chip.
• Otherwise the output would overwrite the incoming data.
• we use a controlled buffer:
A Complete 4×4 RAM
4×4 RAM: Observations
• When CS (chip select) is 0, the RAM cannot be read or written
• When RD is 1, the RAM is read, when it’s 0 the data input is written
• to activate the output lines, OE (output enable) has to be set to 1
• only the row of flip-flops activated by the two address bits can be accessed