1.1.1 Structure and function of the processor Flashcards
Purpose of the ALU?
● The ALU (Arithmetic and Logic Unit) completes the arithmetical and logical operations .
Purpose of the Control Unit?
● The Control Unit is the component of the processor which directs operations inside the CPU . It has the following jobs:
○ Controlling and coordinating the activities of the CPU
○ Managing the flow of data between the CPU and other devices
○ Accepting the next instruction
○ Decoding instructions
○ Storing the result back in memory
What are registers?
● Registers are small memory cells that operate at very high speeds,
● They are used to temporarily store data,
● All arithmetic, logical or shift operations occur in these registers
Purpose of the Program Counter?
- Holds the address of the next instruction to be executed
Purpose of Accumulator?
- Stores the results from calculations
Purpose of Memory Address Register (MAR)?
- Holds the address of a location that is to be read from or written to .
Purpose of Memory Data Register (MDR)?
- Temporarily stores data that has been read or data that needs to be written .
Purpose of Current Instruction Register (CIR)?
- Holds the current instruction being executed, divided up into operand and opcode.
What are Buses?
● Buses are a set of parallel wires which connect two or more components inside the CPU together
● The collection of the data bus, control bus, and address bus is called the system bus
● The width of the bus is the number of parallel wires the bus has.
What is the Data Bus?
● This is a bi-directional bus (meaning bits can be carried in both directions) used for transporting data and instructions between components.
What is the Address Bus?
● Used to transmit the memory addresses specifying where data is to be sent to or retrieved from
● Adding a wire to the address bus doubles the number of addressable locations
What is a Control Bus?
● This is a bi-directional bus used to transmit control signals between internal and external components.
What are the control signals?
○ Bus request: shows that a device is requesting the use of the data bus
○ Bus grant: shows that the CPU has granted access to the data bus
○ Memory write: data is written into the addressed location using this bus
○ Memory read: data is read from a specific location to then be placed onto the data bus
○ Interrupt request: shows that a device is requesting access to the CPU
○ Clock: used to synchronise operations
Explain the relationship of opcode with assembly language?
● Assembly code uses mnemonics to represent instructions.
● It is a simplified way of representing machine code .
● The instruction is divided up into operand and opcode
● Opcode is used to determine the type of instruction and what hardware to use to execute it.
● The operand is the address of where the operation is performed.
What is the fetch-decode-execute cycle?
- The sequence of operations that are completed in order to execute an instruction.