V22.0436 - Prof. Grishman

Assignment 5 - Simulating the MIPS ALU

Write a procedure to simulate the 32-bit MIPS ALU shown in Figure 4.17 of the text (page 194). Include some comments on each procedure to explain their relationship to the figure.

Implement a main program and set of test data which systematically tests the ALU. Document the testing procedure, showing how all significant paths and cases have been tested.

Submit a program listing and test output.

For extra credit: do exercise 4.25 from the text and incorporate the result into your circuit design.

Due October 29. Late assignments are penalized 10% for each weekday late.