Mips

Card Set Information

Author:
CatMad
ID:
151859
Filename:
Mips
Updated:
2012-05-03 02:17:09
Tags:
Mipps
Folders:

Description:
Happy Heiner Time
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user CatMad on FreezingBlue Flashcards. What would you like to do?


  1. Fetch:
    (Program Counter subpart)

    Program Counter Register

    MUX

    AND Gate (for jump)

    Adder

    Instruction memory
  2. Decode:
    (Register File subpart)

    Mux X2

    Demux X3

    Registers X32
  3. Exicute:
    (Arithmetic Logic Unit subpart (ALU))

    Arithmetic subparts X4

    Control Logic (and gates)

    Mux
  4. Memory:
    Data memory

    Load/Store (not gate)

    Write Back
  5. What is a Hazard?
    An instruction that cannot exicute because it is waiting for the previous instruction to complete.
  6. Data hazard:
    The needed data is not available to exicute the instruction.

    Example:

    • add $s0, $t0, $t1
    • sub $t2, $s0, $t3
  7. Structural hazard:
    Instruction exicution failed due to incorrect hardware. Two memories are needed to overcome this hazard.

    Example:

    • lw $1, 100($0)
    • lw $2, 200($0)
    • lw $3, 300($0)
    • lw $4, 400($0)
  8. Control hazard:
    The incorrect data was fetched.

    Example:

    • add $4, $5, $6
    • beq $1, $2, 40
    • nop(bubble)
    • nop
    • or $7, $8, $9
  9. Which kind of hazard deals with forwarding?
    Data Hazard.
  10. Instruction binary Dex Hex Backend Hex

    lw 100011 35 23

    sw 101011 43 2b

    j 000010 2 2

    add 000000 20

    sub 000000 22

    and 000000 24

    or 000000 25

What would you like to do?

Home > Flashcards > Print Preview