Configurable UART
The D16450 is a soft Core of a Universal Asynchronous Receiver/Transmitter (UART) functionally identical to the TL16C450. The D16450 performs serial-to-parallel conversion on data characters received from a peripheral device or a MODEM, and parallel-to-serial conversion on data characters received from the CPU. The CPU can read the complete status of the UART at any time during the functional operation. Status information reported includes the type and condition of the transfer operations being performed by the UART, as well as any error conditions (parity, overrun, framing, or break interrupt). The D16450 includes a programmable baud rate generator that is capable of dividing the timing reference clock input by divisors of 1 to (2 16-1), and producing a 16 × clock for driving the internal transmitter logic. Provisions are also included to use this 16 × clock to drive the receiver logic. The D16450 has complete MODEM control capability, and a processor-interrupt system. Interrupts can be programmed to the user's requirements, minimizing the computing required to handle the communications link.
The D16450 includes fully automated testbench with complete set of tests allowing easy package validation at each stage of SoC design flow.
The D16450 is a technology independent design that can be implemented in a variety of process technologies.
The separate BAUD CLK line allows to set an exact transmission speed, while the UART internal logic is clocked with the CPU frequency.
The core is perfect for applications, where the UART Core and microcontroller are clocked by the same clock signal and are implemented inside the same ASIC or FPGA chip, as well as for standalone implementation, where several UARTs are required to be implemented inside a single chip, and driven by some off-chip devices. Thanks to universal interface D16450 core implementation and verification are very simply, by eliminating a number of clock trees in complete system.

|
|

|
- Software compatible with 16450 UART
- Configuration capability
- Separate configurable BAUD clock linee
- Majority Voting Logic
- Adds or deletes standard asynchronous communication bits (start, stop, and parity) to or from the serial data
- Independently controlled transmit, receive, line status, and data set interrupts
- False start bit detection
- 16 bit programmable baud generator
- Independent receiver clock input
- MODEM control functions (CTS, RTS, DSR, DTR, RI, and DCD)
- Fully programmable serial-interface characteristics:
- 5-, 6-, 7-, or 8-bit characters
- Even, odd, or no-parity bit generation and detection
- 1-, 1½-, or 2-stop bit generation
- Internal baud generator
- Complete status reporting capabilities
- Line break generation and detection. Internal diagnostic capabilities:
- Loop-back controls for communications link fault isolation
- Break, parity, overrun, framing error simulation
- Full prioritized interrupt system controls
- Available system interface wrappers:
- Fully synthesizable
- Static synchronous design and no internal tri-states
|
|
- Serial Data communications applications
- Modem interface
- Embedded microprocessor boards

The following parameters of the D16450 core can be easy adjusted to requirements of dedicated application and technology. Configuration of the core can be prepared by effortless changing appropriate constants in package file. There is no need to change any parts of the code.
| Baud generator | |
| External RCLK source | |
| External BAUDCLK source | |
| Asynchronous input buffer | |
| Modem Control | |
| SCR register | |
|

 clk
 rst
so 
temt 
 rclk
 si
intr 
 baudclken
 baudclk
baudout 
so 
 datai (7:0)
 rd
 wr
 cs
 addr (2:0)
datao (7:0) 
ddis 

| Pin | Type | Description |
| clk | input | Global clock |
| rst | input | Global reset |
| rclk | input | Receiver clock |
| si | input | Serial data input |
| baudclken | input | Baud generator clock enable |
| baudclk | input | Baud generator clock |
| datai (7:0) | input | Parallel data input |
| rd | input | Read input |
| wr | input | Write signal input |
| cs | input | Chip select input |
| addr (2:0) | input | Address bus input |
| so | output | Serial data output |
| temt | output | Transmitter Empty - used to control RS485 buffer |
| intr | output | Interrupt request output |
| baudout | output | Baud generator output |
| so | output | Serial data output |
| datao (7:0) | output | Parallel data bus output |
| ddis | output | Driver disable output |

so 
temt 
 rclk
 si
intr 
 baudout
 baudclken
 baudclk
so 
 datai (7:0)
 rd
 wr
 cs
 addr (2:0)
 datao (7:0)
 ddis
clk 
rst 

