peterkraft wrote:
> I've done something like this
It is NOT a proper way to generate clocks inside a FPGA. You will get a
warning for such a design style. Use clock-enable signals for that.
> if(count = 50000000) then
This is the well known "off-by-one" error. Not much of a problem here,
because it will get only 1/50000000 deviation for your clock. That means
your clock will be off by one second after almost a year due to that
error. But when you would do that to count milliseconds, then the
deviation would be a quarter of an hour...
> Could you possibly help with the code?
Did you click on that link?
There you can see 1. how to use the numeric_std package and 2. how to
use clock enables and 3. how to get the digits to the display and 4.
that it is much better to count each of the 4 digits by its own, so it
can easily be displayed. Because with your code you encounter the
problem to fiddle the 4 digits out the hours and miuntes.
BTW:
> I've done something like this
Pls use the [vhdl] tags to wrap your code.