1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Homework Help: Counters in verilog

  1. Dec 2, 2009 #1
    1. The problem statement, all variables and given/known data
    I'm trying to create a code in verilog that needs to use counters so it can preform specific actions during certain clock cycles.

    2. Relevant equations
    I believe that these lines of code need to be used

    reg[3:0] counter;
    counter <= 0;
    counter <= counter +1;

    3. The attempt at a solution
    How to use those lines of code, I don't know. I know that reg[3:0] counter; must be declared with the inputs and outputs. Where the other 2 get declared though, I haven't a clue.

  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted