-
What does MIPS stand for?
Microprocessor without interlocked pipelined stages
-
What does RISC stand for
Reduced instruction set computer
-
What is MIPS?
MIPS is a RISC microprocessor architecture
-
MIPS data path size
32 or 64 bits
-
Load/store instruction set
Before processing data, the data must be copied into registers. The results of the operation must be stored in registers.
-
MIPS maximum memory size
230 words
-
What does a MIPS memory address point to?
A single byte (byte addressable memory)
-
EIU
- Execution integer unit
- Main processor which interprets and executed instructions
-
Things included in the EIU
- Registers
- ALU
- Division/Multiplication unit
-
The FPU and TMU are both ...
Coprocessors
-
-
TMU
- Trap-memory unit
- Used for interrupts and system control
-
Register instruction format
Field name | Size (bits) |
---|
Opcode (op) | 6 | Source 1 (rs) | 5 | Source 2 (rt) | 5 | Destination (rd) | 5 | Shift amt (often unused, sh) | 5 | Opcode extension (fn) | 6 |
-
Immediate instruction format
Field name | Size (bits) |
---|
Opcode (op) | 6 | Source or base (rs) | 5 | Destination or data (rd) | 5 | Operand/offset | 16 |
-
Jump instruction format
Field name | Size (bits) |
---|
Opcode (op) | 6 | Jump target address | 26 |
-
Simple arithmetic/logic MIPS instructions
- add
- sub
- and
- or
- xor
- nor
- All r-type
-
Simple immediate arithmetic/logic MIPS instructions
-
Instruction format for the j instruction
Immediate
-
Instruction format for the jr instruction
Register
-
How is the address inferred from the j instruction
- Front: Four bits from program counter
- Middle: 16 Bits from the immediate operand
- Back: Two zeroes (to make multiple of 4)
-
Conditional branch instructions
-
jr instruction format
- Immediate
- rs holds the address of the register that contains the address to jump to
- op, rt, rd and sh are all 0s
-
bltz instruction format
- Immediate
- rs contains address of register to compare
- rt is 0
- Immediate operand is relative branch distance (in words)
- See diagram on chapter 6 notes (part 2)
-
bne and beq instruction format
- Immediate
- rs and rt contain addresses of registers to be compared
- Immediate operand is the relative branch distance (in words)
-
-
The addressing modes
- Implied
- Immediate
- Register
- Base
- PC-relative
- Pseudodirect
-
Implied addressing
- Location of the operands is predefined
- e.g jal instruction
-
Immediate addressing
- Operands are included in the instruction
- e.g addi, andi, ori
-
Register addressing
- Operand stored/loaded in/from a specified register
- e.g r-type instructions
-
Base addressing
- Operand address is [base register] + [offset]
- e.g lw, sw
-
PC-relative addressing
- Instruction address is [offset] + [PC]
- e.g beq, bne
-
Pseudodirect addressing
- Address is included in the instruction
- e.g j (jump instruction)
|
|