Professional Documents
Culture Documents
Q.1 Draw The Circuit Diagram Of Logic Gates And Verify The Truth Table.
The different types of logic gates and symbols with truth tables are discussed
below.
AND GATE
OR GATE
NOT GATE
NAND GATE
NOR GATE
EXCLUSIVE- OR GATE
Q.2 REALIZATION OF AND, OR, NOT AND EX-OR LOGIC GATES USING NAND AND NOR
GATE.
The simplest way to convert a Boolean expression into a logical circuit is to follow the reverse
approach in which we start from the output of the Boolean expression and reach towards the
input.
Solution:
To realize this using the AOI logic gates, we will use the reverse approach.
Step 1:
Now, BC and (A + C) both are inverted in nature, so they must have been inverted using a NOT
Gate earlier. BC must have been obtained by inverting the input BC and (A + C) must have
been obtained by inverting the input (A + C) both using the NOT Gate.
Step 3:
Moving further, in the reverse direction we see, BC must have been an output of 2-input AND
Gate with inputs as B and C. Likewise, (A + C) must have been obtained as the output of 2-
input OR gate with A and C as the inputs.
So, Final Logic Diagram for above given Boolean expression can be drawn as,
Q.4 IMPLEMENT AND VERIFY TRUTH TABLE OF HALF AND FULL ADDER.
HA Functional Diagram
0+0 = 0
0+1 = 1
1+0 = 1
1+1 = 10
Sum= A XOR B
Carry = A AND B
HA Logical Diagram
And an equivalent expression in terms of the basic AND, OR, and NOT is:
SUM=A.B+A.B’
Full Adder
This adder is difficult to implement when compared to half-adder.
The difference between a half-adder and a full-adder is that the full-adder has three inputs and
two outputs, whereas half adder has only two inputs and two outputs. The first two inputs are A
and B and the third input is an input carry as C-IN. When a full-adder logic is designed, you
string eight of them together to create a byte-wide adder and cascade the carry bit from one
adder to the next.
FA Truth Table
One of these 4 inputs will be connected to the output based on the combination of inputs present
at these two selection lines. Truth table of 4x1 Multiplexer is shown below.
S1 S0 Y
0 0 I0
0 1 I1
1 0 I2
1 1 I3
The single input ‘I’ will be connected to one of the four outputs, Y 3 to Y0 based on the
values of selection lines s1 & s0. The Truth table of 1x4 De-Multiplexer is shown below.
S1 S0 Y3 Y2 Y1 Y0
0 0 0 0 0 I
0 1 0 0 I 0
1 0 0 I 0 0
1 1 I 0 0 0
From the above Truth table, we can directly write the Boolean functions for each output
as
Y3=s1s0IY3=s1s0I
Y2=s1s0′IY2=s1s0′I
Y1=s1′s0IY1=s1′s0I
Y0=s1′s0′IY0=s1′s0′I
2-to-4-Decoder Circuit
As a decoder, this circuit takes an n-bit binary number and generates an output on one of the 2n output
lines. It is therefore usually described by the number of addressing i/p lines & the number of data o/p
lines. Typical decoder ICs might include two 2-4 line circuits, a 3-8 line circuit, or a 4-16 line
decoder circuit. One exclusion to the binary character of this circuit is the 4-10 line decoders, which is
proposed to alter a Binary Coded Decimal (BCD) input to a 0-9 range output.
If you employ this circuit as a decoder, you may want to insert data latches at the o/ps to keep every
signal while the others are being conveyed. But, this doesn’t relate when you are using this circuit as a
decoder, then you will want just a single active o/p to equal the input code.
2 to 4 Line Decoder Truth Table
In this type of decoders, decoders have two inputs namely A0, A1, and four outputs denoted by D0, D1,
D2, and D3. As you can see in the following truth table – for every input combination, one o/p line is
turned on.
Applications of Decoder
The applications of decoder involve in the making of various electronic projects.
War- Field -Flying Robot with a Night Vision Flying Camera
Robotic Vehicle with Metal Detector
RF-based Home Automation System
Speed Synchronization of Multiple Motors in Industries
Automatic Wireless Health Monitoring System in Hospitals for Patients
Secret Code Enabled Secure Communication using RF Tec.
4 : 2 Encoder –
The 4 to 2 Encoder consists of four inputs Y3, Y2, Y1 & Y0 and two outputs A1 & A0.
At any time, only one of these 4 inputs can be ‘1’ in order to get the respective binary
code at the output. The figure below shows the logic symbol of 4 to 2 encoder :