Visible to Intel only — GUID: mwh1416946773554
Ixiasoft
Visible to Intel only — GUID: mwh1416946773554
Ixiasoft
7.7.6.2. Extra Logging Options
Name | Description | |
---|---|---|
System clock log | Purpose | Prints out a message from the system clock interrupt handler at a specified interval. This indicates that the system is still running. The default interval is every 1 second. |
Preprocessor symbol | ALT_LOG_SYS_CLK_ON_FLAG_SETTING | |
Modifiers | The system clock log has two modifiers, providing two different ways to specify the logging interval.
|
|
Sample Output | System Clock On 0 System Clock On 1 |
|
Write echo | Purpose | Every time alt_write() is called (normally, whenever characters are sent to stdout), the first <n> characters are echoed to a logging message. The message starts with the string "Write Echo:". <n> is specified with ALT_LOG_WRITE_ECHO_LEN. The default is 15 characters. |
Preprocessor symbol | ALT_LOG_WRITE_ON_FLAG_SETTING | |
Modifiers | ALT_LOG_WRITE_ECHO_LEN—Number of characters to echo. Default is 15. | |
Sample Output | Write Echo: Hello from Nio | |
JTAG startup log | Purpose | At JTAG UART driver initialization, print out a line with the number of characters in the software transmit buffer followed by the JTAG UART control register contents. The number of characters, prefaced by the string "SW CirBuf", might be negative, because it is computed as (<tail_pointer> – <head_pointer>) on a circular buffer. For more information about the JTAG UART control register fields, refer to the Embedded Peripherals IP User Guide. |
Preprocessor symbol | ALT_LOG_JTAG_UART_STARTUP_INFO_ON_FLAG_SETTING | |
Modifiers | None | |
Sample Output | JTAG Startup Info: SW CirBuf = 0, HW FIFO wspace=64 AC=0 WI=0 RI=0 WE=0 RE=1 | |
JTAG interval log | Purpose | Creates an alarm object to print out the same JTAG UART information as the JTAG startup log, but at a repeated interval. Default interval is 0.1 second, or 10 messages a second. |
Preprocessor symbol | ALT_LOG_JTAG_UART_ALARM_ON_FLAG_SETTING | |
Modifiers | The JTAG interval log has two modifiers, providing two different ways to specify the logging interval.
|
|
Sample Output | JTAG Alarm: SW CirBuf = 0, HW FIFO wspace=45 AC=0 WI=0 RI=0 WE=0 RE=1 | |
JTAG interrupt service routine (ISR) log | Purpose | Prints out a message every time the JTAG UART near-empty interrupt triggers. Message contains the same JTAG UART information as in the JTAG startup log. |
Preprocessor symbol | ALT_LOG_JTAG_UART_ISR_ON_FLAG_SETTING | |
Modifiers | None | |
Sample Output | JTAG IRQ: SW CirBuf = -20, HW FIFO wspace=64 AC=0 WI=1 RI=0 WE=1 RE=1 | |
Boot log | Purpose | Prints out messages tracing the software boot process. The boot log is turned on by default when Intel FPGA logging is enabled. |
Preprocessor symbol | ALT_LOG_BOOT_ON_FLAG_SETTING | |
Modifiers | None | |
Sample Output | For more information, refer to the “Enabling Intel FPGA Logging” chapter . |
Setting a preprocessor flag to 1 enables the corresponding option. Any value other than 1 disables the option.
Several options have modifiers, which are additional preprocessor symbols controlling details of how the options work. For example, the system clock log’s modifiers control the logging interval.