100% found this document useful (1 vote)
1K views

Coa Unit 4 Notes

The document contains lecture notes on computer organization and architecture from Dr. A.P.J. Abdul Kalam Technical University. The notes cover cache memory, including that it is SRAM closer to the CPU that is much faster than main memory, bridging the speed gap. The notes define cache mapping as how blocks of main memory are mapped to the cache when needed.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views

Coa Unit 4 Notes

The document contains lecture notes on computer organization and architecture from Dr. A.P.J. Abdul Kalam Technical University. The notes cover cache memory, including that it is SRAM closer to the CPU that is much faster than main memory, bridging the speed gap. The notes define cache mapping as how blocks of main memory are mapped to the cache when needed.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 45

lOMoARcPSD|19531713

COA Unit 4 notes

Computer Organization & Architecture (Dr. A.P.J. Abdul Kalam Technical University)

Studocu is not sponsored or endorsed by any college or university


Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Scanned by CamScanner
Downloaded by Sidharth Sharma ([email protected])
lOMoARcPSD|19531713

Cache Memory-

• Cache memory is a Static Random-Access Memory.


• The main advantage of cache memory is its very fast speed.
• It can be accessed by the CPU at much faster speed than main
memory.
• Cache memory bridges the speed mismatch between the
processor and the main memory.
• Cache memory lies on the path between the CPU and the
main memory.
• It facilitates the transfer of data between the processor and
the main memory at the speed which matches to the speed
of the processor.

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

• Data is transferred in the form of words between the cache memory


and the CPU.
• Data is transferred in the form of blocks or pages between the
cache memory and the main memory.
Purpose-
The fast speed of the cache memory makes it extremely useful.
• It is used for bridging the speed mismatch between the
fastest CPU and the main memory.
• It does not let the CPU performance suffer due to the slower
speed of the main memory.

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Cache Mapping-

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

• Cache mapping defines how a block from the main memory


is mapped to the cache memory in case of a cache miss.
OR

• Cache mapping is a technique by which the contents of


main memory are brought into the cache memory.

The following diagram illustrates the mapping process-

• Main memory is divided into equal size partitions called as blocks or


frames.
• Cache memory is divided into partitions having same size as that of
blocks called as lines.
• During cache mapping, block of main memory is simply copied to the
cache and the block is not actually brought from the main memory.

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])


lOMoARcPSD|19531713

Downloaded by Sidharth Sharma ([email protected])

You might also like