Generally speaking, then RAM is nearest to processor. CPU fetches all the data from RAM only. However, in reality there is something called Cache memory which come built-in in the processor. Data which is required most frequently is stored in it so that the processor can quickly fetch and process it.
The Type of transfers that must a computer interconnection structure support thats a bus is the following: (1) Memory to Processor (2) Processor to Memory (3) I/O to Processor (4) Processor to I/O (5) I/O to or from Memory
processor and main memory
The memory unit's size that depends on the processor is the bit.
The processor time is a function of the processor. The memory allocation is a function of the operating system.
dynamic memory
The memory that the computer processor accesses directly is primary memory. It is wired directly to the processor. RAM is primary memory on a computer.
Cache memory
The type of processor memory located on the processor chip, or processor die, is known as cache memory. This includes various levels, such as L1, L2, and sometimes L3 cache, which are designed to provide high-speed access to frequently used data and instructions, significantly improving processing efficiency. Cache memory is faster than main memory (RAM) and helps reduce latency during data retrieval.
Motherboard
It is integrated with Processor. Also called Cache Memory.
Cache
Memory is microchip; address are processor board slots