Cache Memory Computer Organization and Architecture by Ravinder Nath Rajotiya - January 11, 20230 Cache Memory Cache memory is the fastest component in the memory hierarchy and approaches the speed of the CPU. A cache is organized between the CPU and the main memory to speed up the operation of a computer system. Some of the examples of the type of data or programs stored in cache may include: Table look up Code of functions Code of loops Array of data Advantage of using Cache: As the access time of cache memory is less than the access time of the main memory by a factor of 5 to 10, thus reducing the total memory access time. Locality of Reference: Cache is used to store the most frequently used instructions or data. Execution of a main program is in sequential order
Memory Organization Computer Organization and Architecture by Ravinder Nath Rajotiya - January 4, 20230 Memory Organization Every computer system has following types of memory devices. The different types of memory can be explained as the memory hierarchy. Memory Hierarchy: The total capacity of the memory in a system can be visualized as a hierarchy of memory devices. It includes all memory devices employed in a computer from large size but very slow-speed to small size but very-high speed devices. The memory hierarchy can be represented as shown in figure below. IOP is used to communication between main memory and the auxiliary memory. Cache is used to communicate between CPU and the main memory. Internal or the primary memory: The internal memory consists of random access memory (RAM), read only memory (ROM) and some high-speed memory such as cache memory.