UART IP VERIFICATION
By
Naveen C
Batch-43
Contents
What is UART?
Introduction
Key Feature of UART
UVM TB Architecture
Test Cases verified
Waveforms
2
Introduction
The Universal Asynchronous Receiver Transmitter
or simple UART is one of the common peripheral
found on microcontrollers (MCU) widely used for
communication with the external devices and
systems.
Modules, ASIC's , and PC's are among the devices
that the microcontroller can communicate to
through the UART.
UART
Features
•WISHBONE interface in 8-bit data bus mode or 32-bit
data bus mode.
•FIFO mode is supported.
•An on-chip bit rate (baud rate) generator to control
transmit and receive data rate.
Divisor Latch Byte
Calculating Divisor Latch Byte:
Divisor latch Byte= (input clock speed) / (16 x baud rate)
Two different input clock frequency taken are 50MHz and
25MHz
Baud rate = 1,00,000
Operation
o Upon a write to the data input bus WB_DAT_I, the
core will automatically serialize and emit the byte
on the Trx_PAD_O.
o According to the interrupt we have enabled the
int_o goes high whenever an interrupt is available.
o Upon reception of a bit stream on Srx_PAD_O, the
core will unserialise the information and check for
error and it will send the received data to receiver
FIFO.
o This announce that the received byte can be read
on the data output bus WB_DAT_O. As soon as
the fifo trigger level reached and its get enabled the
Int_o will get high and can be read at the output
port.
Data framing…
UVM Architecture
Modes of Operation
Three main modes of operation
 Half Duplex mode
 Full Duplex Mode
 Loop Back Mode
Half Duplex Mode
Full Duplex Mode
Transmission is bidirectional.
UART 1 Transmits and UART 2 Receives.
meanwhile UART 2 Transmits and UART 1
receives.
Loop Back Mode
TEST CASES
Half Duplex Mode
Full Duplex Mode
Dual Loop Back Mode
Parity Error
Break interrupt
Overrun condition
Framing Error
Timeout Indication
Transmitter holding register empty
Setting LCR to Transmitting 5 bits data
Setting LCR to Transmitting 6 bits data
Setting LCR to Transmitting 7 bits data
Half Duplex Mode INPUT
Half Duplex Mode
OUTPUT
Full Duplex Mode INPUT
Full Duplex Mode
OUTPUT
Loop Back Mode INPUT
Loop Back Mode
OUTPUT
Parity Error INPUT
Parity Error OUTPUT
Break interrupt INPUT
Break Interrupt OUTPUT
Overrun Error INPUT
Overrun Error OUTPUT
Framing Error INPUT
Framing Error OUTPUT
Timeout Indication
INPUT
Timeout Indication
OUTPUT
Transmitter Holding Register Empty
INPUT
Transmitter Holding Register Empty
OUTPUT
THANK YOU

Naveen UART BATCH 43