Components of a Computer- S1 Flashcards
The Central Processing Unit
the CPU or the processor, has a number of different components which enables the it to carry out its task of execution instructions.
Control unit
controls and coordinates the activities of the CPU It accepts next instructions and decodes it
Bus
a set of parallel wires connecting two or more components of a computer
The processor is connected to the main memory by three busses known as the system bus. Only one signal can be transmitted along a bus at a time.
Address Bus
The address bus transmits the memory addresses so that data can be retrieved and sent back to the processor. Data can only be sent one way (CPU to memory)
Data bus
The data bus, provides a bidirectional path for moving data and instructions from memory to location. (carries data between register components)
Control Bus
transmits control signals (from the control unit) to the rest of the processor (commands, timing) Data is a bi-directional bus between, CPU to memory or I/O devices.
Arithmetic-Logic Unit (ALU)
performs arithmetic and logical operations on the data. E.g subtract, shift operations within a register, Boolean logic operations.
Acts as a conduit through which all I/O to computer is done/gateway to the processor.
Fetch phase
1) The address of the next instruction is copied from the PC to the MAR
2) The instruction held at that address is copied to the MDR, and 1+ is added to the PC so it holds the address of next instruction.
3) The contents of the MDR are copied to the CIR.
Decode phase
The instruction in the CIR is decoded. The instruction is split into the opcode and the operand (the data that will be operated on).
Opcode
the instruction
Operand
the data that will be operated on
Registers
Provide fast access to data for when frequent access is needed like in the fetch execute cycle. It is used for temporary storage.
Memory Unit
Stores OS Stores data (currently in use) Stores software(currently in use)/boot program/operations/instructions.
Difference between RAM and ROM
- RAM is volatile/ROM is not volatile
- RAM is editable/ROM cannot be altered
- RAM is larger/ROM is smaller
Whats stored in RAM
Programs, software and data in use so that it can be accessed faster than the hardrive
What software is stored in RAM
Bootstrap, must be available when computer switched off in order to start the computer
Program Counter
-Is needed to store the address of the next instruction
-Value is then sent to the MAR
-After sending the value the PC is incremented
-OR the PC changes to address
held in CIR if the operation is a Jump
Memory Address Register
Contains the address of the instruction sent from PC
or sent from CIR