Verilog generator for RNS mod 2^n-1 adder

Choose n for module 2n-1 (from 3 to 128):
Simple implementation with double addition and comparison:

Test Bench:

Main page