In this lab the FPGA code developed in Labs 3 and 4 will be extended to build a simple version of the 1970's arcade game known as "PONG". The game is designed for a single player and will generate an on-screen bat which will be controlled by a potentiometer. The potentiometer generates a DC voltage which is sampled into the FPGA using an outboard analog to digital converter. The A/D converter generates a serial data stream that we will convert into the on-screen bat position
The design will be using a 2 channel, 12-bit Analog to Digital Converter module PmodAD1 which plugs into one of the PMOD connectors on the NexysA7 board. The module and its connections are shown below.
The timing relationships for the ADC's are shown below.
The VGA monitor will be plugged into the VGA port on the Nexys A7 board. A five kilo ohm potentiometer can be used to control the bat position by delivering a varying voltage to the ADC shown below.