How yukesh116/uart works
Purpose and entry points
This is a compact Verilog UART design with separate transmit, receive, and baud-rate generation logic. The integration entry point is uart_top.v; simulation is driven by uart_tb.v and generated artifacts are placed under sim/.
Top-level integration
uart_top.v composes the UART subsystems and exposes the design-level interface: system clock/reset, serial RX/TX signals, and parallel transmit/receive-facing controls or data. It is the primary synthesis/integration boundary.
Paths:
• uart_top.v
• uart_tx.v
• uart_rx.v
Baud timing domain
uart_baud.v derives timing enables from the system clock for UART bit timing. TX and RX should consume this shared timing source rather than creating independent clock domains, keeping serial timing coordinated under the top-level clock.
Path:
• uart_baud.v
Transmit pipeline
uart_tx.v converts parallel transmit data into a serial UART frame. Its control flow is typically request/load → start bit → data-bit shifts → stop bit → completion/idle. It owns the serial TX output timing and must synchronize frame progression to the baud enable supplied through integration.
Paths:
• uart_tx.v
• uart_baud.v
• uart_top.v
Receive pipeline
uart_rx.v samples the asynchronous serial RX input, detects a start condition, captures serial data at baud-timed intervals, validates/completes the frame, and presents received parallel data/status to the top level. RX is the key asynchronous input boundary and requires sampling/synchronization behavior appropriate to the system clock.
Paths:
• uart_rx.v
• uart_baud.v
• uart_top.v
Primary data and control flow
Outbound flow: parallel data/control enters uart_top.v, is accepted by uart_tx.v, then emitted as serial TX bits according to uart_baud.v timing.
Inbound flow: serial RX enters uart_top.v, is processed by uart_rx.v using baud timing, and exits as parallel received data/status.
Shared control dependencies are reset, the system clock, and baud-rate timing. The architectural boundary is between synchronous internal logic and the external asynchronous serial wire interface.
Runtime and validation
The design runs as synthesizable Verilog hardware; no software runtime or external service is present. uart_tb.v is the simulation entry point for exercising top-level UART behavior, with simulation output or build artifacts expected in sim/.
Paths:
• uart_tb.v
• sim/
Main entry points: uart_top.v UART Top · uart_tx.v Transmitter · uart_rx.v Receiver · uart_baud.v Baud Generator
Components 11
Synthesizable UART
Clocked UART hardware and external serial boundary.
- UART Top · Primary synthesis boundary and external interface.
uart_top.v - Baud Generator · Derives shared UART bit-timing enables from the system clock.
uart_baud.v - Transmitter · Frames parallel data as start, data, and stop serial bits.
uart_tx.v - Receiver · Samples asynchronous RX and produces received data/status.
uart_rx.v - Parallel TX Data & Control
- Serial TX Wire
- Serial RX Wire · External asynchronous input boundary.
- Parallel RX Data & Status
- System Clock & Reset
Simulation
Top-level verification and generated outputs.
- UART Testbench · Exercises top-level UART behavior.
uart_tb.v - Simulation Artifacts
Connections 16
- Parallel TX Data & Control → UART Top: TX data / request
- UART Top → Transmitter: parallel TX interface
- Transmitter → UART Top: serial frame
- UART Top → Serial TX Wire: TX
- Serial RX Wire → UART Top: RX
- UART Top → Receiver: serial RX
- Receiver → UART Top: received data / status
- UART Top → Parallel RX Data & Status: RX data / status
- System Clock & Reset → UART Top: clock / reset
- UART Top → Baud Generator: system clock
- Baud Generator → Transmitter: baud enable
- Baud Generator → Receiver: baud enable
- System Clock & Reset → Transmitter: reset
- System Clock & Reset → Receiver: reset
- UART Testbench → UART Top: simulates
- UART Testbench → Simulation Artifacts: generates