1.1 Components Flashcards
What is the CPU
Processor that has different components that enables it to carry out its task of executing instructions.
What components are in the CPU
CU
Buses
ALU
Registers
What does the CU do
Controls and coordinates the activities of the CPU
Directs flow of data between CPU and other devices
Accepts next instruction and decodes it into several steps (e.g fetching addresses and data from memory, managing its execution and storing the resulting data back in memory and registers)
What are buses
Set of parralel wires conecting two or more components of a computer together. Normally contains 8,16, 32 or 64 lines.
What are the three buses called
Data bus
Control bus
Address bus
What is the purpose of the buses in the FDE cycle (role of buses)
Address is sent to memory on the address bus when the CPU wants to access a part of memory
Data in that location is returned to the CPU on the data bus.
Control signals are sent on the control bus
What is the purpose of control lines
Ensure access to the data and address bus by different components does not lead to conflict
What is a bi directional bus
Carries signals in both directions
What is the purpose of a control bus
Transmit command, timing and specific status info between system components
What are some control line examples
Bus request (data bus)
Bus grant (data bus)
Memory write (Causes data on the data bus to be written in the addressed location)
Memory read (Causes data from the addressed location to be placed on the data bus)
Interrupt request (requesting CPU access)
Clock (Synchronises actions)
What is the purpose of the data bus
Provides bi directional path for moving data and instructions between system components
Transmits results of instruction to memory location
What is the purpose of the address bus
Transmits memory addresses of words that are used as operands in programming instructions so data can be retrieved and sent to processor
Width of the address bus determines max possible memory capacity of the system
What is a word
Fixed size group of digits, handled as a unit by processor. Different processors, different word sizes
The data bus transmits the data held in a word of memory, between processor and memory.
The largest operand that can be held in a word is related to the size of the data bus.
Purpose of ALU
Arithmetic and logic operations on data (e.g shift operations and Boolean logic operations)
What are registers
High speed memory cells. Arithmetic, logic and shift operations are temporarily stored here.
What is the accumulator
Used by some special purpose processors for simplicity.
Assumed all results of ALU are stored here.
What is the purpose of the PC
Holds address of next instruction to be executed
If next instruction is a branch or jump instruction the address to jump to is copied from CIR
What is the purpose of the CIR
Holds current instruction being instructed, split into operand and opcode
What is the purpose of the MAR
Holds address of the memory location from which data is to be fetched or which data is to be written to
What is the purpose of the MDR
Temporarily stores data read from or written to memory.
Also known as memory buffer register
What is the FDE?
Sequence of operations involved in executing an instruction .
The sequence is repeated as each instruction of the program is executed.
What are the steps in the fetch phase
1.Address of next instruction is copied from PC to MAR
2.Instruction held at address is copied to MDR.
3.PC is incremented so it holds address of next instruction
4.Contents of MDR
What are the steps in the decode phase
Instruction held in CIR is decoded. Instruction is split into opcode and operand.
What is the opcode used for
Used to determine the type of instruction and what hardware should be used to execute it