Transmitter ControlTransmitter Control module controls transmission of written to THR (Transmitter Holding register) character via serial output SO. The new transmission starts on the next overflow signal of internal baud generator (the worst case delay is: 1 baudout cycle) after writing to THR register or Transmitter FIFO. Transmission control contains THR register and transmitter shift register.
Receiver ControlThe D16X50 receiver has its own independent clock input RCLK. Receiving starts when the falling edge on Serial Input (SI) during IDLE State is detected. After starting the SI input is sampled every 16 RCLK cycles as it is shown in figure below. When the logic 1 state is detected during START bit it means that the False Start bit was detected and receiver back to the IDLE state.
Interrupt ControllerD16X50 UARTs consists fully prioritized interrupt system controller. It controls interrupt requests to the CPU and interrupt priority. Interrupt controller contains Interrupt Enable (IER) and Interrupt Identification (IIR) registers.
Baud GeneratorThe UART contains a programmable 16 bit baud generator that divides clock input by a divisor in the range between 1 and (216–1). The output frequency of the baud generator is 16× the baud rate. The formula for the divisor is:
divisor=frequency/(16*baudrate)
Two 8-bit registers, called divisor latches DLL and DLM, store the divisor in a 16-bit binary format. These divisor latches must be loaded during initialization of the UART in order to ensure desired operation of the baud generator. When either of the divisor latches is loaded, a 16-bit baud counter is also loaded on the CLK rising edge following the write to DLL or DLM to prevent long counts on initial load.
Transmitter controllerTransmitter Control module controls transmission of written to THR (Transmitter Holding register) character via serial output SO. The new transmission starts on the next overflow signal of internal baud generator (the worst case delay is: 1 baudout cycle) after writing to THR. Transmission control contains THR register and transmitter shift register.
Data Bus BufferThe data Bus Buffer accepts inputs from the system bus and generates control signals for the other UART functional blocks. Address bus ADDR(2:0) selects one of the register to be read from/written into. Both RD and WR signals are active low. Both RD and WR are qualified by CS; RD and WR are ignored unless the UART has been selected by holding CS low.

Each core has been tested in variety of FPGA and ASIC technologies. Its implementation's results are summarized below.
| Implementation | Speed grade | Area [LC] | Frequency [MHz] |
| CYCLONE | - | 301 | 190 |
| CYCLONE II | - | 303 | 222 |
| CYCLONE III | - | 300 | 210 |
| STRATIX | - | 301 | 213 |
| STRATIX II | - | 248 | 283 |
| STRATIX III | - | 240 | 263 |
| STRATIX GX | - | 301 | 212 |
D16450 implementation results for ALTERA devices. All features have been included.
| Implementation | Speed grade | Area [Slices] | Frequency [MHz] |
| SPARTAN-IIE | - | 187 | 104 |
| SPARTAN-III | - | 190 | 143 |
| SPARTAN-IIIE | - | 196 | 102 |
| VIRTEX | - | 187 | 98 |
| VIRTEX-E | - | 187 | 114 |
| VIRTEX-II | - | 190 | 190 |
| VIRTEX-II pro | - | 190 | 215 |
| VIRTEX-IV | - | 191 | 241 |
| VIRTEX-V | - | 193 | 248 |
D16450 implementation results for XILINX devices.
| Implementation | Speed grade | Area [LUT/PFU] | Frequency [MHz] |
| EC | - | 389/182 | 146 |
| ECP | - | 389/182 | 135 |
| XP | - | 389/182 | 124 |
| ECP2 | - | 341/164 | 198 |
| ECP2M | - | 285/160 | 198 |
| SC | - | 346/164 | 220 |
| XP2 | - | 285 /160 | 137 |
D16450 implementation results for LATTICE devices. All features have been included.

| UART Feature | D16450 | D16550 | D16750 | D16552 | D16752 | D16950 |
| FIFO Size | - | 2*16 | 2*64 | 4*16 | x*2*64 | 2*128 |
| Multichannel option | - | - | - | + | + | - |
| Separate BAUD Clock line | + | + | + | + | + | + |
| Modem Control | + | + | + | + | + | + |
| False Start Bit detection | + | + | + | + | + | + |
| Status report | + | + | + | + | + | + |
| Internal diagnostic capabilities | + | + | + | + | + | + |
| Prioritized interrupt system | + | + | + | + | + | + |
| Break generation and detection | + | + | + | + | + | + |
| Fast mode CLK/4 | - | - | o | - | o | + |
| Half-Duplex RS485 | - | - | o | - | o | + |
| RS485 buffer enable | - | - | o | - | o | + |
| IRDA support | - | - | - | + | - | + |
| Additional CLK prescaler | - | - | - | - | + | - |
| 1284 Parallel Port | - | - | - | + | - | - |
| Hardware flow control RTS/CTS | - | - | + | - | + | + |
| Software flow control Xon/Xoff | - | - | - | - | + | + |
| Isochronous mode | - | - | - | - | - | + |
| Detector o bad data in receiver FIFO | - | + | + | + | + | + |
| Special character detection | - | - | - | - | + | + |
| Software channel reset | - | - | - | - | - | + |
| 4 byte device ID | - | - | - | - | - | + |
| Trigger levels for receiver and transmitter | - | - | - | - | - | + |
| Hardware flow control DTS/DTR | - | - | - | - | - | + |
| Optional FIFO size extension to 512 bytes | - | - | + | - | + | - |
The main features of each UART family member have been summarized in table above. It gives a briefly member characterization helping user to select the most suitable IP Core for its application.
|