Specifications

Name Description
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.
ALT_LOG_JTAG_UART_TICKS—Logging interval in ticks. Default
is <ticks_per_second> / 10.
ALT_LOG_JTAG_UART_TICKS_DIVISOR—Specifies the number of
logs per second. The default is 10. When you modify ALT_LOG_
JTAG_UART_TICKS_DIVISOR, ALT_LOG_JTAG_UART_TICKS is
recalculated.
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
6-10
Extra Logging Options
NII5V2
2015.05.14
Altera Corporation
Developing Programs Using the Hardware Abstraction Layer
Send Feedback