Pre-Lab1 Digital Design
Pre-Lab1 Digital Design
OBJECTIVES
➢ The purpose of this lab is to learn how to connect simple input (switches) and output devices
(LEDs and 7-segment) to an FPGA chip and implement a circuit that uses these devices.
➢ Examine arithmetic circuits that add, subtract, and multiply numbers.
REFERENCE
1. Intel FPGA training
This circuit can be implemented using a ’+’ sign in System Verilog. For example, the following
code fragment adds n-bit numbers A and B to produce outputs sum and carry:
...
wire [n-1:0] sum
...
assign sum = A + B;
Modify the code above to implement an 8-bit carry adder.
Using waveform tool, test the functionality of your design by inputting various data values and
observing the generated outputs.
Instruction:
➢ Generate a System Verilog file with the code above and include it in the project.
➢ Compile the code. Use the Quartus RTL Viewer tool to examine the gate-level circuit
produced from the code, then verify that the latch is implemented as shown in Figure 3 and
4.