DLX Flashcards
1
Q
Name three types of addressing mode
A
Register: Add R5, R3, R4
(R5 = R3+R4)
Immediate: Add R5, R4, #3
R5 = R4 + 3
Displacement: LW R4, 100(R1)
R4 = MEM[R1+100]
2
Q
What stages of the Pipeline in a DLX?
A
IF Instruction fetch, instruction stored in Instruction Register
ID Instruction Decode, opcode decoded and data retrieved from registers
EX Execution: arithmetic operations, load/store address calculated
MEM: ?
WB Write back results to register file
3
Q
What are structural hazards?
A
When 2 or more instructions try to use the same hardware component.
E.g. Memory Bus / Register write back