Continue to Site

# integer division in VHDL synthesis

Status
Not open for further replies.

#### amburose

##### Junior Member level 3
vhdl division

in my project simulation is done..

but in synthesis cant do integer division...

eg: c<=(K*N)/T;

K,N,T are inputs...

how to solve it....

vhdl integer division

you can do repetetive subtraction for it. Or
you can use Newton-Raphson method for it
Kr,
Avi
http://www.vlsiip.com

division in vhdl

if you are dividing the number by 2^n means(2,4,8,16,32.......)
then you can shift left directly the number by n bits.

division vhdl

Another possible approach is to tabulate 1/T in a Block ROM, and then multiply (K*N) * (1/T)

vhdl division integer

What is the targeted fpga?

integer division in vhdl

Hi everybody,

i'am trying to do just this:
varU2int <= U2 /2; with (varU2int : integer range 0 to 1023 :=0

and my problem is: i have some bit like varU2int(10) on 'U' and not (0 or 1)
how i can avoid this?

division en vhdl

U2 / 2 is the same as doing 1 right shift to U2

Status
Not open for further replies.