Verilog generator for RNS multipliers based on difference of squares

Choose module (from 2 to 1000):
The main idea of the method is as follows: : X*Y = (1/4)*(X+Y)2 - (1/4)*(X-Y)2
The method is not applicable to even moduli
|4-1|7 = 2

Main page