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.

Verilog Binary Counter

Status
Not open for further replies.

forceface

Newbie level 1
Newbie level 1
Joined
Jul 7, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,290
I'm currently working on a verilog module that has a binary counter and am I'm not quite sure what this binary counter is doing. The binary counter has 3 inputs (clock enable, synchronous reset and an internal clock) and one 32 bit
output. I'm having the output go to a led display where it shows the output of the counter in hexadecimal. In my mind this is how I see it working, each time clock enable goes high the binary counter starts counting till it gets to certain
value then resets and starts counting again. Then it displays how many times it gets to this value. Can someone confirm that I'm right and if set me straight. Thanks.
 

no idea. look at the HDL.

I would have assumed:
if reset occurs and a rising edge of clock: count is set to 0
if clock enable and a rising edge of clock: count increments
if rising edge of clock without clock enable: count does not change.

the HDL should make the logic clear.
 

Clock enable is used to enable the internal clock.
if clock enable is not there then clock will not be generated and there wont be any operation.


Ususlaly for the simple binary counter they will use counter enable and it will work as "permute" explains above.
The counter will revert back to zero once it reaches the max value 2^32 - 1.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top