| Author |
Message |
balan
Joined: 18 Feb 2007 Posts: 38
|
19 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
|
19 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
|
20 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 |
|
 |