Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
programmable-logic:nexys-a7:demos:keyboard [2022/09/12 12:41] – changed forum.digilentinc.com to forum.digilent.com Jeffreyprogrammable-logic:nexys-a7:demos:keyboard [2023/08/24 23:33] (current) – Move to direct file links for downloads Arthur Brown
Line 1: Line 1:
 +====== Nexys A7 Keyboard Demo ======
  
 +{{:reference:programmable-logic:nexys-a7:nexys-a7-top-600.png?400|}}
 +----
 +===== Description =====
 +
 +This project is a Vivado demo using the Nexys A7's USB HID Host port and seven-segment display, written in Verilog. When programmed onto the board, whenever the user presses a key on a keyboard connected to the USB HID port (J5, labeled "USB HOST"), a scan code is shifted into a shift register, the contents of which are displayed on the seven-segment display in hexadecimal. When the key is released, a scan code of 0xF0XX is shifted in, indicating that the key with PS/2 code "XX" has been released. Redundant codes indicating that a key is being held down, typically sent about once every 100 ms, are detected and not shifted into the shift register.
 +
 +For example: If the user presses the space bar on a keyboard connected to the Nexys A7, the scan code "29" will be displayed in the final two digits of the display, and when the space bar is released, "F0 29" will be shifted in so that the display reads "XX 29 F0 29".
 +
 +----
 +===== Inventory =====
 +
 +  * Nexys A7 with a MicroUSB Programming Cable
 +  * Vivado installation compatible with the latest release of this demo (2022.1)
 +    * //See [[programmable-logic:guides:installing-vivado-and-vitis|Installing Vivado, Vitis, and Digilent Board Files]] for installation instructions.//
 +  * Serial Terminal application to receive messages printed by the demo
 +    * //See [[programmable-logic:guides:serial-terminals:start]] for more information.//
 +  * USB Keyboard
 +
 +----
 +===== Download and Usage Instructions =====
 +
 +The following releases of this demo can be used with instructions found in the corresponding READMEs in order to run the demo.
 +
 +Releases are only compatible with the version of the Xilinx tools specified in the release version number. In addition, releases are only compatible with the specified variant of the board. For example, a release tagged "20/DMA/2020.1" for the Zybo Z7 is only to be used with the -20 variant of the board and Vivado 2020.1.
 +
 +The latest release version for this demo is highlighted in green.
 +
 +**Note:** //Releases for FPGA demos from before 2020.1 used a different git structure, and used a different release tag naming scheme.//
 +
 +^ Board Variant  ^ Release Tag                       ^ Release Downloads                                                                                    ^ Setup Instructions                                                                   ^
 +| Nexys A7-100T  | @#C0EEBD: 100T/Keyboard/2022.1-1  | {{https://github.com/Digilent/Nexys-A7/releases/download/100T/Keyboard/2022.1-1/Nexys-A7-100T-Keyboard-hw.xpr.zip}}  | See //Using the Latest Release//, below                                              |
 +| Nexys A7-50T   | @#C0EEBD: 50T/Keyboard/2022.1-1   | {{https://github.com/Digilent/Nexys-A7/releases/download/50T/Keyboard/2022.1-1/Nexys-A7-50T-Keyboard-hw.xpr.zip}}    | See //Using the Latest Release//, below                                              |
 +| Nexys A7-100T  | 100T/Keyboard/2021.1-1            | {{https://github.com/Digilent/Nexys-A7/releases/download/100T/Keyboard/2021.1-1/Nexys-A7-100T-Keyboard-hw.xpr.zip}}  | See //Using the Latest Release//, below                                              |
 +| Nexys A7-50T   | 50T/Keyboard/2021.1-1             | {{https://github.com/Digilent/Nexys-A7/releases/download/50T/Keyboard/2021.1-1/Nexys-A7-50T-Keyboard-hw.xpr.zip}}    | See //Using the Latest Release//, below                                              |
 +| Nexys A7-100T  | 100T/Keyboard/2020.1-1            | {{https://github.com/Digilent/Nexys-A7/releases/download/100T/Keyboard/2020.1-1/Nexys-A7-100T-Keyboard-hw.xpr.zip}}  | See //Using the Latest Release//, below                                              |
 +| Nexys A7-50T   | 50T/Keyboard/2020.1-1             | {{https://github.com/Digilent/Nexys-A7/releases/download/50T/Keyboard/2020.1-1/Nexys-A7-50T-Keyboard-hw.xpr.zip}}    | See //Using the Latest Release//, below                                              |
 +| Nexys A7-100T  | v2018.2-1                         | [[https://github.com/Digilent/Nexys-A7-100T-Keyboard/releases/tag/v2018.2-1|Release ZIP downloads]]  | [[https://github.com/Digilent/Nexys-A7-100T-Keyboard/tree/v2018.2-1|Github README]]  |
 +| Nexys A7-50T   | v2018.2-1                         | [[https://github.com/Digilent/Nexys-A7-50T-Keyboard/releases/tag/v2018.2-1|Release ZIP downloads]]   | [[https://github.com/Digilent/Nexys-A7-50T-Keyboard/tree/v2018.2-1|Github README]]   |
 +
 +**Note for Advanced Users:** //GitHub sources for this demo can be found in the [[https://github.com/digilent/nexys-a7/tree/100T/Keyboard/master|100T/Keyboard/master]] and [[https://github.com/digilent/nexys-a7/tree/50T/Keyboard/master|50T/Keyboard/master]] branches of the Nexys-A7 repository. Further documentation on the structure of this repository can be found on this wiki's [[programmable-logic:documents:git]] page.//
 +
 +----
 +Instructions on the use of the latest release can be found in this dropdown:
 +
 +--> Using the Latest Release #^
 +
 +<WRAP group>
 +
 +{{page>programmable-logic:guides:using-github-releases#hardware_only_release_before_programming&noheader}}
 +
 +--> Set up the Nexys A7 #
 +
 +Plug the microUSB programming cable into the Nexys A7's PROG/UART port and the USB Keyboard in the USB HID port (J5, labeled “USB HOST”).
 +
 +----
 +<--
 +
 +{{page>programmable-logic:guides:using-github-releases#hardware_only_release_programming&noheader}}
 +
 +At this point, the demo is now running on your board. Refer to the [[#description|Description]] section of this document for more information on what it does.
 +</WRAP>
 +
 +<--
 +
 +----
 +===== Additional Resources =====
 +
 +All materials related to the use of the Nexys A7 can be found on its [[..:start|Resource Center]].
 +
 +For a walkthrough of the process of creating a simple baremetal software project in Vivado and Vitis, see [[programmable-logic:guides:getting-started-with-ipi]]. Information on important parts of the GUIs, and indirect discussion of the steps required to modify, rebuild, and run this demo in hardware can also be found here.
 +
 +For technical support, please visit the [[https://forum.digilent.com/forum/4-fpga/|FPGA]] section of the Digilent Forum.
 +
 +----