Do you have integer and floating point math?
i do have a cpld, so integer math (not really math).
if so, divide by 10 into a float, subtract the integer part of the
result, multiply by 10 and you have the least significant digit all on
it's own...
nono, no divide... shift, add, such things is ok, but no divide please.
Or... modulo 10 will give you the least significant digit, the you can
divide by 10 to move the digits down, kinda like (in C, displayed number
passed as an int in 'display')
i have modulo in verilog, dunno what will happen if i try to implement it.
will try.
i should be able to do the division by shifting, or not?
but i think shifting makes divide by 2? there is no 10 to get.
I'm currently redesigning the counter to BCD and then convert
each individual BCD digit which is much less work.
it is not nice but i hope it does work...
ST