Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHelp - Creating alarm clock with modulo counter - System verilog
I am trying to create an alarm clock using a Terasic CycloneV fpga. I need to be able to set the time and an alarm. Right now I'm unable to get the clock to reset at 24 hours. I have attached the mod...
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- What problems are you having? What have you tried so far? --- Quote End --- The problem is the always_ff if statement doesn't do anything. The clock continues to count on. We reset each counter on the individual HEX displays once it hits 9, but we can't stop the hours counters because they need to roll through 9 twice then only count to 4. I don't know if we should be trying to count to larger numbers by utilizing two hex displays, or continue on the path of each display counting independently. I do not know the syntax to count to larger numbers on two displays or to create an effective if statement that will cause a reset when counters reach the specified numbers.