Computer Architecture
The design and operational structure of computers.
Surprisingly the modern day architecture of computers are still built on the Von Neumann Architecture originating from 1945. This architecture executes machine code and consists of:
Central Processing Unit or CPU
Memory Unit
Input/Output Devices like keyboard or display
The CPU is made of 3 main components:
Control Unit or CU
Arithmetic/Logic Unit (ALU)
Registers
Memory
All temporary data and instructions of current running programs are located in the computers memory. Also know as Primary Memory its the location the CPU uses to retrieve en process data. There are 2 types of memory
Cache
Random Acces Memory
Cache
Cache memory is located within the CPU and is extremely fast compared to RAM as it runs on the same clock speed as the CPU. Onlye it is very limited in size. It stores frequently accessed data and instructions. Image a race as CPU and RAM as a delivery truck, the truck would slow down the race car, by storing in cache the CPU won't be slowed down.
Usually in kilobytes, the fastest memory available, located in each CPU core.
RAM
Random access memory or RAM much larger than cache memory and ranging from gigabytes to terabytes. As is its further away from the CPU its also much slower and take more instructions.
Coming from 32-bit addresses the maximum memory address was limited to 4gb (2^32 bytes). In contrast, 64-bit addresses provide a much larger address space - up to 18.5 exabytes (2^64 bytes).
32 bits = 4,294,967,296 bytes
64 bits = 18,446,744,073,709,551,616 bytes
When running a program, all data and instructions are moved from the storage unit to the RAM so it can be accessed by the CPU. Accessing that from a storage unit would take a lot longer. Once a prorgram is closed the data is removed. RAM is divided in 4 segments:

Last-In-First-Out (LIFO) principle. Data in it can only be accessed in a specific order by push-ing and pop-ing data.
IO/Storage
IO or input and output are our device like displays, keyboards, mouse or long-term storage units which are also called Secondary Memory. The processor access and controls these IO devices by using Bus interfaces, they are like highways to transfer data and addresses.
Each bus has a capacity of bits or electrical charges it cary at the same time, ranging from 4-bits to 128-bits.

Last updated
Was this helpful?