Electronics UNIT I & II Q&A
Electronics UNIT I & II Q&A
2 Marks
𝐴 + 𝐵 = 𝐴. 𝐵
𝐴. 𝐵 = 𝐴 + 𝐵
6. Distinguish between a half adder and a full adder.
5 Marks
1. What is a logic gate? With neat logic diagrams and truth tables, show that NAND
gate may be used as OR, NOR, EX-OR and EX-NOR logic gates.
A logic gate is a device that performs a Boolean function on binary inputs to produce a binary
output. The NAND gate is a logic gate that can be used to implement any Boolean function,
including OR, NOR, EX-OR, and EX-NOR. This is because the NAND gate is a combination of
an AND gate and a NOT gate, and is also known as a universal gate.
2. 𝒀 = 𝑨. 𝑩
3. OR Gate using NAND Gate
4. 𝒀=𝑨+𝑩
5. EX-OR Gate using NAND Gate
6.
7. Prove that (A + C) (AD + AD’) + AC + C = A + C and also show that A + CB = (A +
B) (A + C) using Boolean’s laws.
Here we perform two operations Sum and Carry, thus we need two K-maps one for each to
derive the expression.
Logical Expression
For Sum
Sum = A XOR B
For Carry
Carry = A AND B
Implementation
Logic equation -
𝐴. 𝐵 = 𝐴 + 𝐵
Proof -
In the circuit shown in the above figure, Q0(LSB) will toggle for every clock pulse because JK
flip-flop works in toggle mode when both J and K are applied 1, 1, or high input. The following
counter will toggle when the previous one changes from 1 to 0.
Truth Table is as follows:
The 3-bit ripple counter used in the circuit above has eight different states, each one of which
represents a count value.
12. Draw the logic circuit for Y = ABC + AB’C and simplify the equation with Boolean
algebra and draw the simplified logic circuit.
Y=ABC+AB′CY=ABC+AB′C
=AC(B+B′)=AC(B+B′)
=AC(1)
13. Explain how AND gate, OR gate and EXOR gate can be obtained from NOR logic
gate.
10 Marks
1. Describe the function of a Full Adder and obtain expressions for the SUM and the
CARRY output.
Full Adder is the adder which adds three inputs and produces two outputs. The first two
inputs are A and B and the third input is an input carry as C-IN. The output carry is
designated as C-OUT and the normal output is designated as S which is SUM. A full adder
logic is designed in such a manner that can take eight inputs together to create a byte-wide
adder and cascade the carry bit from one adder to the another.
Full Adder Truth Table:
CARRY = (A B)C+AB
2. Show that NAND and NOR as universal logic gate.
A universal gate, such as a NOR gate and NAND gate, can perform any Boolean
function independently. This means these gates can form any logical Boolean expression on
their own, simplifying circuit design.
In practice, this is advantageous since NOR and NAND gates are economical and easier to
fabricate than other logic gates. So much so that an AND gate is typically implemented as a
NAND gate followed by an inverter (not the other way around)! Similarly, an OR gate is
typically realised as a NOR gate followed by an inverter.
NAND Gate As A Universal Gate
The below diagram is of a two-input NAND gate. The first part is an AND gate and the second
part is a dot after it represents a NOT gate.
In a NAND gate, the inputs initially pass through an AND gate. The output is then inverted,
resulting in the final output. Now we will look at the truth table of NAND gate.
We will consider the truth table of the above NAND gate i.e. a two-input NAND gate. The two
inputs are A and B.
Now we will see how this gate can be used to make other gates.
This is the circuit diagram of a NAND gate used to make work like a NOT gate, the original
logic gate diagram of NOT gate is given besides the circuit diagram below.
The above diagram is of an OR gate made from combinations of NAND gates, arranged in a
proper manner. The truth table of an OR gate is also given beside the diagram.
Now we will see the design of an AND gate from NAND gates.
The above diagram is of an AND gate made from NAND gate. So we can see that all the three
basic gates can be made by only using NAND gates, that’s why this gate is called Universal
Gate, and it is appropriate.
NOR Gate As A Universal Gate
Similar to the NAND gate, the NOR gate can also independently form the three basic gates:
AND, OR, and NOT.
The above diagram is of an OR gate made by only using NOR gates. The output of this gate is
exactly similar to that of a single OR gate. We can see the circuit arrangement of OR gate using,
NOR gate is similar to that of AND gate using NAND gates.
The above diagram as the name suggests is of AND gate using only NOR gate, again we can see
that the circuit diagram of AND gate using only NOR gate is exactly similar to that of OR gate
using only NAND gates. Now we will finally see how we can make a NOT gate by using only
NOR gates.
The above diagram is of a NOT gate made by using a NOR gate. The circuit diagram is similar
to that of NOT gate made by using only NAND gate. As demonstrated, the NOR gate alone can
configure AND, OR, and NOT gates, affirming its universal gate status.
The sum is for the least significant bit (LSB) and carry is for the most significant bit (MSB).
By solving this,
S= A’B + AB’
This Boolean expression helps us to design a half adder with an XOR Gate and AND gate.
Full Adder is the adder which adds three inputs and produces two outputs. The first two
inputs are A and B and the third input is an input carry as C-IN. The output carry is
designated as C-OUT and the normal output is designated as S which is SUM. A full adder
logic is designed in such a manner that can take eight inputs together to create a byte-wide
adder and cascade the carry bit from one adder to the another.
2 Marks
5 Marks
In this diagram, we can see that the clock pulse (CLK) is applied to all the flip-flops
simultaneously. Therefore, it is a Synchronous Counter. Also, here we use Overriding input
(ORI) for each flip-flop. Preset (PR) and Clear (CLR) are used as ORI. When PR is 0, then the
output is 1. And when CLR is 0, then the output is 0. Both PR and CLR are active low signal that
always works in value 0.
PR = 0, Q = 1
CLR = 0, Q = 0
These two values are always fixed. They are independent of the value of input D and the Clock
pulse (CLK). Working – Here, ORI is connected to Preset (PR) in FF-0 and it is connected to
Clear (CLR) in FF-1, FF-2, and FF-3. Thus, output Q = 1 is generated at FF-0, and the rest of the
flip-flop generates output Q = 0. This output Q = 1 at FF-0 is known as Pre-set 1 which is used to
form the ring in the Ring Counter.
This Preseted 1 is generated by making ORI low and that time Clock (CLK) becomes don’t care.
After that ORI is made to high and apply low clock pulse signal as the Clock (CLK) is negative
edge triggered. After that, at each clock pulse, the preseted 1 is shifted to the next flip-flop and
thus forms a Ring. From the above table, we can say that there are 4 states in a 4-bit Ring
Counter.
4 states are:
1000
0100
0010
0001
In this way can design a 4-bit Ring Counter using four D flip-flops.
D Flip Flop
D flip flop is an electronic device that is known as “delay flip flop” or “data flip flop” which
is used to store single bit of data. D flip flops are synchronous or asynchronous. The clock single
required for the synchronous version of D flip flops but not for the asynchronous one. The D flip
flop has two inputs, data and clock input which controls the flip flop. when clock input is high, the
data is transferred to the output of the flip flop and when the clock input is low, the output of the
flip flop is held in its previous state.
Working of D Flip Flop
D flip flop consist of a single input D and two outputs (Q and Q’). The basic working of D Flip
Flop is as follows:
When the clock signal is low, the flip flop holds its current state and ignores the D input.
When the clock signal is high, the flip flop samples and stores D input.
The value that was previously fed into the D input is reflected at the flip flop’s Q output.
o If D = 0 then Q will be 0.
o If D = 1 then Q will be 1.
The Q’ output of the flip flop is complemented by the Q output.
o If Q = 0 then Q’ will be 1.
o If Q = 1 then Q’ will be 0.
3. Difference between Synchronous and Asynchronous Counter.
4. Draw the logic circuit for J.K. flip flop and explain its function.
In the circuit shown in the above figure, Q0(LSB) will toggle for every clock pulse because JK
flip-flop works in toggle mode when both J and K are applied 1, 1, or high input. The following
counter will toggle when the previous one changes from 1 to 0.
Truth Table is as follows:
The 3-bit ripple counter used in the circuit above has eight different states, each one of which
represents a count value. Similarly, a counter having n flip-flops can have a maximum of 2 to the
power n states. The number of states that a counter owns is known as its mod (modulo) number.
Hence a 3-bit counter is a mod-8 counter. A mod-n counter may also be described as a divide-by-
n counter. This is because the most significant flip-flop (the furthest flip-flop from the original
clock pulse) produces one pulse for every n pulses at the clock input of the least significant flip-
flop (the one triggers by the clock pulse). Thus, the above counter is an example of a divide-by-4
counter.
Timing diagram
Let us assume that the clock is negative edge triggered so the above the counter will act as an up
counter because the clock is negative edge triggered and output is taken from Q.
Counters are used very frequently to divide clock frequencies and their uses mainly involve digital
clocks and in multiplexing. The widely known example of the counter is parallel to serial data
conversion logic.
Advantages of Ripple Counter in Digital Logic
Can be easily designed by T flip-flop or D flip-flop.
Can be used in low speed circuits & divide by n-counters.
Used as Truncated counters to design any mode number counters (i.e. Mod 4, Mod 3)
Disadvantages of Ripple Counter in Digital Logic
Extra flip-flop is needed to do resynchronization.
To count the sequence of truncated counters, additional feedback logic is needed.
Propagation delay of asynchronous counters is very large, while counting the large number of
bits.
Counting errors may occur due to propagation delay for high clock frequencies.