This patch is testing out frequency division using the RGATE module. Set CLK DIV to 2 and CLK MUL to 1 and it outputs 1/2 the frequency of the input square wave. CLK DIV at 3, 1/3 the frequency. You can get different ratios with different numbers.
Now I just have to figure out how to get other waveforms.