Vhdl divider by input value

Status
Not open for further replies.

StayFoolish

Newbie level 1
Joined
Apr 15, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,286
So i need a DIVIDER that divides the clock by an input value that is given by port like this where Ptime is the value i want to divide the clock with. Thanks and sorry for my english.
 

So i need a DIVIDER that divides the clock by an input value that is given by port View attachment 89403 like this where Ptime is the value i want to divide the clock with. Thanks and sorry for my english.
I'd suggest that you use a counter preloaded with the port value that counts down to 1 and then resets back. Once the counter reaches the halfway point (i.e. the input port value divided by 2), set the output high, when it reaches 1 set the output back to 0.

Kevin Jennings
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…