May 31, 2004 #1 V 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!
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!
May 31, 2004 #2 vkchau Member level 4 Joined Jun 7, 2003 Messages 74 Helped 4 Reputation 8 Reaction score 2 Trophy points 1,288 Activity points 664 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.
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.
May 31, 2004 #3 V 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 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!
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!
Jun 1, 2004 #4 vkchau Member level 4 Joined Jun 7, 2003 Messages 74 Helped 4 Reputation 8 Reaction score 2 Trophy points 1,288 Activity points 664 Yes, other divisors is not supported by synthesizers when signals is std_logic_vector. I have this code, I will send to you early.
Yes, other divisors is not supported by synthesizers when signals is std_logic_vector. I have this code, I will send to you early.
Jun 9, 2004 #5 vkchau Member level 4 Joined Jun 7, 2003 Messages 74 Helped 4 Reputation 8 Reaction score 2 Trophy points 1,288 Activity points 664 Sorry, my network is down. You can download it at www.opencores.org: Hardware Divide Unit.