I'm trying to make a 5-bit binary to bcd converter for a long time. I have already made one design which uses basic logic gates and leave me no choice but to use too many ICs. I want to make a design which uses less IC because it is for my project. I used the boolean algebra to make my fist design.

Can anyone please help me how to design the shorter one?

I have researched about this converter in this forum and i have found one but it is a 4-bit binary to bcd converter which uses 7483 and nand gates. I think this design will some how help me to finish my design. But again it is only accepting 4-bit binary number. And my goal is to convert 5-bit binary to BCD.

This is the image of the 4-bit binary to BCD converter:

https://www.electro-tech-online.com/attachments/binary-to-bcd-gif.18767/

Please anyone who can give me some advice, hints or solutions to make this possible. I greatly appreciate all your answers or replies. Thanks