Related Training Videos
How do I use instruments in my FPGA design?![]()
How do I Setup and use the LAX Instrument?![]()
How do I use the Frequency Counter Instrument?![]()
Debugging is the act of testing you hardware design and any embedded software (running on 'soft' processors therein), to obtain the desired (correct) performance and functionality. Debugging is an important element of the overall design strategy, and effective debugging can save a lot of time and money when it comes time to deploy your end design in the field.
Virtual Instrumentation
In Altium Designer, debugging of hardware is provided courtesy of 'virtual' instruments – components which are 'wired' into the actual FPGA design but which, on programming the physical device, offer software-based controls for interrogation and control of nodes within the design. Imagine being able to walk around inside the physical FPGA device, armed with your favorite test instruments, and you'll have some idea of what these instruments can offer as part of a 'live' debugging environment.
Figure 1. Monitor and control I/O using a custom instrument - just one of a variety of virtual instruments for use in an FPGA design.
Virtual instruments are placed from the \Library\Fpga\FPGA Instruments.IntLib library.
Accessing Virtual Instruments at Runtime
Enabling the Soft Devices JTAG Chain
Custom Instrument
Logic Analyzer
Digital IO Module
Crosspoint Switch Module
Terminal Module
Frequency Generator Module
Counter Module
In addition, a number of legacy instruments are available, from the \Library\Fpga\Legacy Libraries\FPGA Legacy Instruments.IntLib library.
Logic Analyzer (Legacy)![]()
Digital IO Module (Legacy)![]()
Additional Hardware Monitoring Tools
In addition to the range of virtual instrumentation available for use in an FPGA design, there are also tools available to interrogate the activity at the pins of the physical FPGA device, or to probe nets within the design. Use the following links to take a closer look at these tools.
Monitoring the State of Device Pins - Live
Analyzing Design Nets
Embedded Software Debugging Tools
Debugging of the hardware side of an electronic product is, to coin a phrase, only half the battle. The intelligence of the product and the source of real sustainable differentiation, is the embedded software code running on a processor in the design. It is this code that gives the product it's 'smarts' – the basis of the product's functionality.
Altium Designer provides extensive on-chip debugging capabilities for each available 32-bit processor, allowing you to examine and change memory and register values in real-time, as well as performing source-level debugging of your embedded code.
Figure 2. Entering an embedded code debug session.
Facilitating Real-Time Debugging of a Processor
Accessing the Embedded Debug Environment
Profiling
See Also
Tutorial - Getting Started with FPGA Design
Tutorial - Adding Custom Instrumentation to an FPGA Design
Comments (1)
Nov 15
Anonymous says:
71.130434782608771.1304347826087