Professional Documents
Culture Documents
Matric: 197708
Matric: 195824
Aim:
1. To create, program and compile Verilog HDL design using Quartus II simulation
software.
2. To familiarize with the functionality of the Altera DE2 board.
3. To configure, interface and program the Altera DE2 board.
Introduction:
The DE2 series has consistently been at the forefront of educational development boards by
distinguishing itself with an abundance of interfaces to accommodate various application
needs.
4. A new Verilog HDL file was created and the following code was used:
endmodule
5. The host PC and the DE2 board was connected using the USB provided
6. The code was compiled and the DE2 board was programmed
Results:
2. For Exercise 2, all the switches (SW1-SW17) was assigned to all the LEDs (LEDR0-
LEDR17). All the LEDs light up in sequence to the number of switches. All 4 push
buttons (KEY0-KEY3) controls all the LEDG (LEDG0-LEDG3) but the LEDGs
function differently compared to the LEDRs. For example, when KEY0 is pushed,
LEDG0 turns off.
3. Th switches (SW0-SW13) were assigned to HEX0 and HEX1. The switches control
each segment in the two 7-segment display individually. Several numeric characters
were displayed such as ‘1’ and ‘0’.
4. On Example 4, we only used SW0, SW1, SW2, SW3 and SW4 to control four 7
segment display to display ‘HELO’. Each switch turned on a few segments in the four
7-segment display.
5. Based on Exercise 5, SW0 and SW1 were controlling LEDR0 based on the XOR truth
table. For example, A is SW0 while B is SW1 also addressed as inputs. The output, X
is LEDR0. When A and B is 0, X is 0. When SW0 and SW1 is not toggled, LEDR0
does not light up. Means that ‘0’ is off and ‘1’ is on.
Discussion:
All the inputs and outputs were assigned accordingly thus getting the expected result on the
board. All the LEDs, switches and 7-segment displays were working efficiently. No error was
found while doing this lab.
Conclusion:
In this lab, we have learned how to create, program and compile Verilog HDL design using
Quartus II simulation software. Other that that, we also familiarize with the functionality of
the Altera DE2 board. The important is we have configure, interface and program the Altera
DE2 board in this lab.
The aims of the experiment were achieved. We have learn a great deal about the features of
the Altera DE2 Board and also the Quartus II software and how both the hardware and
software can correlate and create various outputs.
References:
1. https://web.eecs.umich.edu/~pmchen/engr100/lab1/
2. https://verilogguide.readthedocs.io/en/latest/verilog/firstproject.html