Lab 4 MIPS Singlecycle architecture

Assignment 1

Open the Singlecycle MIPS architecture. Use small code assembly code examples. Look careful how a R instruction (for example ADD), an Immediate instruction (for example LW), a branch instruction (for example BEQ) and a jump instruction are executed. Describe for each instruction which block in the architecture are active during the execution and describe the function of the ALU.

Assignment 2

Open the singlecycle MIPS architecture. If you compare the drawing with the book, you will notice that they look alike. There are however a few small changes. Look in the right upper corner and bottom and you will notice the JAL instruction. Explain how this works in this architecture, i.e. explain the different functions of this added hardware. What is the function of register 31 (what does it contain)? Write a short program which shows the working.