UART transmitter and receiver on an FPGA
Write a UART in Verilog, put it on a low-cost FPGA board and make it echo every character you type on your laptop.
What this proves to recruiters
- You can take a design from simulation to real hardware.
- You understand serial protocols and baud-rate timing.
- You can handle asynchronous inputs safely.
Skills you will use
- Verilog
- FSMs
- FPGA flow
- Serial protocols
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 |
| Total, about | ₹1,800 | ||
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 (free education edition)
- Icarus Verilog
- A serial terminal such as PuTTY
Steps
- Work out the clock count per bit: 27 MHz ÷ 115,200 baud ≈ 234 clocks.
- Write the transmitter as an FSM: idle, start bit, 8 data bits (least significant first), stop bit.
- Write the receiver. Pass the RX pin through two flip-flops first, then sample each bit in its middle.
- Simulate a loop-back test: send bytes from TX to RX and check they match.
- Add pin constraints for the board’s USB-serial pins, then build and program the FPGA.
- Open a terminal at 115200 8N1 and check every character you type comes back.
Make it stand out
- Add a FIFO so fast typing is never lost.
- Control the on-board LEDs with typed commands.
Put it on your resume
Implemented a UART (TX/RX FSMs with a two-flop synchroniser) in Verilog and ran it on a Gowin FPGA at 115,200 baud.
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
- Pong on an FPGA with HDMI outputIntermediate3–4 weekends~₹2,200
- Single-cycle RISC-V (RV32I) processorAdvanced6–8 weekendsFree: software only
- Asynchronous FIFO for crossing clock domainsAdvanced2–3 weekendsFree: software only