2506 Midterm Review Flashcards
format for R-type instruction
op rs rt rd shamt funct
format for I-type load/store instruction
op rs rt 16-bit imm
format for J-type branch instruction
op 26-bit imm
rt register
2nd source register
rs register
1st source register
rd register
destination register
load command specifies destination
first
store command specifies destination
last
beq
branch on equal
bne
branch on not equal
instructions that take 2 registers
addi
lw
beq
instructions that take only an immediate
j
instructions that take 3 registers
add, or
how long are MIPS instructions
32 bits
shamt
shift amount
for an I-type instruction, where is content written?
in $rt
how is the appropriate address calculated from an I-type instruction?
the contents of $rs is fetched to the ALU and added to the immediate field
how many bits is an opcode?
6 bits
what does a memory unit do?
store instructions and data values
what does a register do?
store instructions and data values within the processor
what does an ALU do?
implement basic operations
what do multiplexors do?
allow selection among different choices for operands and data values