Trace and Profiling - 2025.1 English - UG1711

MicroBlaze V Processor Embedded Design User Guide (UG1711)

Document ID
UG1711
Release Date
2025-05-29
Version
2025.1 English

MicroBlaze V provides program trace, based on the RISC-V N-Trace standard, storing information in an embedded RAM Sink or sending it to an external trace PIB Sink.

Use the parameter C_DEBUG_TRACE_SIZE to configure the size of the embedded trace buffer from 4KB to 128KB. By setting C_DEBUG_TRACE_SIZE to 0 (None), embedded program trace is disabled.

Use the parameter C_DEBUG_EXTERNAL_TRACE to enable external trace. In this case the MDM V must also be configured to use external trace output.

MicroBlaze V also provides non-intrusive profiling, identical to the equivalent feature in the classic MicroBlaze processor, storing program execution statistics in a profiling buffer. The buffer is divided into a number of bins, each counting the number of executed instructions or clock cycles within a certain address range.

Use the parameter C_DEBUG_PROFILE_SIZE to configure the size of the profiling buffer from 4KB to 128KB. By setting the parameter to 0 (None), profiling is disabled.