Page 1 of 1

My question is about Verilog, I want to perform 'modulo 1536' without using '%' or '/' operator, For example, If the inp

Posted: Mon May 09, 2022 6:31 am
by answerhappygod
My question is about Verilog, I want to perform 'modulo
1536' without using '%' or '/'
operator,
For example, If the input is 11'd 2048 -> the output should
be 11'd512, if the input is 11'd960 -> the output should be 11'd
960
I want to know the algorithm of that.