Upload
naveen-chinnasamy
View
39
Download
5
Embed Size (px)
Citation preview
UART IP VERIFICATION
ByNaveen CBatch-43
ContentsWhat is UART? IntroductionKey Feature of UARTUVM TB Architecture Test Cases verifiedWaveforms
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.
3
UART
4
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.
5
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
7
Operationo 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.
8
Data framing…
9
UVM Architecture
10
Modes of OperationThree main modes of operation Half Duplex mode Full Duplex Mode Loop Back Mode
11
Half Duplex Mode
12
Full Duplex Mode
Transmission is bidirectional.
UART 1 Transmits and UART 2 Receives.meanwhile UART 2 Transmits and UART 1receives.
13
Loop Back Mode
14
TEST CASESHalf Duplex ModeFull Duplex ModeDual Loop Back ModeParity Error Break interruptOverrun conditionFraming ErrorTimeout IndicationTransmitter holding register emptySetting LCR to Transmitting 5 bits dataSetting LCR to Transmitting 6 bits dataSetting LCR to Transmitting 7 bits data
15
Half Duplex Mode INPUT
16
Half Duplex Mode OUTPUT
17
Full Duplex Mode INPUT
18
Full Duplex Mode OUTPUT
19
Loop Back Mode INPUT
20
Loop Back Mode OUTPUT
21
Parity Error INPUT
22
Parity Error OUTPUT
23
Break interrupt INPUT
24
Break Interrupt OUTPUT
25
Overrun Error INPUT
26
Overrun Error OUTPUT
27
Framing Error INPUT
28
Framing Error OUTPUT
29
Timeout Indication INPUT
30
Timeout Indication OUTPUT
31
Transmitter Holding Register Empty INPUT
32
Transmitter Holding Register Empty OUTPUT
33
THANK YOU
34