is a set of commands that a microprocessor can understand and execute and they are specific to the processor
What does an instruction contain?
An opcode and operand
Operand
the part of a computer instruction that specifies what data is to be manipulated or operated on
immediate addressing
the operand is the datum (the value in the address part is the actual value being used not the location of the value)
direct addressing
the operand is the address of the datum ( the address in memory is where the value actually is that should be used)
ISR Effect on Fetch-Execute Cycle
Suspends current instruction, pops PC, executes ISR, and resumes execution.
Interrupt
A signal sent to the CPU to stop its current activity and attend to a higher-priority task.
Control unit
coordinates all activites of the CPU
directs the flow of data between the CPU and other devices
Sends memory read and write requests as well as other commands and control signals through the control bus
Makes extensive use of the status register and clock
Status register
contains information about the state of the processor
individual bits are implicitly or explicitly read and/or written by the machine code instructions executing on the proccessor
these bits are set on or off and can be checked at any point
Program counter register
Holds the address of the next instruction to be executed
this could be the next instruction in a sequence of instructions
has a very close relationship with the memory address register
at the start of every new FDE cycle the address held in the PC is copied to the MAR
Memory Address register
Holds the address of the memory data of which data or instruction is to be fetched or to which data is written
Sends these address to memory down the address bus
Memory buffer register
Use to temporaily store the data which is read from or written to memory
All data to and from memory must travel down the databus and pass through the MBR
Current instruction register
Holds the current instruction being executed
Contents of MBR are copied to CIR
Contains the operator and operands of the current instruction
What components effect the proccessor speed?
Clock Speed
Cache memory
Multiples copies of the CPU
Width of Data bus
Widh of memory bus
How does clock speed effect the proccessor speed?
The higher the clock speed, the more pulses are sent more second so more instruction can be executed. A problem with this is that the quicker it is, the more heat generated which can reduce the life-span of the CPU
How does cache effect the proccessor speed?
A small piece of fast memory
Used to store frequently used information and reduces time wasted in fetching the same information from main memory time and time again
How does word length affect the proccessor speed?
A word is a group of bits that is treated as a singleunit by a processor
Higher word lengths allow for more bits to be transferred and manipulated as a single unit
How does the address bus width affect the proccessor speed?
The width of a bus relates to the number of parallel wires that make up the bus
Increasing the width of the address bus increases the range of addresses that it can specify
Increasing the width of the address bus increases the computer’s amount of addressable memory
Adding a single wire doubles the number of addressable memory locations
How does the data bus width affect the processor speed?
Increasing the width of the data bus increases the volume of data that can be transferred over the bus at any one time
A wider data bus allows the processor to fetch more data from mainmemory in one cycle of the fetch-execute cycle
This reduces the number of cycles required to fetch large volumes of data
Steps of the a FDE cycle:
Step 1: Contents of the program counter are copied into the Memoryaddress register
Step 2: The contents of the program counter is incremented by 1
Step 3: The contents of the addressed memory location is loaded into the MBR from main memory
step 4: The contents in MBR is transfered the the currentinstruction register
Step 5: The contents are decoded by the decode unit
Fetch stage 1:
Contents of the programcounter are copied into the Memoryaddress register and travels along the address bus to main memory
The contents of the program counter is incremented by 1
The contents of the addressed memory location is loaded into the MBR from main memory via data bus
The contents in MBR is transfered the the currentinstruction register
Decode stage 2:
Instructions to decode are held in CIR
Instructions are decoded by the control unit and split into opcode and operand
execute stage 3:
The opcode identifies the type or operation to be formed by the control unit or it could be the ALU performing calculations and comparisions
the status register is updated.if a branch is required the PC is updated and the control bus transfers signals to other components to initiate actions
Describe what an interrupt is and explain its purpose
A signal/request sent to the processor so that a device that needs immediate attention of the processor can be dealt with so that the urgent error condtion can be dealt with
What is an interrupt in computing?
An interrupt is a signal sent to the processor by another part of the computer requesting the attention of the processor.