ECE 449 Assignment 7

  1. Write an assembly language program to test the various comparison instructions.

    1. Set r4 = 400 and r5 = -400. Use R-Format compare instructions for both signed and unsigned comparisons.

      Note: r5 < r4 (signed) but r5 > r4 (unsigned).

    2. Test the various I-Format compare instructions.

    Run your program within the Nios II Command shell, producing the usual text files and generate a MIF of your program.

  2. Modify the risc processor started in the last assignment by adding the compare instructions. As usual, setup your DE2 project so that it displays the results of each instruction on the DE-2 board. Download srisc4 for a version based on the last assignment. Demonstrate that your project runs the assembly language program from the previous problem.

  3. Modify audio3 so that it plays a sinuosoid of specified frequency while KEY[3] is pressed.

  4. Modify audio3 so that it plays a different wavefrom, of specified frequency, for KEY[3:1].

  5. Modify audio3 so that each keypress of KEY[3] plays a different DTMF tone (see touch tones).


Maintained by John Loomis, last updated 27 March 2008