64. Design a UART Baud-Tick Generator

Loading simulator…

1. -1 Adder Block

This block generates the last counter value using Baud_Limit = Baud_Divider - 1.

The 4-bit adder receives Baud_Divider at its A input and fixed 1111 at its B input.

In 4-bit two's-complement arithmetic, 1111 represents -1; therefore, adding it produces the required terminal value without a separate subtractor.

2. Baud Counter

Four positive-edge-triggered D flip-flops store Baud_Count[3:0].

Their active-LOW asynchronous clear inputs are connected to the digital input nRESET, so asserting reset initializes the count to 0000.

A 4-bit adder increments or holds the count.

A = Baud_Count
B = 0000
Cin = Enable  

Sum = Baud_Count + Enable

Each flip-flop input is formed as

D[i] = Baud_Tick'·Sum[i]    //where i = 0,1,2,3

When Baud_Tick is LOW, the sum is loaded normally; when Baud_Tick is HIGH, every D input becomes LOW and the counter synchronously restarts from 0000.

3. Comparator and Tick Logic

The 4-bit comparator checks Baud_Count against Baud_Limit.

It asserts Terminal_Count when the two values are equal.

The final pulse is generated by

Baud_Tick = Terminal_Count·Enable

The tick remains LOW while counting is disabled.