Plug the the keypad into the Nexys2 boards via PMOD jack JA1. Note: 1: the keypad uses all 12 pins of jack JA1 and they must be connected with a 12 pin cable. 2: The white alignment marks on the connectors. 3: The alignment mark should be on the top-right for the connector attaching to the Nexys2 board and the top-left for the connector attaching to the keypad.
Create a new VHDL source module called keypad and load the following source code into the edit window. Expand the Synthesize command in the Process window and run Check Syntax to verify that you have entered the code correctly.
Create a new VHDL source module called leddec16 and load the following source code into the edit window. Expand the Synthesize command in the Process window and run Check Syntax to verify that you have entered the code correctly.
Create a new VHDL source module called hexcalc and load the following source code into the edit window. Expand the Synthesize command in the Process window and run Check Syntax to verify that you have entered the code correctly.
To enable leading zeros suppression, you will want to modify the anode "display" parameter in leddec.vhd as follows