NOTE: This project is currently under construction.

Nexys 4 VGA Test Pattern with Mouse Overlay


Features Used

Not Used Used
16 user switches X
16 user LEDs X
Two tri-color LEDs X
5 User Push Buttons X
Two 4-digit 7-segment displays X
4 Pmod ports X
Pmod for XADC signals X
12-bit VGA output X
USB-UART Bridge X
Serial Flash for Application Data X
USB HID Host With Mouse X
USB HID Host With Keyboard X
Micro SD card connector X
PWM audio output X
PDM microphone X
3-axis accelerometer X
16Mbyte CellularRAM X
Temperature sensor X
10/100 Ethernet PHY X

Description

This simple VGA Test Pattern with Mouse Overlay project demonstrates a simple usage of the Nexys4's VGA output and the mouse HID input. The behavior is as follows:

  • A VGA test pattern is shown on a monitor connected to the VGA port.
  • A mouse on top of the pattern is controlled by a USB mouse.

How to Build and Program

You will need…

1. Vivado installed on your computer
2. Nexys4 board from digilent
3. VGA monitor
4. USB mouse

1. Download the Project

Download the project zip file here. nexys4vgamouseoverlay.zip Once you have downloaded the project, unzip it in the location of your choosing.

2. Load the Vivado Project

In your now unzipped project, open the file Nexys4VGAMouseOverlay.xpr. This should open your project in Vivado.

*The screenshots below are from another project but should look relatively the same and will work for our purposes.

3. Synthesize, Implement and Generate Bitstream

To complete this step all that you need to do is click Generate Bitstream on the left hand menu towards the bottom. Vivado will run through both Run Synthesis and Run Implementation before it generates the bitstream automatically. If you want, you can click each step by itself in the order of Run Synthesis, Run Implementation and then Generate Bitstream.

4. Connect and Program the Nexys4

Once you have generated your bit file, Click on the hardware manager and connect to your board by choosing the local server option.

After your board is connected, just click program to load the VGA Mouse Overlay demo onto your Nexys4.

Running the Nexys4 VGA Test Pattern with Mouse Overlay

This portion will help you run the demo and observe all its features.

1. Plugging in a monitor to the VGA port

To use the VGA output demo, plug in your monitor to the Nexys4 VGA port. The monitor screen will have series of moving patterns as seen below. The user can also control the pointer with a USB mouse.