Image for post
Image for post

The CPU and The Memory

Image for post
Image for post
Random Access Memory

Central Processing Unit:

Image for post
Image for post
CU and ALU interaction with RAM

The MMU (Memory Management Unit):

The MMU is a computer hardware component that handles all memory and caching operations associated with the processor. It has two special registers that are accessed by the CPU’s control unit. A data to be sent to main memory or retrieved from memory is stored in the Memory Data Register (MDR). The desired logical memory address is stored in the Memory Address Register (MAR). The address translation is also called address binding and uses a memory map that is programmed by the operating system.

Image for post
Image for post
Before memory addresses are loaded on to the system bus, they are translated to physical addresses by the MMU.

Memory hierarchy:

Memory hierarchy is a concept used to discuss performance issues in computer architectural design, algorithm predictions, and lower level programming constructs involving locality of reference. The memory hierarchy in computer storage separates each of its levels based on response time. Since response time, complexity, and capacity are related, the levels may also be distinguished by their performance and controlling technologies.

Image for post
Image for post

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store