Software Breakpoints; Hardware Breakpoints - Altera Nios II User Manual

Hide thumbs Also See for Nios II:
Table of Contents

Advertisement

Chapter 2: Processor Architecture
JTAG Debug Module
Soft processor cores such as the Nios II processor offer unique debug capabilities
beyond the features of traditional, fixed processors. The soft nature of the Nios II
processor allows you to debug a system in development using a full-featured debug
core, and later remove the debug features to conserve logic resources. For the release
version of a product, the JTAG debug module functionality can be reduced, or
removed altogether.
The following sections describe the capabilities of the Nios II JTAG debug module
hardware. The usage of all hardware features is dependent on host software, such as
the Nios II Software Build Tools for Eclipse, which manages the connection to the
target processor and controls the debug process.
JTAG Target Connection
The JTAG target connection provides the ability to connect to the processor through
the standard JTAG pins on the Altera FPGA. This provides basic capabilities to start
and stop the processor, and examine and edit registers and memory. The JTAG target
connection is the minimum requirement for the Nios II flash programmer.
1
While the processor has no minimum clock frequency requirements, Altera
recommends that your design's system clock frequency be at least four times the
JTAG clock frequency to ensure that the on-chip instrumentation (OCI) core functions
properly.
Download and Execute Software
Downloading software refers to the ability to download executable code and data to
the processor's memory via the JTAG connection. After downloading software to
memory, the JTAG debug module can then exit debug mode and transfer execution to
the start of executable code.

Software Breakpoints

Software breakpoints allow you to set a breakpoint on instructions residing in RAM.
The software breakpoint mechanism writes a break instruction into executable code
stored in RAM. When the processor executes the break instruction, control is
transferred to the JTAG debug module.

Hardware Breakpoints

Hardware breakpoints allow you to set a breakpoint on instructions residing in
nonvolatile memory, such as flash memory. The hardware breakpoint mechanism
continuously monitors the processor's current instruction address. If the instruction
address matches the hardware breakpoint address, the JTAG debug module takes
control of the processor.
Hardware breakpoints are implemented using the JTAG debug module's hardware
trigger feature.
February 2014 Altera Corporation
2–19
Nios II Processor Reference Handbook

Advertisement

Table of Contents
loading

Table of Contents