Table Of Contents

Tools for Debugging Clock-Driven Logic Code

Version:
    Last Modified: January 11, 2018

    You can use several Clock-Driven Logic troubleshooting tools that the development environment includes to debug Clock-Driven Logic code in your FPGA application.

    • Testbench VI—Generates sample data and compares the output of the code under test to an expected outcome to determine whether the code functions properly.
    • Run FPGA Simulation Node—Executes a Clock-Driven Logic document in simulation mode on the diagram of a VI on a computer target. This node is often part of a testbench VI design. The node accepts sample data that the testbench VI generates, executes the code on the diagram of the Clock-Driven Logic document using the sample data, and outputs the result of the Clock-Driven Logic code.
      spd-note-note
      Note  

      The connector pane of the Run FPGA Simulation node matches the connector pane of the Clock-Driven Logic document it represents.

    • Sampling Probe— Collects data at run time and displays the data in an interactive graph on the Sampling Probes tab after the application pauses or finishes executing.

      Sampling probes are only available in a Clock-Driven Logic document or a Clock-Driven Loop. When you add a sampling probe to a wire, it appears on both the Debugging and Sampling Probes tabs. The Debugging tab displays the most recent value the probe recorded, while the Sampling Probes tab displays each data point recorded during the most recent application execution.

      spd-note-note
      Note  

      Sampling probes support only scalar, non-cluster data types, such as fixed-point numbers, complex fixed-point numbers, Booleans, and integers. The probes you set on wires of unsupported data types appear only in the Debugging tab.


    Recently Viewed Topics