Pong on an FPGA with HDMI output
Build the classic Pong game entirely in hardware: video timing, a ball, two paddles and a score, displayed on a monitor through the FPGA board’s HDMI port.
What this proves to recruiters
- You can design several blocks that work together in hardware.
- You understand video timing and pixel clocks.
- You can build something people enjoy using.
Skills you will use
- Verilog
- Video timing
- Clocking (PLL)
- System design
Parts list
You can buy the listed parts online here:
| Part | Qty | Approx. price | Shop |
|---|---|---|---|
| Sipeed Tang Nano 9K FPGA board | 1 | ₹1,800 | Find on Amazon |
| HDMI cable | 1 | ₹150 | Find on Amazon |
| Push buttons, pack of 10 | 1 | ₹40 | Find on Amazon |
| Breadboard, 830 points | 1 | ₹90 | Find on Amazon |
| Jumper wire set (male-male and male-female) | 1 | ₹120 | Find on Amazon |
| Total, about | ₹2,200 | ||
Prices are rough online prices in India and change with the seller. You may already have some parts, or find them in your college lab.
As an Amazon Associate I earn from qualifying purchases. Buying through these links costs you nothing extra and helps keep this site free.
Free software
- Gowin EDA
- Icarus Verilog
- The open-source DVI/HDMI examples for the Tang Nano 9K
Steps
- Start from a working HDMI test pattern for your board at 640 × 480, 60 Hz (25.2 MHz pixel clock).
- Write a pixel counter that gives the x and y of the pixel being drawn.
- Draw paddles and the ball as rectangles: “if x and y are inside the box, colour it white”.
- Move the ball once per frame and bounce it off walls and paddles.
- Read the buttons through synchronisers and use them to move the paddles.
- Add a score using a small 7-segment style font made of rectangles.
Make it stand out
- Add a simple computer player for one paddle.
- Add sound through a PWM pin and a small speaker.
Put it on your resume
Built a hardware Pong game in Verilog with 640×480 HDMI output, game logic and debounced inputs on a Gowin FPGA.
Replace each [x] with a number you measured. Real numbers make a line believable.
Keep going
This project fits stage 4, “Synthesis, FPGA and tapeout”, of the RTL and digital design roadmap. See also how freshers get into FPGA design engineer jobs.
More RTL and digital design projects
- 4-bit ALU in Verilog with a self-checking testbenchBeginner1 weekendFree: software only
- UART transmitter and receiver on an FPGAIntermediate2 weekends~₹1,800
- Single-cycle RISC-V (RV32I) processorAdvanced6–8 weekendsFree: software only
- Asynchronous FIFO for crossing clock domainsAdvanced2–3 weekendsFree: software only