When implementing trigonometric functions, taking into account the periodic function, the amount of the heald (argument) required for the remainder operation cycle.
Suppose the function period is T = 2 ^ N, then the remainder operation that is taken directly to the lower N-bit number, namely:
In Case M-bit positive number (sign bit is 0), reg [M-1: 0] data; mod_data = {0, data [N-1: 0]};
[Quote]:
1,http://xilinx.eetop.cn/viewthread-344378
2,https://blog.csdn.net/wangwenzhi276/article/details/43853617