Processor Hardware and Instruction Sets Flashcards
What is the instruction cycle?
Fetch instruction from memory Decode instruction Fetch operands Perform computation Write result to memory
What is pipelining?
Pipelining speeds up processing by starting an instruction before the previous one is complete. This only works if each instruction is one word long at each stage.
Describe CISC
Instructions can be any length
Instructions can be any format
Instructions can take any number of clock cycles
Difficult for pipelines to handle
Describe RISC
Instructions are one word long
Instructions are all a similar format
Instructions take one clock cycle to execute
What are the key registers in a CPU?
PC - holds the address of the next instruction
MAR - holds the address issued to the address bus
MDR - exchanges data with the data bus
IR - holds the current instruction
SP - hold current address at the top of the stack
SR - holds the status bit
What are the four status flags?
C - calculation produced a carry bit
V - calculation produced a signed overflow
Z - result is zero
N - result is negative
What is a machine instruction?
A binary word that encodes the operation to be carried out, the location of the operands and the location to store the result.