We can implement the above two Boolean functions by using two input OR gates. The above circuit diagram contains two OR gates. These OR gates encode the four inputs with two bits. Octal to binary encoder is nothing but 8 to 3 encoder. We can implement the above Boolean functions by using four input OR gates. The above circuit diagram contains three 4-input OR gates. These OR gates encode the eight inputs with three bits. Decimal to bcd priority encoder k map code#.