Memory
Memory
• Memory Hierarchy
• Main Memory
• Auxiliary Memory
• Cache Memory
• Associative Memory
• Virtual Memory
• Memory Management Hardware
Memory
• Memory is used to store data and
instructions.
Unit Description Power
Bit Smallest Unit (0 or 1) -
Nibble 4 bits -
Byte 8 bits -
1 KB (Kilo Byte) 1024 bytes 2 10
1 MB (Mega Byte) 1024 KB 2 20
1 GB (Giga Byte) 1024 MB 2 30
1 TB (Tera Byte) 1024 GB 2 40
1 PB (Peta Byte) 1024 TB 2 50
1 EB (Exa Byte) 1024 PB 2 60
1 ZB (Zetta Byte) 1024 EB 2 70
Types of Memory
• There are mainly 3 types of Memory
1) Primary or Main Memory
2) Secondary or Auxiliary Memory
3) Cache Memory
CPU Cache
memory
Register
Cache
Main Memory
Magnetic Disk
Magnetic Tape
Typical RAM and ROM Chips
Typical RAM Chip
128 = 27
•A three-state buffer output can be placed in one of three
possible states: a signal equivalent to logic 1, a signal
equivalent to logic 0, or a high impedance state.
•The logic 1 and 0 are normal digital signals.
•The high impedance state behaves like an open circuit,
which means that the output does not carry a signal and
has no logic significance.
• The unit is in operation only when CS1 = 1 and CS2 = 0.
• The bar on top of the second select variable indicates
that this input is enabled when it is equal to 0.
Typical ROM Chip
512 = 29
Memory Address Map
Decoder
3 2 1 0
CS1
CS2
Data
RD 128 x 8
RAM 1
WR
AD7
CS1
CS2
Data
RD 128 x 8
RAM 2
WR
AD7
CS1
CS2
Data
RD 128 x 8
RAM 3
WR
AD7
CS1
CS2
RD 128 x 8 Data
RAM 4
WR
AD7
CS1
CS2
1- 7
Data
512 x 8
8
} AD9 ROM
9
Decoder
• A decoder is a combinational circuit that
converts binary information from the n coded
inputs to a maximum of 2“ unique outputs.
• If the n-bit coded information has unused bit
combinations, the decoder may have less
than 2" outputs.
• The decoders presented in this section are
called n-to-m-line decoders, where m :5 2".
Their purpose is to generate the 2" (or fewer)
binary combinations of the n input variables.
A decoder has n inputs and m outputs and is
also referred to as an n x m decoder.