Now that you have gained some familiarity with Quartus, ModelSim, and the DE1-SoC board, let's develop a SystemVerilog design! This lab will walk you through the design and implementation process.
Electronics can be cold and impersonal so let's change that by having your DE1 recognize you! We want to design a circuit that will light up an LED only when you input the last digit of your student ID number. Your goal is to design the circuit out of NOT, NAND, and NOR gates using the fewest number of gates possible. Gates can have at most two inputs.
| SW3 | SW2 | SW1 | SW0 | Digit | |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | |
| 0 | 0 | 0 | 1 | 1 | |
| 0 | 0 | 1 | 0 | 2 | |
| 0 | 0 | 1 | 1 | 3 | |
| 0 | 1 | 0 | 0 | 4 | |
| 0 | 1 | 0 | 1 | 5 | |
| 0 | 1 | 1 | 0 | 6 | |
| 0 | 1 | 1 | 1 | 7 | |
| 1 | 0 | 0 | 0 | 8 | |
| 1 | 0 | 0 | 1 | 9 |
Recognizing only one digit is a bit simplistic, so we’d like to scale it up to handle more digits.
/ through them and writing their bit width. You're free to choose whether to represent an N-bit input with a single slashed line, or N separate lines.+ or ==, represent them as a block in the diagram with their inputs and outputs clearly labelled:Submit a zip file containing your lab report and finished/modified source files on due on Wednesday April 16 at 2:30 pm.
Your zip file should contain:
44 points for correctness, style, and testing.
Up to 10 points for using as few logic gates as possible in Task 1.
Each gate (NOT, NAND, NOR) counts the same, though any NOT gates connected directly to a switch input are not counted. Gates can have at most two inputs. The fewer gates, regardless of the number of chips, the better the grade.