Hi,
While it makes no difference with the FPGA, I wonder why you write the "minutes" before the "seconds".
As well as in the title as in the code.
If you want seconds and minutes in BCD, from a 1GHz clock (at least your code makes me assume this) then try this:
You have secondsUnit, secondsTens, minutesUnit and minutesTens.
Count pulses then increment secondsUnit 0..9
When secondsUnit= 10, then set it to zero and increment secondsTens 0..5
When secondTens = 6 then set it zero and increment minutesUnit 0..9
When minutesUnit= 10, then set it zero and increment minutesTens 0..5
And so on
Klaus