UART ILA Backhaul¶
This module provides the interface for consuming data from the UART ILA over an arbitrary serial port.
- class torii_ila.uart.UARTIntegratedLogicAnalyzerBackhaul(ila, serial)¶
UART-based ILA backhaul interface, used in combination with
UARTIntegratedLogicAnalyzer
to automatically set up a communications channel to get ILA samples off-device.An instance of this class is typically created by calling
UARTIntegratedLogicAnalyzer.get_backhaul()
which lets the ILA configure the backhaul as needed.Alternatively you can pass the
UARTIntegratedLogicAnalyzer
instance from the gateware to the constructor of this module.The data coming off the ILA is rCOBS encoded and the samples are byte-wise swizzled, we automatically decode and de-swizzle the samples.
See
torii_ila.backhaul.ILABackhaulInterface
for public API.- Parameters:
ila (UARTIntegratedLogicAnalyzer) – The ILA being used.
serial (Serial) – The serial port the ILA is connected over.
- class torii_ila.uart.UARTILACommand(value)¶
These are commands the UART ILA knows about
- NONE = 0¶
No command
- FLUSH = 1¶
Flush the ILA Sample memory down the UART.
- STREAM = 2¶
Send the ILA sample memory down the UART until
UARTILACommand.STOP
is sent.
- STOP = 3¶
Stop the ILA from sending sample stream down the UART.