Professional Documents
Culture Documents
Datapath Controllers
Digital systems
Control-dominated systems :
being reactive systems responding to external events, such
as traffic controllers, elevator controllers, etc
Data-dominated systems :
requiring high throughput data computation and transport
such as telecommunications and signal processing
Sequential machines are commonly partitioned into data
path units and control units
Control inputs Datapath Logic
Control
FSM signals
Clock
Datapath
Registers
Start
En
C <= C+1
Count <= 0
Count <= 0
Reset Count <= Count - 1
Up
Count <= Count + 1
Start Start
Count <= Count + 1
En En
Features of UARTs
There is no clock for UARTs
Data (D) is transmitted one bit at a time
When no data is being transmitted, D remains high
To mark the transmission, D goes low for one bit time,
which is referred to as the start bit
When text is being transmitted, ASCII code is usually used
ASCII is 7-bit in length the 8th bit is used for parity check
ASM for TX
BAUD generator
Suppose the system clock 8 MHz and we want BAUD rates
300, 600, 1200, 2400, 4800, 9600, 19200 and 38400
Selection for BAUD rates (Notice!! set default rate at
38462)
ADDR WR Action
00 0 DBUS RDR
00 1 TDR DBUS
01 0 DBUS SCSR
01 1 DBUS hi-Z
1x 0 DBUS SCCR
1x 1 SCCR DBUS
Notice that the port to DBUS must be tri-state buffered and
held hi-Z whenever not outputting data to DBUS
q
Addr
Data In TX
used_dw DBUS
TX RX
wr_req FIFO16 Full WR UART
TXFIFO16 timing
q
Addr
Data In TX
used_dw DBUS
TX RX
wr_req FIFO16 Full WR UART