You use the MSB of phase accumulator to get a squarewave and hope it will generate the same frequency go through LUT and DAC. For the phase jump over the 1st /4th quadrant and 2th/3rd quadrant, it will change the squarewave's polarity( 1 to 0 and 0 to 1). Maybe we can do some kind of "smooth" action over the edge.