In this assignment, you will be adding MIPS conditional/unconditional branch instructions and procedure call instructions to the processor designed in Assignment 4. Make appropriate modifications to your code:
- Implement the following branch instructions using J-type instruction format: bne, beq, blez, bgtz, j.
- Implement the instructions used for procedure calls: jal, jr.
- Implement non-leaf procedures (procedures that can call other procedures) using stack.
- The stack should be implemented in memory and should grow downwards.
- You can assume that a maximum of four arguments can be passed to a procedure.
- You can use https://courses.cs.washington.edu/courses/cse410/09sp/examples/MIPSCallingCo pdf, as a reference document to understand MIPS procedure calls and stack layout.
Once the desired modifications are done, you need to simulate and synthesize the modified VHDL processor model. The output instructions remain the same as for Assignment 4.
Reviews
There are no reviews yet.