A generic binary to BCD component written in VHDL