As we can see that,in VHDL ,MOD and REM only can be simulated but can't be synthesized.So how can we get the BCD from an unsigned integer? For example,the integer is 23,how can we get the BCD:0b0010 and 0b0011? Thanks.
This has been covered elsewhere:
https://electronics.stackexchange.com/questions/22611/binary-to-bcd-converison