ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA clock generation

Is there a way to generate two FPGA clocks with a known phase difference?  I'm using a 7954r, which is a Virtex 5.  I know there are internal DCM modules that generate clocks with phase shifts.  I've tried adding a CLIP that's just a DCM within the FPGA, and Labview accepts it, but I don't know how to then take these new clock outputs and make Labview know that they are FPGA clocks that can be used.

 

How can I do this?

0 Kudos
Message 1 of 4
(4,270 Views)

Hey codeman,

 

I just confirmed that we can do this, and it is actually fairly straight forward.

 

First, save this vhdl file as ClipGenerateClk.vhd:

http://zone.ni.com/reference/en-XX/help/371599G-01/lvfpgahelp/fpga_clip_clock_ex_code/

 

Then import it into labview fpga as CLIP, and be sure to specify that the clock outputs and inputs are of the clock type:

clipclk.png

 

After you have done so, you should have a fully functioning pair of 80 MHz clocks which are offset by 180 degrees.

 

Let me know if you have any further issues with this.

 

Thanks,

Message 2 of 4
(4,253 Views)

How to use the DCM management IO module clock In FlexRIO ?

0 Kudos
Message 3 of 4
(4,103 Views)

Hello,

 

Can you be a little more specific? I don't understand your question. Is there something from the posts above that you want us to clarify?

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
0 Kudos
Message 4 of 4
(4,085 Views)