Question: (a) Figure 9-8 presents a model for a subset of MIPS instructions. Enhance the model by adding modules to interface the model to input switches
(b) For this question, use the model in part (a). Write a MIPS assembly language program to create a rotating light (implemented using eight LEDs on the prototyping board). The light rotates from one LED to the next at a one-second interval. Note that with an 8-Hz clock, the ALU instructions (add, and, etc.) take one-half of a second to complete and the J instruction takes one-quarter of a second to complete.
(c) For this question, youll use the model in part (a). Write a MIPS assembly language program to create a traffic light controller. Implement your traffic light with the following pattern:

Street A Green Street B Red Yellow Green Red Yellow (5 seconds) (2 seconds) (1 second) (5 seconds) (2 seconds) (1 second), then 1 1 repeats
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
a This solution is for a prototyping board based on th... View full answer
Get step-by-step solutions from verified subject matter experts
