Clock-Driven Logic
- Updated2023-02-17
- 1 minute(s) read
Clock-Driven Logic
Clock-Driven Logic allows you to create code that executes in one clock cycle at the rate you specify for the Clock-Driven Loop. Because the code maps directly to resources on the FPGA when you compile and depends on the timing of the Clock-Driven Loop, Clock-Driven Logic code can only run within a Clock-Driven Loop on the diagram of a VI targeted to an FPGA.
You program using Clock-Driven Logic in two places.

- Within the Clock-Driven Loop directly.
- Within a Clock-Driven Logic document (.gcdl), or subCDL, placed within the Clock-Driven Loop.
Note Some nodes on the Clock-Driven Logic palette only function inside of a Clock-Driven Loop or a Clock-Driven document. If you add one of these nodes outside of the loop, the Errors and Warnings tab displays an error.