How to write verilog code to find modulus

how to write verilog code to find modulus value for example code to find (N modulus M), where N and M is some 192 bit numbers.
TIA. Please help on this.

In reply to poomagal:

You can include function file in your module and you can call the functions defined inside that file.
In function you can apply a loop that will keep adding M and checks each time after addition whether M >N , and if its true the do (N -(last added value of M ) ) which shall give you the result.

A simple example is 17%5 should be 2 so->

5+5 =10 i=1; 10<17
10+5=15 i=2; 15<17
15+5=20 I=3; 20>17 ,so do the subtraction of the previous value which was 15 .Hence 17-15 =2.

Prashant