Difference in the datapath of Load Upper Immediate to Load Word in a 32 bit MIPS processor

mipsvhdl

For the MIPS insturction Load Word I have got the following Datapath:

enter image description here

How does the datapath for the Instruction Load Upper Immediate looks like?

Best Answer

I had these pictures sitting around except for the red lines.

The two instructions differ in semantics:

LUI and LW instructions

$t is the destination register, $i is an immediate value.

LUI:

LUI data path

LW:

LW data path

The images are all links to their full size versions.

In a real implementation the muxes to the ALU could likely produce 0 and 1 constants.

And along the bottom of those pipeline diagrams the $t should actually be t, the pointer to the target or destination register.