The 658x adapter modules can import and export clock signals once properly configured. The following instructions will configure these clocks for all modules except the 6587.
You can import a clock signal through the Strobe line of the 658x cards for use in the FPGA. This clock can be used as a timing source within the FPGA code. There is one Strobe line per connector (pin 67), IO_Module_Clock0 on DDCA, and IO_Module_Clock1 on DDCB. See the following image for reference:
Configuring the Strobe Lines
- Right-click your FlexRIO Target in the FPGA Project and choose New » FPGA Base Clock.
- In the FPGA Base Clock Properties window, choose the name for the clock signal and configure the clock resource conditions
Using the Strobe Lines
- On the Functions Palette choose Structures » Timed Structures » FPGA Clock Constant:
- Click the dropdown menu and select the clock that was configured previously by choosing the entry with the clock's name.
Exporting a Clock
You can output a clock from your 658x adapter module on the DDC Clock Out Lines. There is one DDC Clock Out Line per connector (pin 33), DDCA Clock Out, and DDCB Clock Out. There are two signals, DDCA_ClockOut_Enable and DDCB_ClockOut_Enable, which will control if the configured clock will be exported from the FPGA.
Configuring the DDC Clock Out Lines
- Right-click your IO Module in the FPGA Project and choose Properties.
- Select the internal clock you want to export on each line.
Using the DDC Clock Out Lines
- On the Functions Palette, choose FPGA I/O » I/O Node:
- Set the DDCA_ClockOut_Enable or DDCB_ClockOut_Enable signal to True.
Because FPGA clock signals have tighter constraints and accuracy requirements than normal digital logic, clock signals can only be imported or exported via mechanisms defined in the CLIP. This means users are limited to import or export only two clock signals. If you need to access clock signals through a method other than the suggestions here, it may be possible but would require CLIP modification to define the I/O paths. This kind of modification is not supported by NI but can be done through VHDL programming. This also applies to extra functionalities like inverting the input clocks and such.