ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fpga

Solved!
Go to solution

Hello,

 

I want to tell me  if it is allowed to use a FPGA I/O nodes in Single-Cycle timed loop ? if the answer is "yes", how does  this node work inside timed loop if this 

node contains a VHDL code (sequential and combinatorial) ?

0 Kudos
Message 1 of 5
(3,056 Views)

and if it is allowed to use a FIFO in Single-Cycle timed loop ??

0 Kudos
Message 2 of 5
(3,055 Views)

Hi,

 

You can use FPGA I/O nodes in single cycle timed loops, with limitations:

https://www.ni.com/docs/en-US/bundle/labview-fpga-module/page/using-single-cycle-timed-loops-to-opti...

 

You can use FIFO-s in single sycle timed loops for sure. In fact, you can use it between them for passing data, I would recommend them as the solution for crossing clock domains:

https://www.ni.com/docs/en-US/bundle/labview-fpga-module/page/implementing-multiple-clock-domains-fp...

 

For using VHDL code in a single sycle timed loops, it can only contain combinatorial logic. If you have sequential logic, you will get an error message after the compilation

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8sWSAS&l=en-US

 

Best Regards,

Simon

 

Best Regards,
T Simon
National Instruments
Applications Engineer
Certified LabVIEW Developer - Certified TestStand Architect
0 Kudos
Message 3 of 5
(3,036 Views)

my code is sequential logic, so what is the method to implement my code inside timed loop using CLIP? what is the result if I put my code inside while loop ??

0 Kudos
Message 4 of 5
(3,028 Views)
Solution
Accepted by topic author mahmoud12

You can cut your code to pure combinatorial sections by rplacing your registers with LabVIEW "shift registers" on the single cycle timed loop. This way you basically implement pipelined logic.

Optimizing your LabVIEW FPGA VIs: Parallel Execution and Pipelining

 

You can find help about using CLIP nodes in these articles:

Importing External IP Into LabVIEW FPGA

 

Regards,

Simon

Best Regards,
T Simon
National Instruments
Applications Engineer
Certified LabVIEW Developer - Certified TestStand Architect
0 Kudos
Message 5 of 5
(3,017 Views)