+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 1
    Points: 14, Level: 1

    Join Date
    Sep 2019
    Posts
    1
    Helped
    0 / 0
    Points
    14
    Level
    1

    HELP ME the newbie with Verilog Code

    Hello, i'm new with using verilog code, and i have a task. Making a timer with

    input:clock, reset
    output:seconds,minutes,hours.
    and i can't solve this, anyone who know the code help me.

    Your answer help me a lot. THANK YOU

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 31,602, Level: 43
    ads-ee's Avatar
    Join Date
    Sep 2013
    Location
    USA
    Posts
    7,309
    Helped
    1719 / 1719
    Points
    31,602
    Level
    43

    Re: HELP ME the newbie with Verilog Code

    I would venture to say you aren't even making an effort.

    I did a quick search for "Verilog digital clock code" and it came back with 628,000 results and the first 5 links have Verilog code to do exactly what you are asking.

    Or perhaps your problem is not understanding modulo counting, which is how you count out seconds, minutes, and hours?.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 5
    Points: 2,369, Level: 11

    Join Date
    May 2014
    Posts
    279
    Helped
    28 / 28
    Points
    2,369
    Level
    11

    Re: HELP ME the newbie with Verilog Code

    I want to help, but this is blatant offloading of work. How are you going to get any better?

    You need to know the following
    1. You use the clock to generate a counter.
    2. Based on clock speed a certain multiple will give you a second.
    3. You can represent events that tick over to implement other counters. For example 60 seconds makes a minute. 60 minutes makes an hour and 24 hours make a day.



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 4
    Points: 8,521, Level: 22
    Achievements:
    7 years registered Created Blog entry
    dpaul's Avatar
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    1,276
    Helped
    275 / 275
    Points
    8,521
    Level
    22
    Blog Entries
    1

    Re: HELP ME the newbie with Verilog Code

    This is a very common university homework and is not difficult.
    Show us what you have attempted to do so far.
    If you are not comfortable with Verilog, then learn it first. This task will exercise you ability on how good you understand counters and implement counters with Verilog.
    FPGA enthusiast!



--[[ ]]--