Lab 2: Hardware/Software Co-Design With The WIMP51
Lab 2: Hardware/Software Co-Design With The WIMP51
Purpose: To get familiar with the hardware/software co-design and coding with assembly language.
Objectives: To create a 7-segment decoder and test it on an FPGA board and use it to test an ASM program that performs the operation 3x5.
Procedure: 1) Use Quartus to create a 7-segment decoder. 2) Write code in ASM to perform the operation 3x5, using the instruction set for the WIMP51. 3) Convert instructions to binary form. 4) Edit imp51_rom.vhd to contain your code. 5) Compile the project. 6) Open files in ModelSim and set the clock period to 100ps. 7) Type into the command line force -freeze /lab2/rst 1 0 followed by force -freeze /lab2/rst 0 50ps and finally run 100ns to see the simulation.
9) Compile the program again with the pin assignments made. 10) Download the project to the FPGA board using the programmer in Quartus. 11) Observe the 7-segment display while pressing the push button to control the clock.
Results and Analysis: Upon observing the 7-segment display on the FPGA board, the program seemed to be mostly working. Pressing the clock button produced the desired changes on the display.
Conclusions: Ultimately the 7-decoder was created in Quartus, simulated in ModelSim, and then tested on the FPGA board using the pin assignments given.