This section provides an overview of the required resources of sc_multi_uart
component so that the application designer can operate within these constraints accordingly.
The following ports are required for each of the receive and transmit functions -
Operation | Port Type | Number required | Direction | Port purpose / Notes |
---|---|---|---|---|
Transmit | 8 bit port | 1 | Output | Data transmission |
Transmit | 1 bit port | 1 | Input | Optional External clocking (see :ref:`sec_ext_clk`) |
Receive | 8 bit port | 1 | Input | Data Receive |
Operation | Logical Core Count | Notes |
---|---|---|
Receive | 1 | Single logical core server, may require application defined buffering logical core - requires 62.5MIPS per logical core |
Transmit | 1 | Single logical core server - requires 62.5MIPS per logical core |
The following is a summary of memory usage of the component for all functionality utilised by the echo test application when compiled at optimisation level 3. It assumes a TX buffer of 16 slots and operating at the maximum of 8 UART channels. This is deemed to be a guide only and memory usage may differ according how much of the API is utilised.
Stack usage is estimated at 460 bytes.
Operation | Code (bytes) | Data (bytes) | Total Usage (bytes) |
---|---|---|---|
Receive Logical Core | 316 | 424 | 740 |
Receive API | 410 | 0 | 410 |
Transmit Logical Core | 1322 | 940 | 2262 |
Transmit API | 480 | 0 | 480 |
Total | 2159 | 1364 | 3523 |
Operation | Channel Usage & Type |
---|---|
Receive | 1 x Streaming Chanend |
Transmit | 1 x Streaming Chanend |
The application that interfaces to the receive side of UART component must meet the following timing requirement. This requirement is dependent on configuration so the worst case configuration must be accounted for - this means the shortest UART word (length of the start, data parity and stop bits combined).
Taking an example where the following values are applied -
- UART_CHAN_COUNT = 8
- MAX_BAUD = 115200 bps
- MIN_BIT_COUNT = 10 (i.e 1 Start Bit, 8 data bits and 1 stop bit)
The resultant timing requirement is 10.85 μS. This would be defined and constrained using the XTA tool.