Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to affect the actual FPGA clock rate?

Hallo,
 
I developed a FPGA-VI, which should run with 80 MHz clock rate on the PCI 7833R board.
This was no problem at the beginning, but meanwhile the code got bigger (Slices: 30%). Now the compiler says that there is an error with the timing constraints. The maximum clock it can reach is 74 MHz.
Unfortunately I need the 80 Mhz to be fast enough.
What parts of the code influence the actual clock rate?
How can I get it faster?
0 Kudos
Message 1 of 3
(3,440 Views)
This question is hard to answer, without any information what exactly you do in your FPGA-VI. In general you have to take care how many ticks your function-chains inside your loop take, and if these functions-chains can be done in the desired loop-rate. If you have a multiplication for example, which can not be done in a single tick, and other functions depending on the result of this multiplication, it could hapen, that all these calculations need more ticks then available for the desired loop-rate. You could use shift-registers to seperate the long function-chains. Doing stuff in parallel is no problem for the fpga.

Hope this general information helps. If you have additional uestions, it would be good to attach your vi.
0 Kudos
Message 2 of 3
(3,427 Views)

I think you missunderstood what I mean:

The problem is not how many ticks a while loop needs for one cycle.

The problem is the clock rate setting for the FPGA-board. It is set to 80 MHz and not the Default 40 MHz.

When I compile my VI the compiler reports that it can't keep the 80 MHz. That means for example that a Single Cycled Timed Loop doesn't need 12.5 ns but for instance 13.4 ns.

If I separate my code in 2 parts and compile each part as a separate project, the compiler can keep the 80 MHz. Only together it doesn't work.

So the whole problem has something to do with the size of the project, the depth of the structures etc.

So I need to know for example what structures slow down the clock most, or something like that.

0 Kudos
Message 3 of 3
(3,419 Views)