Maker.io main logo

Decoding VGA on the Digital Discovery

2017-06-12 | By Kaitlyn Franz

Courtesy of Digilent

Image of Decoding VGA Close-Up

Recently we launched the Digital Discovery, a high speed debugging tool for embedded projects. On the resource center you’ll find tutorials telling you how to use the Logic Analyzer, but those don’t really tell you why you would use it. One such example is to decode a VGA signal. In this example, I run a script in the Script Editor, that takes the VGA data from the Logic Analyzer, and converts it into an image.

Image of a close up of the set up

A close up of the set up.

This is just one example of the high speed applications that can be debugged with the logic analyzer and script editor working together on the Digital Discovery.
For this example, I have a simple game of Tic Tac toe (written by GitHub user Verdoss) on the Nexys 4. The user plays using the buttons and the game is displayed via VGA. Along with sending the VGA signals to the VGA port, I sent the horizontal sync, vertical sync, and all four bits of the red, green, and blue signals to two Pmod ports on the Nexys 4. Then I hooked up 14 of the Digital Discovery‘s High Speed inputs to the Pmod connectors. Since this application requires selecting 400MS/s as the sample rate, I use the High Speed Adapter and High Speed Logic probes to connect to the Pmod connectors. You can see the whole set up here:

Image of The Digital Discovery attached to the Nexys 4 in order to read and decode the VGA signals

The Digital Discovery, attached to the Nexys 4 in order to read and decode the VGA signals.

In WaveForms 2015 the Script Editor is used to run a script to control the Logic Analyzer and voltage levels through the power supplies. The script uses the Logic Analyzer to read the VGA lines from the Pmod ports, decodes them and creates an image.

Image of You can view one window of data on the Logic Analyzer

You can view one window of data on the Logic Analyzer.

Image of The Script that controls the acquisition

The Script that controls the acquisition.

This takes a few minutes. Once it’s done, you can open the image and see what was displayed on the monitor.

Image of Tic-Tac-Toe Project

Tic-Tac-Toe Project

This is just one example of the embedded projects that can be aided by the Digital Discovery. To learn more about the Digital Discovery, check out the tutorials and getting started guide on the resource center. For more detailed instructions on this example check out the tutorial on instructables.

制造商零件编号 410-338
DIGITAL ANALYZER PC BRD APPL
Digilent, Inc.
¥1,929.50
Details
制造商零件编号 410-292
NEXYS A7 ECE FPGA TRAINER BOARD
Digilent, Inc.
¥2,840.89
Details
制造商零件编号 410-349
HIGH SPEED ADAPTER LOGIC PROBES
Digilent, Inc.
¥406.92
Details
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum