Unit 4 Memory Heirarchy
Unit 4 Memory Heirarchy
Unit-4:Memory organization
When the program not residing in main memory is needed by the CPU, they are
brought in from auxiliary memory. Programs not currently needed in main memory are
transferred into auxiliary memory to provide space in main memory for other
programs that are currently in use.
Main Memory
• The memory unit that communicates directly within the CPU, is called
main memory.
• It is the central storage unit of the computer system.
• It is a large and fast memory used to store data during computer
operations. Main memory is made up of RAM and ROM, with RAM
integrated circuit chips holing the major share.
RAM Chip- Random Access Memory
The block representation of a typical RAM chip is shown in the following diagram
State(Data
CS1 CS2 RD WR Type of Function
bus)
0 0 X X I HI
0 1 X X I HI
1 0 0 0 I HI
1 1 X X I HI
• The unit is in operation only when CS1 = 1 and CS2 = 0.
• .If the chip select inputs are not enabled, or if they are enabled but the read or write
inputs are not enabled, the memory is inhibited and its data bus is in a high-impedance
state.
• When CS1 = 1 and CS2 = 0, the memory can be placed in a write or read mode.
• When the WR input is enabled, the memory stores a byte from the data bus into a
location specified by the address input lines.
• When the RD input is enabled, the content of the selected byte is placed
into the data bus.
a. How many 128x8 RAM chips are needed to provide memory capacity
of 2048 bytes?
b. How many lines of address bus must be used to access 2048 bytes of
memory
c. Specify the size of the decoder to decode the chip select?
Ans:
a. Total memory capacity is 2048 bytes. We have 128x8 size RAM s
so, number of RAM required= 2048/128= 16
c. As 16 RAM chips are required to access 2048 bytes of memory , size of the
decoder required to select one of the chip is 4x16
PROBLEM