Q- Implement the Octal to Binary encoder (only first 8 numbers).
Ans: In this circuit, we have 8 inputs and 3 outputs. The octal number is feed into the encoder by placing a high (1) on the corresponding line and we get the binary equivalent as output.

From the above truth table we can easily get equations and implement the circuit.
Similarly we have decimal to binary encoder where we have 10 inputs and 4 outputs. The decimal number is feed into the encoder by placing a high (1) on the corresponding line and we get the binary equivalent as output.