processor components Flashcards
central processing unit (CPU)
it is also simply known as the main processor, contains a different number of components which enables it to carry out its tasks of executing instructions
describe the CU (control unit)
the control unit controls and coordinates the activities of the CPU. It accepts the next instruction, decodes it in several sequential steps such as fetching address and data from memory, manages its execution and stores the resulting data back in memory of registers
describe buses
a bus is a set of parallel wires connecting two or more components of a computer. it typically consists of 8, 16, 32, 64 lines.
describe control bus
the control bus is a bi-directional bus, meaning that signals can be carried in both directions.
control lines include:
bus request: indicates that device is requesting the use of the data bus
bus grant: indicates that the CPU has granted access to the data bus
memory write: causes data on the data bus to be written into the addressed location
memory read: causes data from the addressed location to be placed on the data bus
interrupt request: indicates that a devices is requesting access to the CPU
Clock: used to synchronise operations
describe the Data Bus
The data bus, typically consisting of 8, 16, 32, 64 separate lines, provides as bi-directional path for moving data and instructions between system components
describe the Address bus( what is a word? )
the address bus transmits the memory address of words that are use as operands in programs. a word is a fixed size group of digits, typically 16, 32 or 64 bits. this is handled as a unit by the processor. each word in memory has its own specific address.
what does the Arithmetic-logic Unit (ALU)
the Arithmetic-logic Unit performs arithmetic and logical operations on the data. it can perform instructions like ADD, SUBTRACT, MULTIPLY, DIVIDE on fixed or floating point numbers. it can also perform shifts.
Registers
are special memory cells that operate at very high speed
describe the program counter (PC)
it is a register that holds the next instruction that is going to be executed
current instruction register (CIR)
it is a register that holds the current instruction that is being executed
memory address register (MAR)
its a register that holds the address of the current instruction which is being executed
memory data register (MDR)
its a register that holds the data of the current instruction which is being executed
The Fetch-Decode-Execute cycle
the sequence of operations involved in executing an instruction can be divided into three phases - fetching, decoding and executing it. this repeats until all of the instructions have been executed
what happens in the fetch phase
- The address of the next instruction is copied from the PC to the MAR
- The instruction held at that address is copied to the MDR. simultaneously, the PC is incremented by 1
- The contents of the MDR are copied into the CIR
what happens in the decode phase
the instructions held in the CIR is decoded. The instruction is split into OPCODE and OPERAND. the opcode is used to determine the type of instruction and what hardware to use to execute it.
- the address of the data to be used with the operation, which is then copied to the MAR
- the actual data to be operated on, which will be copied to the MDR
- the data to be operated on may be passed to the ALU/ accumulator