Sep 26, 2007 #1 A amburose Junior Member level 3 Joined Jun 21, 2007 Messages 29 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,496 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.... if anybody know please help me.....
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.... if anybody know please help me.....
Sep 26, 2007 #2 avimit Banned Joined Nov 16, 2005 Messages 412 Helped 91 Reputation 182 Reaction score 23 Trophy points 1,298 Location Fleet, UK Activity points 0 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
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
Sep 26, 2007 #3 A amitgangwar_vlsi Member level 5 Joined Jul 6, 2007 Messages 88 Helped 10 Reputation 20 Reaction score 2 Trophy points 1,288 Location Pune,India Activity points 1,913 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 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.
Sep 27, 2007 #4 E echo47 Advanced Member level 6 Joined Apr 7, 2002 Messages 3,933 Helped 638 Reputation 1,274 Reaction score 90 Trophy points 1,328 Location USA Activity points 33,176 division vhdl Another possible approach is to tabulate 1/T in a Block ROM, and then multiply (K*N) * (1/T)
division vhdl Another possible approach is to tabulate 1/T in a Block ROM, and then multiply (K*N) * (1/T)
Sep 28, 2007 #5 K keano Member level 1 Joined Dec 24, 2004 Messages 36 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,286 Location TUNISIA Activity points 251 vhdl division integer What is the targeted fpga?
Jun 12, 2009 #6 T Tulipe186 Newbie level 2 Joined Jun 12, 2009 Messages 2 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,288 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?
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?
Jun 12, 2009 #7 D davidgrm Full Member level 4 Joined Apr 8, 2006 Messages 233 Helped 31 Reputation 62 Reaction score 10 Trophy points 1,298 Activity points 2,727 division en vhdl U2 / 2 is the same as doing 1 right shift to U2