10-23-2017 08:06 PM - edited 10-23-2017 08:26 PM
Hello everyone,
I have a project that I developed in VHDL but I need to test it via LabVIEW.
I would like to know how to run it for 24 hours and every 2 hours the input "enableSEU" turns 1 by 30 ns and then returns to 0.
I know there are time controls in LabVIEW, but I do not know how to use them in my project because the total time is limited and the "enableSEU" should change its value automatically.
Via testbench is something like this:
SEU_proc: PROCESS
BEGIN
enableSEU <= '0';
WAIT FOR 2 hr;
enableSEU <= '1';
WAIT FOR 30 ns;
END PROCESS SEU_proc;
Thanks to all who can help in some way and sorry, English is not my first language.
10-24-2017 01:35 AM
Hi vinycesar,
BEGIN
enableSEU <= '0';
WAIT FOR 2 hr;
enableSEU <= '1';
WAIT FOR 30 ns;
END PROCESS SEU_proc;
The begin/end translates to a WHILE loop. Setting the enableSEU output is just an access to an IO node. And well: even in the FPGA you can use Wait functions…
So what is your problem in translating your "testbench" code into LabVIEW?
Hints:
- to wait for 30ns in the FPGA might be "problematic": by default the FPGA runs at 40MHz allowing to wait for 25ns or 50ns easily. To achieve "exactly" 30ns you will need to play with additional clocks…
- your IO nodes have to support such fast updates, so check your manual/hardware specsheets before starting to code…
- I would not wait for 2h with just one function call. Usually it's better to wait for 1s for 2*60*60=7200 times…
10-24-2017 06:58 AM
Thanks for your reply.
And how can I automate this "enableSEU" value change? What IO Node do I use for this?
The value must be "1" for only one clock cycle (25 ns).
10-24-2017 08:57 AM
Hi vinycesar,
And how can I automate this "enableSEU" value change? What IO Node do I use for this?
"enableSEU" is an input of your CLIP, you already have an IO node in your VI!
The value must be "1" for only one clock cycle (25 ns).
Use a SCTL, set to iterate at 40MHz.
Set enableSEU to TRUE for just one iteration, then set it to FALSE for the next 288*10^9 iterations…