Rules | Recent posts | topic RSS | Search | Register  | Log in

mod n counter

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital)
Author Message
balan



Joined: 18 Feb 2007
Posts: 38


Post19 Mar 2008 6:04   mod n counter

hi guys,
i need to design a mod n bit counter for my project. how to reset the counter when the desired count. help me.

thank you
Back to top
madhavisai



Joined: 03 Feb 2008
Posts: 35


Post19 Mar 2008 16:13   mod n counter

use T ff use defined primitve and write the code for asynchronous counter
Back to top
balan



Joined: 18 Feb 2007
Posts: 38


Post20 Mar 2008 4:32   Re: mod n counter

hi,

thank you,

but u have a implemented in other logic,

define parameter modcount =N;

while counting use the code as count = (count+1) % modcount;

which will reset the counter to reset value when desired count is achieved.

try this.


thank you.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> ASIC Design Methodologies & Tools (Digital)
Page 1 of 1 All times are GMT + 1 Hour


Abuse
Administrator
Moderators
topic RSS 
sitemap