2023-11-08 15:14:43 +08:00
2024-08-02 16:18:17 +08:00
2024-08-02 16:18:17 +08:00
2023-11-08 15:14:43 +08:00
2023-11-08 15:14:43 +08:00
2023-11-08 15:14:43 +08:00
2023-11-08 15:14:43 +08:00
2025-04-20 17:05:43 +08:00
2024-04-29 20:54:22 +08:00
2023-11-08 15:14:43 +08:00

UART

Features

  • Single wire half duplex mode
  • Compatibility with NS16550
  • Programmable prescaler
    • max division factor is up to 2^16
    • can be changed ongoing
  • Programmable baud-rate generator
    • max transition rate is 2Mbps
  • Fully programmable serial configuration
    • 5, 6, 7 or 8 bits data word length
    • 0 or 1 stop bits
    • odd, even, one or zero parity
  • Independent transmit and receive fifo
    • 16~64 data depth
    • empty or no-emtpy status flag
  • Three maskable interrupt
    • receive interrupt with programmable threshold
    • transmit empty interrupt
    • receive data parity err interrupt
  • Static synchronous design
  • Full synthesizable

FULL vision of datatsheet can be found in datasheet.md.

Build and Test

make comp    # compile code with vcs
make run     # compile and run test with vcs
make wave    # open fsdb format waveform with verdi
S
Description
An APB4-based UART Controller
Readme MulanPSL-2.0
132 KiB
0 Stars 1 Watchers 0 Forks
Languages
SystemVerilog 89.8%
Makefile 6.7%
C 3.5%