Table Of Contents

Increasing Execution Rate of Code on an FPGA

Last Modified: April 22, 2016

If the FPGA target base clocks fail to execute code at a rate that meets the timing objectives of your application, you can create a derived clock to achieve faster execution rates.

Complete the following steps to create and use a derived clock in LabVIEW.

  1. In the Project Files tab, open or add a shared resource collection targeted to the FPGA target.
  2. Add a new derived clock and make your selections in the New Derived Clock dialog box.
    Option Description
    Set by Frequency Use this method if you know the timing objective of your code according to the frequency, measured in MHz.
    Set by Period Use this method if you know the timing objective of your code according to the length of one period, measured in ns.
    If your entry falls outside the range of the slider, LabVIEW automatically adjusts your entry to the closest acceptable number.
  3. Click OK.
  4. Optional: Rename the clock to more easily differentiate between clocks on the diagram. By default, the name is DerivedClock.
  5. Use the derived clock to drive a Clock-Driven Loop and control the timing of your code on the FPGA. You can select a derived clock from a clock constant in an FPGA VI or Clock-Driven Logic document.

Recently Viewed Topics