Ewance
← All challenges Software Engineer

Design a Verified UART Receiver and Loopback for an FPGA Sensor Hub

Duration
2 weeks
Level
Intermediate
Type
Design
Team
1 to 5 people

The situation

Helax Edge Systems is a 28-person industrial Internet-of-Things startup in Munich that builds edge-sensor hubs for factory-automation integrators, and its next hub revision standardizes on a Xilinx 7-series FPGA to ingest serial sensor data at several customer-specified baud rates.

Your task

Design a verified, configurable UART receiver in Verilog for Helax's edge-sensor hub that recovers bytes correctly across three baud rates and proves itself on a real Arty A7 board.

The brief

What you do

  1. Propose and deliver a UART receiver for Helax's sensor hub that meets the functional requirements in the requirements brief (the 'uart-requirements-brief' material): 16-times oversampling of the incoming serial line, a configurable baud divisor, start-bit detection, 8N1 framing (8 data bits, no parity, 1 stop bit), and a framing-error flag raised on a missing stop bit.
  2. As non-functional requirements, the design must run on the Digilent Arty A7-35 (Xilinx XC7A35T) using the public pin and clock constraints in the 'arty-a7-constraints' material, and it must safely cross the asynchronous serial input into the FPGA clock domain.
  3. Pair your receiver with the supplied transmitter in the 'uart-tx-reference-module' material to form a loopback, and write a testbench that replays the byte streams in the 'loopback-test-vectors' material at 9600, 115200, and 1,000,000 bits per second, including the deliberate bit-error rows that should trigger the framing-error flag.

Success looks like

Success means every expected byte and every expected framing flag in the test vectors is reproduced in simulation, and the receiver correctly reads random bytes from a real USB-to-serial adapter on the Arty A7.

What you will practice

  • Design a 16-times-oversampled UART receiver with configurable baud and 8N1 framing in Verilog
  • Safely cross an asynchronous serial input into the FPGA clock domain to avoid metastability
  • Write a self-checking testbench that exercises multiple baud rates and injected framing errors
  • Synthesize for a Xilinx 7-series FPGA and validate a design end-to-end against real hardware
  • Communicate hardware design decisions clearly in a concise written proposal

A suggested way in

  1. Use a two-flip-flop synchronizer on the serial input before any logic samples it
  2. Drive simulation from the provided test vectors with Vivado simulator or an open-source toolchain, and inspect timing in GTKWave
  3. Apply the official Arty A7 constraints file rather than hand-writing pin assignments
  4. Confirm bit timing by counting oversample ticks per bit at each baud rate before testing on hardware

Skills you will practice

Verilog, Uart, Fpga, Testbench design, Metastability, Hardware validation

Where it leads

FPGA Design Engineer, Digital Verification Engineer, Embedded Hardware Engineer

How it is assessed

  • Receiver correctness30%

    The self-checking testbench reproduces every expected byte and every expected framing-error flag in the 'loopback-test-vectors' material at all three baud rates.

  • Metastability handling20%

    The asynchronous serial input is synchronized into the FPGA clock domain exactly as required by the 'uart-requirements-brief', with no logic sampling the raw pin.

  • Hardware validation30%

    The design synthesizes with the 'arty-a7-constraints' pin and clock file and correctly reads random bytes from a real USB-to-serial adapter on the Arty A7.

  • Proposal clarity20%

    The proposal document explains bit timing, the clock-domain-crossing approach, and framing behavior with a clear rationale traceable to the requirements brief.

Resources

  • VivadoTool

    Synthesizes and simulates the Verilog design and generates the Arty A7 bitstream.

  • GTKWaveTool

    Inspects simulation waveforms to confirm bit timing and framing behavior.

  • USB-to-UART adapterTool

    Drives real serial traffic into the board for end-to-end hardware validation.

  • GitTool

    Versions the RTL, testbench, and constraints so the submission is reproducible.

  • NotionTool

    Hosts the written design proposal and hardware-test report.

Sample Ewance certificate of completion, verified by LearnCoin
Sample certificate
Your proof

Finish it. Earn this.

A verified certificate with your name. Anyone can check it.

Time to practice.

Solve this challenge
Related challenges

More like this.