[vhdl]how to implement "division" ?thx!!

Status
Not open for further replies.

vvsvv

Full Member level 1
Joined
May 26, 2004
Messages
98
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
796
esp. when the divisor is 720,
what shall I do in vhdl?

man I :

.......
if(count/720=2) then
..............................
OR

if(count mod 720 )

.........................
thank u very much!
 

As I know, in almost synthesizers, divisor must be power of 2, e.g. 2, 4, 8, 16,... Therefore, you must write VHDL code to implement divider, or use available code libraries for divider.
 

thanks.
however , is it to say"the divisor must be 2. 4.8 .16....... "?
do you know where I may find the library which include the division?

thanks again!
 

Yes, other divisors is not supported by synthesizers when signals is std_logic_vector. I have this code, I will send to you early.
 

Sorry, my network is down. You can download it at www.opencores.org: Hardware Divide Unit.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…