Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
If you are not worried of accuracy you can do the modulo operation in verilog synthesizable by following math operation
x mod k
1.Calculate 1/k and then multiple with a number which is in power of two like 32,64,256.....
2.Multiply the resultant value with x and then divide by the power of 2...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.