Continue to Site

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.

Need help with clock dependent counter in Verilog

Status
Not open for further replies.

whateva

Newbie level 4
Joined
Mar 20, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,341
dependent counter

I want to implement a logic in verilog in such a way that for 3 clk cycles the output of logic block selects 1 input of the mux, and for the other 4 clk cycles it selects the other input.
Total 7 clk cycles are needed, i want to keep a track of the cycles so i want to use a counter which increments only when the positive edge of the clock comes, kindly tell me how should i do that??
secondly would the counter be dependent on the data clock or the system clock??
 

Re: clock dependent counter

U can use a reg[2:0] . 000\001\011\010\110\111\101 to implement the counter.It can be made as a FSM.
I think the system clk is better.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top