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?

  • 2
    \$\begingroup\$ Pretty much the same, but with no reading from Memory(data)? The value for LUI is encoded as the lower 16-bits of the 32-bit opcode. \$\endgroup\$ – Majenko Oct 15 '14 at 23:28

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 data path


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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.