Memory and Programmable Logic
Memory and Programmable Logic
Memory and Programmable Logic
Memory Device:
Device to which binary information is transferred for storage,
and from which information is available for processing as needed.
Memory Unit:
is a collection of cells capable of storing a large quantity of binary
information.
1. RAM
2. ROM
1
Random-Access Memory
Memory unit:
Stores binary information in groups of bits called words.
Memory word:
group of 1’s and 0’s and may represent a number,
character(s), instruction, or other binary-coded information.
Most computer memories use words that are multiples of 8 bits (byte ).
32-bit word à 4 bytes
Random-Access Memory
Each word in memory is assigned an address 0 up to 2k – 1 (k = # of
address lines).
memory content
2
RAM: Write and Read Operations
Memory Types
Integrated circuit RAM units are available in two possible operating modes:
static and dynamic.
Static RAM (SRAM) consists of of internal latches that store the binary
information. The stored information remains valid as long as power is
applied to the unit.
3
Memory Hierarchy
4
RAM Memory Cell
4 x 4 RAM
WRITE operation: the data available in the input lines are transferred
into the four binary cells of the selected word. The memory cells that are
not selected are disabled.
READ Operation: the four bits of the selected word go through OR
gates to the output terminals.
6
Commercial RAM
404
7
Constructing 256K X 8 RAM (similar to 7-8)
1. How many 64K x 8 RAM chips are needed to
provide a memory capacity of 256KB?
2. How many lines of the address must be used to
access 256K bytes? How many of these lines are
connected to the address inputs of all chips?
3. How many lines must be decoded for the chip
select inputs of all chips?
10
256K X 8 RAM
- Three-state outputs are connected
together to form 8 data output lines.
32 X 8 ROM chip
11