Forum Discussion
Altera_Forum
Honored Contributor
13 years agoMay be this approach is similar like yours.
a-You create a register, call it "resto" for example, with 2N bits. ( N = 4 in this case ). b-Fill the 4 MSb bits of that register with '0'. c-Fill the 4 LSb bits with the dividendo. d-Substract the "4 MSb bits of resto" - divisor. e-If the substraction is greater or equal than "0000" fill the 4 MSb of "resto" with the result of the substraction. If the result of substraction is negativo don't change "resto". f-Shift "resto" one position to the left. g-Repete the procedure from step 'd' until you entered all the bits of the original dividendo. I hope you understand me.