






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







An encoder is a kind of combinational circuit which converts multiple input signal to a coded output signal in such a way that the output signal reassembles complete information which is fed at the input of the encoder. The encoder consists of ā2nā bits of input lines and ānā bits output lines. The circuit of an encoder is based on the operation of Boolean expressions.
8 to 3-bit priority encoder is an encoder that consists of 8 input lines and 3 output lines. It can also be called an Octal to a binary encoder. Each input line has a base value of 8 (octal) and each output has a base value of 2 (binary).
The truth table below gives us an idea of the operation of the 8 to 3-bit Priority Encoder.
Inputs Outputs D7 D6 D5 D4 D3 D2 D1 D0 Q2 Q1 Q 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 X 0 0 1 0 0 0 0 0 1 X X 0 1 0 0 0 0 0 1 X X X 0 1 1 0 0 0 1 X X X X 1 0 0 0 0 1 X X X X X 1 0 1 0 1 X X X X X X 1 1 0 1 X X X X X X X 1 1 1
Logical Expression for Output lines
ļ· Q0 = D1 + D3 + D5 + D
Figure 1. Basic Structural Diagram
The above Fig.1 shows the rough circuitry of the 8 to 3-bit Priority Encoder. In this project, basic circuitry of 8 to 3 priority encoder is being used, followed by DACs and ADCs for the simulation purpose. There are three 4 input OR gates which perform the OR operation, as mentioned above in the logical expressions.
Figure 2. Final Schematic diagram
Ngspice plots:
Figure 6. Ngspice waveform of all 8 input pulses
Figure 7. Ngspice waveform of all 3 outputs
Ngspice plots for individual output lines:
Figure 8 .Output (Q0)
Figure 11. Q0 = D1 + D3 + D5 + D
Figure 12. Python plot of Q0 (D1, D3, D5, D7)
Figure 14. Q1 = D2 + D3 + D6 + D
Figure 13. Python plot of Q1 (D2, D3, D6, D7)
Ngspice waveforms of all Inputs:
Python plots of all Inputs: