Hmm, what you do is add a Clk input to the expression gate (or whatever makes you fancy), and wire it to something that toggles it every Nth of a second. (I think that's a... square pulser, but divide its frequency input by two (since we only want to toggle once per cycle))
Then enclose your ENTIRE expression gate code within this:
Code:
~Clk ->
*all your code goes here*
;
Now the gate does all the execution only when we toggle the Clk input... which, when you wire it to a square pulser of frequency N / 2 where N is the actual frequency you want, does just that.
So,
Constant value of N / 2 -> Square pulse of frequency N -> Expression gate
Bookmarks