what is the purpose of using half_wave and full_wave variable?
In top module, where did you use the half_wave and full_wave register variable?