(a) Figure 9-8 presents a model for a subset of MIPS instructions. Enhance the model by adding...

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 and LEDs/ displays on an FPGA prototyping board. Your interface must be able to halt operation of the MIPS processor and to display the lower 8 bits of $1 on eight LEDs. You interface must also divide the prototyping board€™s internal clock to provide the model with a slow clock (e.g., an 8-Hz clock). You may display additional information using other LEDs or display devices, depending on the capabilities of your prototyping board. Synthesize the model and implement it on a prototyping board.
(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, you€™ll 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

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Digital Systems Design Using Verilog

ISBN: 978-1285051079

1st edition

Authors: Charles Roth, Lizy K. John, Byeong Kil Lee

Question Posted: