title: How to decode an unsigned integer into BCD use VHDL
body: <p>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.</p>