report
report
report
Computer Science
Group Members
Muhammad
345834
Umer
The purpose of this exercise is to learn how to connect simple input and output devices to an FPGA
chip and implement a circuit that uses these devices. We will use the switches on the DE-series
boards as inputs to the circuit. We will use light emitting diodes (LEDs) and 7-segment displays as
output devices.
2.2 Introduction
The field of digital design has been revolutionized by the advent of Field-Programmable Gate
Arrays (FPGAs), which allow designers to create complex digital circuits using programmable
logic. In this lab exercise, we will be using Intel's Quartus Prime software to design and implement
a circuit that utilizes switches, lights, and multiplexers. The objective of this exercise is to gain
hands-on experience in designing and implementing digital circuits using FPGAs, and to understand
how switches, lights, and multiplexers can be used in a digital circuit. By the end of this lab, we will
have a deeper understanding of the basic components of digital circuits and how they can be used to
create complex systems. Additionally, we will have gained valuable experience in using Intel's
Quartus Prime software, which is a leading platform for digital design.
2.3 Software
Quartus Prime is a comprehensive design software developed by Intel Corporation for designing
digital circuits using Field-Programmable Gate Arrays (FPGAs). It is a leading software platform in
the field of digital design, offering a range of advanced tools and features that enable users to easily
create, debug, and verify complex digital circuits. With Quartus Prime, users can benefit from a
streamlined design flow that facilitates the creation of digital circuits from concept to
implementation. It provides an intuitive graphical user interface that allows users to easily design,
test, and debug their circuits. Additionally, Quartus Prime supports a variety of popular
programming languages, making it a versatile platform for digital designers of all levels.
The DE-series boards have hardwired connections between its FPGA chip and the switches and
lights. Perform the following steps to implement a circuit corresponding to the code in Figure 1 on
the DE-series boards.
1. Create a new Quartus project for your circuit. Select the target chip that corresponds to your
DE-series board.
2. Create a Verilog module for the code in Figure 1 and include it in your project.
3. Include in your project the required pin assignments for your DE-series board, as discussed
above. Compile the project.
4. Download the compiled circuit into the FPGA chip by using the Quartus Programmer tool (the
procedure for using the Programmer tool is described in the tutorial Quartus Introduction). Test
the functionality of the circuit by toggling the switches and observing the LEDs.
module standard (
input [9:0] SW, // 10 switches
output [9:0] LEDR // 10 LEDs
);
endmodule
endmodule
You are to write a Verilog module that includes four assignment statements to describe the circuit
given in Figure 2a. This circuit has two four-bit inputs, X and Y, and produces the four-bit output
M. If s = 0 then M = X, while if s = 1 then M = Y. We refer to this circuit as a four-bit wide 2-to-1
multiplexer. It has the circuit symbol shown in Figure 2b, in which X, Y, and M are depicted as
four-bit wires.
);
endmodule
endmodule
standard dut (
.SW (SW),
.LEDR(LEDR)
);
integer i;
initial begin
for (i = 0; i < 2 ** 10; i = i + 1) begin
{SW} = i;
#10;
end
end
endmodule
3.3 Part 3
Perform the following steps to implement the two-bit wide 4-to-1 multiplexer, as shown in Figure 3.
);
endmodule
endmodule
standard dut (
.SW (SW),
.LEDR(LEDR)
);
integer i;
initial begin
for (i = 0; i < 2 ** 10; i = i + 1) begin
{SW} = i;
#10;
end
end
endmodule
4 Conclusion
In conclusion, this lab exercise provided an opportunity to gain hands-on experience in designing
and implementing digital circuits using Field-Programmable Gate Arrays (FPGAs) and Intel's
Quartus Prime software. Through the integration of switches, lights, and multiplexers, we were able
to understand how these basic components can be used to create complex digital circuits. The
exercise also allowed us to explore the design flow of Quartus Prime, from creating the circuit
design to programming the FPGA.