EE203 Wk6 LabReport
EE203 Wk6 LabReport
Laboratory Exercise 6
Tanner Looney
February 17, 2025
1. Introduction
The goal of this exercise is to apply the knowledge gained in previous weeks to control the
DE-10 board’s LED’s. using the switches, by programming with Verilog. In the previous weeks,
the exercises have developed the engineering skillset required to perform basic functions with
the Quartus software and DE-10 board. This three-part exercise will be a culmination of those
skills to create multiplexors and implement them on the DE-10. The first part will be a program
to control the LEDs on the DE-10 with the switches on the board. The second part will
implement a 2 to 1 multiplexer, and the third part will implement a 4 to 1 multiplexer. As
mentioned, the student uses the Quartus software, DE-10 Lite board, and the Verilog
programming language to implement these circuits.
2.2. Analysis
2.2.1. Part I
The program below assigns switches 0-9 as inputs and LEDs 0-9 as outputs. The
assignment statement on line 5 activates the LED to it’s corresponding switch. This means that if
the user were to set switch 1 to the on position, LED 1 would illuminate.
2.1.2. Part II
The program for Part 2 is the 2-to-1 multiplexer. As stated earlier this circuit is composed of a
NOT gate, 2 AND gates, and an OR gate. Switch 9 is the select bit. The select bit and an input bit
are taken as a pair to determine which output LED is illuminated. This program uses Verilog to
render the circuit. In lines 8-11 the assignment statements are actual logic statements rendering
the circuit from Figure 1. The (~) is the NOT gate, (&) is the AND gate, and (|) is the OR gate.
For example, if the user were to set switch 9(select bit) and switch 4 to on, LED 0 would
illuminate.
4. Results
4.1.1. Part I
Figure 7:This image shows the output of Part I of the exercise. The LEDs whose corresponding switch is
set to on, are activated.
4.1.2. Part II
The images below show some examples of the outputs of the circuit in Part II after being
flashed to the DE-10 board.
Figure 13: LED[0] is activated because SW[9], SW[8], and SW[5] is set to on
Figure 14: LED[1] is activated because SW[9], SW[8], and SW[7] are set to on
5.2. Conclusion
This experiment implemented three programs to control the board in various ways. The first was
a simple example of how to assign inputs and outputs using Verilog. The other two programs
implemented multiplexers using logic statements. There were no deviations from the prescribed
procedure and the desired outcome was achieved.
Appendices
DE10_LITE_Default.qsf
Wk 6 Exercise.pdf