Design a circuit that converts binary or BCD inputs into control signals for a 7-segment display to show digits 0-9