Lab 1
Lab 1
Lab 1
2 Vivado IDE
2.1 Create a new project with Vivado 2021.1
1. Download the require files from Teams. You should have:
7. Choose the Nexys4 in the hardware target (under the "Board" tab)
8. The creation assistant is now done. Check your project summary to the figure 5
WARNING :
the board will flash its LEDs with an intensity proportional to the activated switches (MSB on the
leftmost switch).
Use the row of switches from right to left until you find an acceptable brightness to avoid discom-
fort and short-term glare.
2. Open the "Hardware Manager" and choose "Auto connect". You should see Vivado recognise the
card.
4. Once programming is acheived, you can play with the switches and button.
• The LEDs above the switches are on when the switch is in the "high" position.
• The RGB LEDs should blink with an intensity proportionnal to the binary number encoded by the
switches
• The north and south buttons will change the color as well as the east and west and finally, center
too.
2. Modify the code of 4bitadder.vhd to output the correct values if needed if need be.
The switches should read a binary number with the MSB to the left (eg. SW15 encodes the MSB when
SW12 encodes the LSB). Same for the LEDs.
For this, use the I/O Ports tab in the Implementation step.
Once you are done, ask for a lab assistant to check your I/O setup.