-
Enable Trace Bus Interface:
When this parameter is set, the Trace bus interface is available. This interface is
useful for debugging, execution statistics and performance analysis. In particular,
connecting interface to a ChipScope Logic Analyzer (ILA) allows tracing program
execution with clock cycle accuracy.
The MicroBlaze Trace interface can be used to view the processor software execution in simulation and in hardware. It is sufficient to enable the interface without actually connecting it, to get access to the signals in simulation, and to add them to an ILA in hardware.
The waveform can be related to the assembler and source code by looking at the executable object dump. In the Vitis software platform this can be viewed by double-clicking on the generated ELF file. It is also possible to generate an object dump from the ELF file with interspersed source code using the
mb-objdumpcommand. TheTrace_PCandTrace_Instructionsignals correspond to the address and instruction in the object dump. Note that these, and most other signals, are only valid whenTrace_Valid_Instris set.Memory access addresses are shown using the
Trace_Data_Addresssignal, which is valid when eitherTrace_Data_ReadorTrace_Data_Writeis set. Instruction results are written to a MicroBlaze destination register indicated byTrace_Reg_Addrwhen theTrace_Reg_Writesignal is set, with the value shown by theTrace_New_Reg_Valuesignal.The
Trace_Exception_Kindsignal, valid whenTrace_Exception_Takenis set, indicates interrupts, breaks and exceptions. This can be useful to find error conditions or interrupt related issues.For a complete description of all the Trace bus interface signals, see Chapter 3, "Trace Interface Description" in MicroBlaze Processor Reference Guide (UG984).
-
Lockstep Interface: When you
enable lockstep support, two MicroBlaze cores run the same program in lockstep, and
you can compare their outputs to detect errors.
- When set to NONE, no lockstep interfaces are enabled.
- When set to LOCKSTEP_MASTER, it enables the
Lockstep_Master_OutandLockstep_Outoutput ports. - When set to LOCKSTEP_SLAVE, it does the following:
- Enables the
Lockstep_Slave_Ininput port andLockstep_Outoutput ports. - Sets the
C_LOCKSTEP_SLAVEparameter to 1.
The slave processor is visible as a CPU, and can have private LMB memory.
- Enables the
- LOCKSTEP_HIDDEN_SLAVE behaves the same way as LOCKSTEP_SLAVE, except that the slave processor is not visible as a CPU. This setting is recommended, except when using private LMB memory.
When this option is enabled, additional options become available under the Local Memory Bus Interfaces and AXI and ACE Interfaces section as shown in Other Interfaces. These options are explained below.
Figure 1. MicroBlaze Configuration Wizard Buses Page
- Use Monitor Interface for Local Memory Bus Instruction Interface: Select Monitor Interface for LMB instruction interface. This can be used to simplify connection of LMB for a lockstep slave processor when private LMB memory is not used.
- Use Monitor Interface for Local Memory Bus Data Interface: Select Monitor Interface for LMB data interface. This can be used to simplify connection of LMB for a lockstep slave processor when private LMB memory is not used.
- Use Monitor Interface for Peripheral AXI Instruction Interface: Select Monitor Interface for AXI peripheral data interface. This can be used to simplify connection of AXI for a lockstep slave processor.
- Use Monitor Interface for Peripheral AXI Data Interface: Select Monitor Interface for AXI peripheral data interface. This can be used to simplify connection of AXI for a lockstep slave processor.
- Use Monitor Interface for Cache AXI Instruction Interface: Select Monitor Interface for AXI cache instruction interface. This can be used to simplify connection of AXI for a lockstep slave processor.
- Use Monitor Interface for Cache AXI Data Interface: Select Monitor Interface for AXI cache data interface. This can be used to simplify connection of AXI for a lockstep slave processor.
- Temporal Depth: Allow configuration of temporal lockstep clock cycle delay of the slave processor.
There is also a monitor option for interrupt on the Interrupt & Reset tab:
Use Monitor Interface for Interrupt: Select Monitor Interface for the interrupt interface. This can be used to simplify connection of interrupt for a lockstep slave processor when a common interrupt source is used.