11-24-2017 05:12 AM
Hi NI community,
I recently started working with LabView and am trying to design a switch port selector algorithm for an FPGA. This includes a counter with a total number of repetitions (e.g. 100) which needs to switch on every Nth (e.g. every second) repetition.
To implement this, I used the Quotient and Remainder operation after the counter, placed within an FPGA source clocked Single-Cycle Timed Loop (SCTL). Since this function is restricted to use in a SCTL, I am trying to find an alternative which won't influence the outcome. Any advice is highly appreciated.
Thanks!
11-24-2017 06:39 AM
Keep the counter in a shift register. It increments every iteration. When the value reaches your desired count (what you were trying to divide by), reset using the Select node (current count in FALSE, 0 in TRUE).