Architecture - Chapter 5

  1. What does MIPS stand for?
    Microprocessor without interlocked pipelined stages
  2. What does RISC stand for
    Reduced instruction set computer
  3. What is MIPS?
    MIPS is a RISC microprocessor architecture
  4. MIPS data path size
    32 or 64 bits
  5. Load/store instruction set
    Before processing data, the data must be copied into registers. The results of the operation must be stored in registers.
  6. MIPS maximum memory size
    230 words
  7. What does a MIPS memory address point to?
    A single byte (byte addressable memory)
  8. EIU
    • Execution integer unit
    • Main processor which interprets and executed instructions
  9. Things included in the EIU
    • Registers
    • ALU
    • Division/Multiplication unit
  10. The FPU and TMU are both ...
    Coprocessors
  11. FPU
    Floating point unit
  12. TMU
    • Trap-memory unit
    • Used for interrupts and system control
  13. 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
  14. Immediate instruction format
    Field nameSize (bits)
    Opcode (op)6
    Source or base (rs)5
    Destination or data (rd)5
    Operand/offset16
  15. Jump instruction format
    Field nameSize (bits)
    Opcode (op)6
    Jump target address26
  16. Simple arithmetic/logic MIPS instructions
    • add
    • sub
    • and
    • or
    • xor
    • nor
    • All r-type
  17. Simple immediate arithmetic/logic MIPS instructions
    • addi
    • andi
    • ori
    • xori
    • lw
    • sw
  18. Instruction format for the j instruction
    Immediate
  19. Instruction format for the jr instruction
    Register
  20. 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)
  21. Conditional branch instructions
    • bltz
    • beq
    • bne
  22. 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
  23. 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)
  24. 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)
  25. Comparison instructions
    • slt
    • slti
  26. The addressing modes
    • Implied
    • Immediate
    • Register
    • Base
    • PC-relative
    • Pseudodirect
  27. Implied addressing
    • Location of the operands is predefined
    • e.g jal instruction
  28. Immediate addressing
    • Operands are included in the instruction
    • e.g addiandi, ori
  29. Register addressing
    • Operand stored/loaded in/from a specified register
    • e.g r-type instructions
  30. Base addressing
    • Operand address is [base register] + [offset]
    • e.g lw, sw
  31. PC-relative addressing
    • Instruction address is [offset] + [PC]
    • e.g beq, bne
  32. Pseudodirect addressing
    • Address is included in the instruction
    • e.g (jump instruction)
Author
Ant
ID
357807
Card Set
Architecture - Chapter 5
Description
Updated