Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
In this lab, we will program the FPGA on the Nexys4 board to function as a simple hexadecimal calculator capable of adding and subtracting four-digit hexadecimal numbers. We will use a 16- buttom keypad to input hex numbers and the push-buttons on the Nexys4 board to act as operation buttons (+, –, = and clear). The results will be displayed on the four 7-segment displays on the Nexys4 board. The reason we build a hex calculator (rather than a decimal one) is that it makes the 7-segment display operation much simpler. Converting the output to decimal format would require a large amount of additional VHDL code.
We will be using a 16-button keypad module PmodKYPD (Figure 1) which plugs into one of the PMOD connectors on the Nexys2 board. The module and its connections are shown in Figure 1. The 16- buttons are labeled “0 1 2 3 4 5 6 7 8 9 A B C D E F”, so we can use this keyboard to enter numbers in hexadecimal format.
Plug the PmodKYPD module into PMOD jack JA1 on the Nexys4 board. Note that the PmodKYPD uses all 12 pins of jack JA1 and must be connected with a 12 pin cable. Note the white alignment marks on the connectors. The alignment mark should be on the top-right for the connector attaching to the Nexys4 board and the top-left for the connector attaching to the PmodKYPD module.
BTNL(=)
BTNC(clear)
How to set up the bitstream:
http://users.wpi.edu/~rjduck/Nexys4DDR%20Vivado%20VHDL%20Decoder%20Tutorial.pdf
How to Connect The Nexys A7 to your computer:
https://github.com/Digilent/Nexys-A7-100T-GPIO
Dr. Ackland's Lab Manual:
http://personal.stevens.edu/~backland/Courses/Course487_Spring_18_files/Labs/Lab4.pdf
GitHub: