Structure and Function of the Processor Flashcards
(77 cards)
What is the ALU?
The ALU (Arithmetic and Logic Unit) completes all of the arithmetical and logical operations.
Can perform shift operations also.
Logical operations include boolean logic operations such as AND, OR, NOT, and XOR.
What is the control unit?
directs the operations of 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 components
Accepting the next instruction
Decoding instructions
Storing the resulting data back in memory
what is a register
Registers are small memory cells that operate at a very high speed.
purpose of register
They are used to
temporarily store data and all arithmetic, logical and shift operations occur in these
registers.
job of the program counter
holds address of next instruction to be executed
It sends the address to the MAR, before being incremented, and pointing to the next address.
job of accumulator
its a general purpose register
Stores the results from calculations
job of memory address reg
Holds the address of a location that is to be
read from or written to.
This address was copied from the PC.
job of mem data reg
Temporarily stores data that has been read
or data that needs to be written to memory.
job of current instruction reg
Holds the current instruction being
executed, divided up into operand and
opcode.
width of bus
The width of the bus - num of parallel wires the bus has.
directly proportional to the number of bits that can be transferred simultaneously at any given time.
typical bus widths
buses are typically 8, 16, 32 or 64 wires wide.
what are buses
Buses are a set of parallel wires which connect two or more components inside the CPU.
There are three buses in the CPU: data bus, control bus, and address bus. These buses
collectively are called the system bus.
data bus
This is a bi-directional bus (meaning bits can be carried in both directions). This is used for
transporting data and instructions between components.
control bus
This is a bi-directional bus used to transmit control signals between internal and external
components. The control bus coordinates the use of the address and data buses and
provides status information between system components.
address bus
This is the bus used to transmit the memory addresses specifying where data is to be sent
to or retrieved from. The width of the address bus is proportional to the number of
addressable memory locations.
control signals of control bus
bus request
Bus grant
Memory write
Memory read
Interrupt request:
Clock
A LEVEL ONLY - PIPELINING
process of completing the fetch, decode, and execute cycles of three
separate instructions simultaneously, holding appropriate data in a buffer in close proximity
to the CPU until it’s required.
While one instruction is being executed, another can be
decoded and another fetched.
what is fetch decode eecute cycle
The fetch-decode-execute cycle is the sequence of operations that are completed in order
to execute an instruction.
aim of pipelining - A LEVEL ONLY
Pipelining is aimed to reduce the amount of the CPU which is kept idle.
what is pipelining seperated into
instruction pipelining
arithmetic pipelining
instruction pipelinning
Instruction pipelining is separating out the
instruction into fetching, decoding, and executing.
arithmetic pipelining
Arithmetic pipelining is breaking down
the arithmetic operations and overlapping them as they are performed
decode phase
Decode phase: -
The contents of CIR are split into operand and opcode
the data/instruction is decoded and processed
fetch phase
Fetch phase: -
Address from the PC is copied to the MAR —
Instruction held at that address is copied to MDR by the data bus
Simultaneously, the contents of the PC are increased by 1
The value held in the MDR is copied to the CIR