Single Cycle MIPS - addi & jal instruction

Discussion in 'Homework Help' started by tquiva, Oct 24, 2012.

  1. tquiva

    Thread Starter Member

    Oct 19, 2010
    176
    1
    Will someone please assist me with the following problem? I am extremely confused and frustrated at this point, and appreciate any help available.

    I am given the following figure (attached) for a single-cycle MIPS. This figure is shown implementing the jump instruction.

    The truth table for the above figure is also attached.

    The problem asks me to add the instruction, addi (add immediate) & jal (jump and link), to the figure.

    I know that to add the addi instruction, there will be no change in the datapath. However, I am having a difficult time trying to understand how the truth table works based on the addi instruction. The only truth table I understand for the control unit is the one below:
    [​IMG]

    How does R-Format, lw, sw, and beq apply to an instruction such as addi and jal? And how would I go about finding the values for these in the truth table?

    My many thanks in advance!
     
Loading...