Building Blocks of a Computer System
A computer System is made up of 3 Basic Building blocks
- Memory
- CPU
- I/O
Buses
The blocks are connected to each other by BUS (Binary Unit System). There are three Types of Buses
Buses – Data is transmitted from one part of a computer to another, connecting all major internal components to the CPU and memory, by the means of Buses. Types:
- Data Bus: It carries data among the memory unit, the I/O devices, and the processor.
- Address Bus: It carries the address of data (not the actual data) between memory and processor.
- Control Bus: It carries control commands from the CPU (and status signals from other devices) in order to control and coordinate all the activities within the computer.
<aside>
💡 Imagine a BUS to be a wire carrying different data.
</aside>
Zoom into the CPU
The CPU consists of
- Control Unit
- Arithmetic and Logic Unit
- Registers
- Cache
Control Unit - CU
- A control unit (CU) handles all processor control signals.
- It directs all input and output flow,
- It fetches the code for instructions
- It controls how data moves around the system.
Arithmetic and Logic Unit - ALU
- The arithmetic logic unit handles all the calculations the CPU may need, e.g. Addition, Subtraction, Comparisons.
- It performs Logical Operations, Bit Shifting Operations, and Arithmetic Operation.
Registers
- Registers are small, very expensive areas in a computer's processor or CPU (Central Processing Unit) that store data.
- There are generally 6 types of registers.
- Accumulator: Stores the resuls of calculations made by the ALU
- Program counter: Stores the address of the Next instructuction. This address is passed to the MAR
- Memory Address Register (MAR) : It stores the Memory Addresses of the instructions that need to be RETRIEVED from or STORED in the Memory
- Memory Data Register(MDR): It stores
- Instructions fetched from memory
- Any data that is to be transferred in the Memory
- Current Instruction Register (CIR): It stores the most recently fetched instructions while it is waiting to be coded and executed.
- Instruction Buffer Register (IBR): The instruction that is not to be executed immediately is placed in the instruction buffer register IBR.
Cache
A CPU cache is a small amount of fast, expensive memory that acts as a buffer between the CPU and main memory. It stores data and instructions that are used frequently by the CPU so that it doesn't have to access main memory repeatedly.
Input/Output - I/O
- Program or data is read into main memory from the
INPUT **device
or secondary storage
under the control of CPU input instruction.
Output **devices
are used to output the information from a computer.
Previous
Computer Organization
Next
Instruction Cycle