Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me design a mod n bit counter

Status
Not open for further replies.

balan

Member level 2
Joined
Feb 18, 2007
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,518
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
 

madhavisai

Member level 2
Joined
Feb 3, 2008
Messages
43
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,482
mod n counter

use T ff use defined primitve and write the code for asynchronous counter
 

balan

Member level 2
Joined
Feb 18, 2007
Messages
44
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,518
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.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top