Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task decrement_time;
- begin
- prescaler <= prescaler + 1;
- if (prescaler == 26'd49999999)
- begin
- prescaler <= 0;
- secs <= secs - 1;
- if (secs < 1)
- begin
- secs <= 9;
- ten_secs <= ten_secs - 1;
- if (ten_secs < 1)
- begin
- ten_secs <= 5;
- mins <= mins - 1;
- end
- end
- end
- end
- endtask
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement