V22.0436 - Prof. Grishman

Assignment 5 - Simulating the MIPS ALU

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

Make your design faithful to the structure of the ALU as shown in 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.42 from the text and incorporate the result into your circuit design.

Due March 29. Late assignments are penalized 5% after noon and 10% for each weekday late.