Professional Documents
Culture Documents
Analog and Digital Electronics
Analog and Digital Electronics
Analog and Digital Electronics
CREDITS 04
Recall and Recognize construction and characteristics of JFETs and MOSFETs and differentiate with
BJT
Demonstrate and Analyze Operational Amplifier circuits and their applications
Describe, Illustrate and Analyze Combinational Logic circuits, Simplification of Algebraic Equations
using Karnaugh Maps and Quine McClusky Techniques.
Describe and Design Decoders, Encoders, Digital multiplexers, Adders and Subtractors, Binary
comparators, Latches and Master-Slave Flip-Flops.
Describe, Design and Analyze Synchronous and Asynchronous Sequential
Explain and design registers and Counters, A/D and D/A converters.
Module -1 Teaching
Hours
The Basic Gates: Review of Basic Logic gates, Positive and Negative Logic, Introduction
to HDL. Combinational Logic Circuits: Sum-of-Products Method, Truth Table to
10 Hours
Karnaugh Map, Pairs Quads, and Octets, Karnaugh Simplifications, Dont-care Conditions,
Product-of-sums Method, Product-of-sums simplifications, Simplification by Quine-
McClusky Method, Hazards and Hazard covers, HDL Implementation Models.
Text book 2:- Ch 2: 2.4, 2.5. Ch3: 3.2 to 3.11.
Module 3
1|Page
Data-Processing Circuits: Multiplexers, Demultiplexers, 1-of-16 Decoder, BCD to
Decimal Decoders, Seven Segment Decoders, Encoders, Exclusive-OR Gates, Parity
10 Hours
Generators and Checkers, Magnitude Comparator, Programmable Array Logic,
Programmable Logic Arrays, HDL Implementation of Data Processing Circuits. Arithmetic
Building Blocks, Arithmetic Logic Unit Flip- Flops: RS Flip-Flops, Gated Flip-Flops,
Edge-triggered RS FLIP-FLOP, Edge-triggered D FLIP-FLOPs, Edge-triggered JK FLIP-
FLOPs.
Text book 2:- Ch 4:- 4.1 to 4.9, 4.11, 4.12, 4.14.Ch 6:-6.7, 6.10.Ch 8:- 8.1 to 8.5.
Module-4
2|Page
Question paper pattern:
The question paper will have ten questions.
There will be 2 questions from each module.
Each question will have questions covering all the topics under a module.
The students will have to answer 5 full questions, selecting one full question from each module.
Text Books:
1. Anil K Maini, Varsha Agarwal: Electronic Devices and Circuits, Wiley, 2012.
2. Donald P Leach, Albert Paul Malvino & Goutam Saha: Digital Principles and Applications, 8th
Edition, Tata McGraw Hill, 2015
Reference Books:
1. Stephen Brown, Zvonko Vranesic: Fundamentals of Digital Logic Design with VHDL, 2nd Edition, Tata
McGraw Hill, 2005.
2. R D Sudhaker Samuel: Illustrative Approach to Logic Design, Sanguine-Pearson, 2010.
3. M Morris Mano: Digital Logic and Computer Design, 10th Edition, Pearson, 2008.
3|Page
Analog and Digital Electronics 15CS32
Module 1
Field Effect Transistors
1. Find the values of resistors Rb, Rc, Re and the transistor gain , for the
circuit. Ib=40A, Ic=4mA, Ve=2V, Vce=12V, Vcc=15V. Assume that the
transistor used in the circuit is a silicon transistor.(10 marks) (July 2016)
2. Find the values of resistance RB, RC, RE and transistor gain , for the
circuit shown in Fig. Q1.c Given that IB = 40 A, IC = 4mA, VE = 2V,
VCE = 12V and supply voltage VCC = 15V. Assume the transistor used in
circuit is a silicon transistor. (4 marks) (Dec 2015)
3. Determine the value of the resistors Re and Rc for the circuit shown in
figure given that R1=5K , R2=1K , =200, Vceq=5v and Iceq=2mA for the
silicon made transistor. (8 marks) (Dec 2014)
The graphic symbols for the n-channel and p-channel JFETs are provided in Fig.
Note that the arrow is pointing in for the n-channel device of Fig to represent the
direction in which IG would flow if the p-n junction were forward-biased. The
level of VGS that results in ID _ 0 mA is defined by VGS _ VP, with VP being a
negative voltage for n-channel devices and a positive voltage forp-channel
JFETs.On most specification sheets the pinch-off voltage is specified as
VGS(off) rather than VP. A specification sheet will be reviewed later in the
chapter when the primary elements of concern have been introduced.
A CMOS circuit is composed of two MOSFETs. The top FET (MP) is a PMOS type
device while the bottom FET (MN) is an NMOS type. The body effect is not present in
either device since the body of each device is directly connected to the devices
source. Both gates are connected to the input line. The output line connects to the
drains of both FETs.
internally and a common terminal, called the gate terminal, is brought out. Ohmic
contacts (direct electrical connections) are made at the two ends of the channelone
lead is called the Source terminal S and the other Drain terminal D.
The silicon bar behaves like a resistor between its two terminals D and S. The gate
terminal is analogous to the base of an ordinary transistor (BJT). It is used to control
the flow of current from source to drain. Thus, source and drain terminals are
analogous to emitter and collector terminals respectively of a BJT. In the figure below,
the gate is P-region, while the source and the drain are N-regions. Because of this, a
JFET is similar to two diodes. The gate and the source form one of the diodes, and the
drain form the other diode. These two diodes are usually referred as the gate-source
diode and the gate-drain diode. Since JFET is a silicon device, it takes only 0.7 volts
for forward bias to get significant current in either diode.
the positive half cycle of AC emitter current is elongated and the negative half cycle is
compressed, this stretching and compressing of alternate half cycles is called
distortion. One way to reduce distortion is by keeping the AC base voltage small, when
the signal is small, the changes in ac emitter current are almost directly proportional to
the changes in AC base voltage
8. What are the differences between JFET & MOSFET. (2 Marks)(Dec 2015)
MOSFET: It can be operated in both depletion & enhancement mode. E MOSFET are
operated only in enhancement mode. Input resistance is high of order tera ohms, It has
low drain resistance, leakage current is small of nano amperes and easier to construct,
whereas for an JFET: It operates in depletion mode only, Input resistance is low of
giga ohms, has high drain resistance of 100Kohms, leakage current is high of micro
amperes and difficult in construction.
9. Explain with neat sketches the operation and characteristics of N-channel DE-
MOSFET(8 Marks) (Dec 2014)
Figure shows the construction of N-channel depletion MOSFET. It consists of a highly
doped P-type substrate into which two blocks of heavily doped N-type material are
diffused forming the source and drain. An N-channel is formed by diffusion between
the source and drain. The type of impurity for the channel is the same as for the source
and drain. Now a thin layer of SiO2 dielectric is grown over the entire surface and
holes are cut through the SiO2 (silicon-dioxide) layer to make contact with the N-type
blocks (Source and Drain). Metal is deposited through the holes to provide drain and
source terminals, and on the surface area between drain and source, a metal plate is
deposited. This layer constitutes the gate. Si02 layer results in an extremely high input
impedance of the order of 1010 to 1015 Q for this area. The chip area of a MOSFET is
typically 0.003 um2 or less which is about only 5% of the area required by a BJT. A P-
channel DE-MOSFET is constructed like an N-channel DE-MOSFET, starting with an
N-type substrate and diffusing P-type drain and source blocks and connecting them
internally by a P-doped channel region. The working principle of MOSFET depends
up on the MOS capacitor. The MOS capacitor is the main part. The semiconductor
surface at below the oxide layer and between the drain and source terminal can be
inverted from p-type to n-type by applying a positive or negative gate voltages
respectively.
10. Explain with neat diagram: i) Peak detector circuit ii) Absolute value circuit
and their working.(10 Marks)(July 2015)
Peak detector circuit produces a voltage at the output equal to peak amplitude
(positive or negative) of the input signal. It is a clipper circuit with a parallel resistor-
capacitor connected at its output. The clipper here reproduces the positive half cycles.
During this period, the diode D1 is forward-biased. The capacitor rapidly charges to the
positive peak from the output of the opamp.
Module-2
The Basic gates
1. What are Universal gates? Implement the basic gates using Universal gates only.
(June / July 16) 8 Marks
,A universal gate is a gate which can implement any Boolean function without need to use any other
gate type. The NAND and NOR gates are universal gates
Implementing an Inverter Using only NAND Gate
The figure shows two ways in which a NAND gate can be used as an inverter (NOT gate).
1. All NAND input pins connect to the input signal A gives an output A.
2. One NAND input pin is connected to the input signal A while all other input pins are connected
to logic 1. The output will be A.
An AND gate can be replaced by NAND gates as shown in the figure (The AND is replaced by a
NAND gate with its output complemented by a NAND gate inverter).
An OR gate can be replaced by NAND gates as shown in the figure (The OR gate is replaced by a
NAND gate with all its inputs complemented by NAND gate inverters).
Thus, the NAND gate is a universal gate since it can implement the AND, OR and NOT functions.
To prove that any Boolean function can be implemented using only NOR gates, we will show that
the AND, OR, and NOT operations can be performed using only these gates.
The figure shows two ways in which a NOR gate can be used as an inverter (NOT gate).
An OR gate can be replaced by NOR gates as shown in the figure (The OR is replaced by a NOR gate
with its output complemented by a NOR gate inverter)
An AND gate can be replaced by NOR gates as shown in the figure (The AND gate is replaced by a
NOR gate with all its inputs complemented by NOR gate inverters)
2 .Using Karnaugh Map,simplify the following boolean expression and give the
implementation of the same using i)NAND gates only(SOP) ii) NOR gates only (POS )
CD CD CD CD
AB 1 1 1
AB 1 1
AB 1 1
AB X X
F(A,B,C,D) = CD + AC + AD + BD
4 .Define: i) Rise time ii) Fall time iii) Period and iv) Frequency.
(July 15), (Dec 15) (8 Marks)
i) A rising edge is the transition from low to high. It is also named positive edge. When
a circuit is rising edge-triggered, it becomes active when its clock signal goes from
low to high, and ignores the high-to-low transition.
ii) A falling edge is the high to low transition. It is also known as the negative edge.
iii) For each dot, "f" is the frequency in hertz (Hz) meaning the number of times per
second (i.e. cycles per second) that it flashes while "T" is the flashes'
iv) period in seconds (s), meaning the number of seconds per cycle. Each T and f are
reciprocal.
5.What is an universal gate? List the Universal gates and prove their universalities.
(July 15) (6 Marks)
Universal Gates are : NAND ,NOR
6.Write the verilog code for given expression. Y=AB+CD (July 15) (6Marks)
// Verilog code for AND-OR-INVERT gate module
AOI (input A, B, C, D, output F);
/* start of a block comment
wire F; wire AB,
CD, O; assign AB =
A & B; assign CD
= C & D; assign O =
AB | CD; assign F
= ~O;
end of a block comment */
// Equivalent...
wire AB = A & B;
wire CD = C & D;
wire O = AB | CD;
wire F = ~O; endmodule
// end of Verilog code
7.Using Karnaugh Map,simplify the following boolean expression and give the
implementation of the same using i)NAND gates only(SOP) ii) NOR gates only
(POS )
a.F(w,x,y,z)=m(0,1,2,4,5,12,14)+dc(8,10) (Dec 14 / Jan 15) 10 Marks
CD CD CD CD
AB 1 1 1
AB 1 1
AB 1 1
AB X X
F(A,B,C,D) = CD + AC + AD + BD
8.Mention the Universal gates? Implement with respect to the basic gates.
(Dec 14 / Jan 15) 10 Marks Universal Gates are : NAND ,NOR
Positive Logic: With reference to positive logic, logical 1 state is the most positive logic
or voltage level and logic 0 state is the most negative logic or voltage level. In other
words, active high level is 1 and active low level is 0. For instance, V(0) = 0V and V(1) =
5V, V(0) = 5V and V(1) = 15V.
Negative Logic: With reference to negative logic, logic 0 state is the most positive logic
or voltage level and logic 1 state is the most positive logic or voltage level. In other
words, active high level is 0 and active low level is 1. For instance, V(0) = 5V and V(1) =
0V, V(0) = 15V and V(1) = 5V.
An Analog signal is any continuous signal for which the time varying feature (variable)
of the signal is a representation of some other time varying quantity, i.e., analogous to
another time varying signal. It differs from a digital signal in terms of small fluctuations
in the signal which are meaningful.
A digital signal uses discrete (discontinuous) values. By contrast, non-digital (or analog)
systems use a continuous range of values to represent information. Although digital
representations are discrete, the information represented can be either discrete, such as
numbers or letters, or continuous, such as sounds, images, and other measurements of
continuous systems.
Comparison chart
Analog Digital
00 0 0 0 0
01
11 x 1 1 1
10 1 1 x x
ans: y=B
0 x 0 0
12.What is hazard? List the types of hazards and explain static_0 and static-1 hazards.
(July 15) (5 Marks)
Static 1 hazard
The delay in the gates, the output Z would be constant at 1.The spike is due to the gate delay and the
fact that not every path from on input to the output is the same length
The static 0
hazard is caused by two OR gates where one holds the output zero before the transition and the
other after the transition, and it is possible for them to both be 1 during the transition The fix is to
put in an extra OR gate to hold the output zero during the transition
This expression says that the output function f will be 1 for the minterms 4,8,10,11,12 and 15 (denoted
by the 'm' term). But it also says that we don't care about the output for 9 and 14 combinations
(denoted by the 'd' term). ('x' stands for don't care).
ABCDf
m0 0 0 0 0 0
m1 0 0 0 1 0
m2 0 0 1 0 0
m3 0 0 1 1 0
m4 0 1 0 0 1
m5 0 1 0 1 0
m6 0 1 1 0 0
m7 0 1 1 1 0
m8 1 0 0 0 1
m9 1 0 0 1 x
m10 1 0 1 0 1
m11 1 0 1 1 1
m12 1 1 0 0 1
m13 1 1 0 1 0
m14 1 1 1 0 x
m15 1 1 1 1 1
One can easily form the canonical sum of products expression from this table, simply by summing
the minterms(leaving out don't-care terms) where the function evaluates to one:
which is not minimal. So to optimize, all minterms that evaluate to one are first placed in a minterm
table. Don't-care terms are also added into this table, so they can be combined with minterms:
m4 0100
1
m8 1000m9
1001
2 m10 1010
m12 1100
m11 1011
3
m14 1110
4 m15 1111
At this point, one can start combining minterms with other minterms. If two terms vary by only a single
digit changing, that digit can be replaced with a dash indicating that the digit doesn't matter. Terms that
can't be combined any more are marked with a "*". When going from Size 2 to Size 4, treat '-' as a third
bit value. For instance, -110 and -100 or -11- can be combined, but 110 and 011- cannot. (Trick: Match
up the '-' first.)
4 m15 1111 -- --
Note: In this example, none of the terms in the size 4 implicants table can be combined any further.
Be aware that this processing should be continued otherwise (size 8 etc.).
None of the terms can be combined any further than this, so at this point we construct an
essential prime implicant table. Along the side goes the prime implicants that have just been
generated, and along the top go the minterms specified earlier. The don't care terms are not
placed on top - they are omitted from this section because they are not necessary inputs.
4810111215=>ABCD
m(4,12)* X X =>-100
m(8,10,12,14) XX X
m(10,11,14,15)* XX X=>1-1-
To find the essential prime implicants, we run along the top row. We have to look for columns
with only 1 star. If a column has only 1 star, this means that the minterm can only be covered by
1 prime implicant. This prime implicant isessential. For example: in the first column, with
minterm 4, there is only 1 star. This means that m(4,12) is essential. So we place a star next to it.
Minterm 15 also only has 1 star. This means that m(10,11,14,15) is also essential. Now all
columns with 1 star are covered.
The second prime implicant can be 'covered' by the third and fourth, and the third prime
implicant can be 'covered' by the second and first, and neither is thus essential. If a prime
can combine the essential implicants with one of the two non-essential ones to yield one
equation:
Both of those final equations are functionally equivalent to the original, verbose equation:
14. Find the prime implicant with the help of Qunie-Mc Clusky Method.
F(W,X,Y,Z) = m(1,3,6,7,8,9,10,12,13,14) (Dec 14/Jan 15) ) (10 Marks)
No WXYZ Index
1 0001 1
3 0011 2
6 0110 2
7 0111 3
8 1000 1
9 1001 2
10 1010 2
12 1100 2
13 1101 3
14 1110 3
13 1101 3
14 1110 3
No WXYZ Index
1 0001 1
8 1000 1
3 0011 2
6 0110 2
9 1001 2
10 1010 2
12 1100 2
7 0111 3
13 1101 3
14 1110 3
No WXYZ Index
1,3 00_1 2
1,9 _001 2
8,9 100_ 2
8, 10 10_0 2
8,12 1_00 2
3,7 0_11 3
6,7 011_ 3
6,14 _110 3
9,13 1_01 3
10,14 1_10 3
12,13 110_ 3
12,14 11_0 3
15.Does circuit in below figure experience hazard? If so, verify the same with timing diagram
Explain the significance of Demorgans theorem
(Dec 14 / Jan 15) 10 Marks
The Comparison of TTL and CMOS is clearly illustrated in the following table as an example of
differences in the logic families:
TTL CMOS
Integration Levels:
The devices greatly differ in the density of fabrication ie the levels of integration used.Depending
on the number of transistors/diodes/gates used in the chip they are broadly classified as :
256KB memory
DS processor
8 MB memory
Image processor
19.Prove that ABC + ABC' + AB'C + A'BC = AB + AC + BC. (Dec 15) 10 Marks
ABC + ABC' + AB'C + A'BC
=AB(C + C') + AB'C + A'BC
=AB + AB'C + A'BC =A(B + B'C) + A'BC
=A(B + C) + A'BC
=AB + AC + A'BC
=B(A + C) + AC
=AB + BC + AC
=AB + AC +BC ...Proved
20.Find the prime implicant with the help of Qunie-Mc Clusky Method.
F(W,X,Y,Z) = m(1,3,6,7,8,9,10,12,13,14) (July 16) 10 Marks
0 wxyzwx 0000 0
yzw
2 xyz 0010 1
wxy
3 0011 2
zwx
4 yzw 0100 1
xyz
8 wxy 1000 1
zwx
10 yzw 1010 2
xyz
12 1100 2
13 1101 3
14 1110 3
0 0000 Index 0
2 0010
4 0100 Index 1
8 1000
3 0011
10 1010 Index 2
12 1100
13 1101
14 1110 Index 3
Wxyz index
0.2 000
0,4 000
0,8 - 000
001
2,3
- 010
2,10
- 100
4,12 100
8,10 100
8,12 110
10,14 110
12,13 11-0
12,14
wxyz
(0, 2, 8, 10) __ 0 __ 0
F(w,x,y,z)=x z + y z +w z+w x y +w x z
F(W,X,Y,Z)= M(0,1,2,5,7,8,9,10,13,15)
A=X Y , B= X Z C= Y Z D= X Z
P = (A+B)(A+C) (B)(C+D)(D)(A+B)(A+C)(B)(C+D)(D)
F1(W,X,Y,Z)= ABD =X Y +X Z +X Z
F2(W,X,Y,Z) = BCD = X Z + Y Z +X Z
21.Define impliant. Explain prime and essential prime implicants with example.
(July 16)10 Marks
In Boolean logic, an implicant is a "covering" (sum term or product term) of one or more
minterms in a sum of products (or maxterms in a product of sums) of a boolean function.
Formally, a product termP in a sum of products is an implicant of the Boolean functionF if
PimpliesF. More precisely:
P implies F (and thus is an implicant of F) if F also takes the value 1 whenever P equals
1.
where xF is a Boolean function of n
variables.
xP is a product term.
A prime implicant of a function is an implicant that cannot be covered by a more
general (more reduced - meaning with fewer literals) implicant. W.V. Quine defined a
prime implicant of F to be an implicant that is minimal - that is, the removal of any
literal from P results in a non-implicant for F.
Essential prime implicants are prime implicants that cover an output of the function
that no combination of other prime implicants is able to cover.
Using the example above, one can easily see that while (and others) is a prime
implicant, are not. From the latter, multiple literals can be removed to
make it prime: x, and can be removed, yielding . xAlternatively, and can be
removed, yielding .
x Finally, and can be removed, yielding .
Module-3
Data-Processing Circuits
2.Realize the following function using the 3:8 decoder .F1(A,B,C) = m(1,2,4,5), F2(A,B,C)
= m(1,5,7) (July 15) (6 Marks)
significant digits.
If the two digits are equal, we compare the next lower significant pair of digits. The
comparison continues until a pair of unequal digits is reached
4.Implement 4:1 mux using 2:1 mux (Dec 14 /Jan 15) 10 Marks
5.What is a Multiplexer. Design a 4:1 multiplexer using gate. (Dec 14 /Jan 15) 10
Marks
A multiplexer (or MUX) is a device that selects one of several analog or digital input
signals and forwards the selected input into a single line. A multiplexer of 2n inputs has n
select lines, which are used to select which input line to send to the output.Multiplexers are
mainly used to increase the amount of data that can be sent over the network within a
certain amount of time and bandwidth. A multiplexer is also called a data selector. They
are used in CCTV, and almost every business that has CCTV fitted, will own one of these.
6.Explain the 8 word X 4 bit ROM with the help of block diagram. (July 14) 8 Marks
7.Explain the Implementation of Full adder using PLA (July 14) 6 Marks
9.Show that using a 3-to-8 decoder and multi input OR gate. The following Boolean
expression can be realized.F1(A,B,C) = m(1,2,4,5), F2(A,B,C) = m(1,5,7)
(Dec15 ) 10 Marks
significant digits.
If the two digits are equal, we compare the next lower significant pair of digits. The
comparison continues until a pair of unequal digits is reached
14. With a neat block diagram, explain the working of a Master-Slave Jk flip flop. Also
write its truth table. (July 15) (10 Marks)
All sequential circuits that we have seen in the last few pages have a problem (All level
sensitive sequential circuits have this problem). Before the enable input changes state
from HIGH to LOW (assuming HIGH is ON and LOW is OFF state), if inputs changes,
then another state transition occurs for the same enable pulse. This sort of multiple
transition problem is called racing.
If we make the sequential element sensitive to edges, instead of levels, we can overcome
this problem, as input is evaluated only during enable/clock edges.
In the figure above there are two latches, the first latch on the left is called master latch
and the one on the right is called slave latch. Master latch is positively clocked and slave
latch is negatively clocked.
15. Define: i)Flip flop ii) Hold time iii) Set up time iv)Characteristic
equation.
(July 15) (10 Marks)
16.Show how SR flip flop can be converted to a JK flip flop. (Dec 14 /Jan 15) 10 Marks
JK FF is modified version of
SR FF.
Due to feedback from output
to input AND Gate J=K=1 is
toggle condition for JK FF.
The output is complement
of the previous output.
17.Write HDL design of D and JK Flip flop (Dec 14 /Jan 15) 10 Marks //D
flip-flop
module D_FF (Q,D,CLK);
Dept. of CSE, SJBIT Page 40
Logic Design 10CS33
output Q;
input D,CLK;
reg Q;
always @(posedge CLK)
Q = D; endmodule module
JK_FF (J,K,CLK,Q,Qnot);
output Q,Qnot; input J,K,CLK;
reg Q; assign Qnot = ~ Q ;
always @(posedge CLK)
case({J,K}) 2'b00: Q = Q;
2'b01: Q = 1'b0;
2'b10: Q = 1'b1;
2'b11: Q = ~ Q;
endcase endmodule
18.With the help of neatdiagram explain the working of a Master Slave JK flip flop
(July 14) 10 Marks
All sequential circuits that we have seen in the last few pages have a problem (All level
sensitive sequential circuits have this problem). Before the enable input changes state
from HIGH to LOW (assuming HIGH is ON and LOW is OFF state), if inputs changes,
then another state transition occurs for the same enable pulse. This sort of multiple
transition problem is called racing.
If we make the sequential element sensitive to edges, instead of levels, we can overcome
this problem, as
input is evaluated
only during enable/clock
edges.
20.With the help of block diagram, explain the working of a JK Master-Slave flip flop.
(Dec15) 10 Marks
All sequential circuits that we have seen in the last few pages have a problem (All level
sensitive sequential circuits have this problem). Before the enable input changes state
from HIGH to LOW (assuming HIGH is ON and LOW is OFF state), if inputs changes,
then another state transition occurs for the same enable pulse. This sort of multiple
transition problem is called racing.
If we make the sequential element sensitive to edges, instead of levels, we can overcome
this problem, as input is evaluated only during enable/clock edges.
8.
In the figure above there are two latches, the first latch on the left is called master latch
and the one on the right is called slave latch. Master latch is positively clocked and slave
latch is negatively clocked.
9.
The circuit in which outputs depends on only present value of inputs. So it is possible to
describe each output as function of inputs by using Boolean expression. No memory
element involved. No clock input. Circuit is implemented by using logic gates. The
propagation delay depends on, delay of logic gates. Examples of combinational logic
circuits are : full adder, subtractor, decoder, codeconverter, multiplexers etc.
inputs Combinational
outputs
Logic Circuit
Sequential Circuits :
Sequential Circuit is the logic circuit in which output depends on present value of inputs
at that instant and past history of circuit i.e. previous output. The past output is stored by
using memory device. The internal data stored in circuit is called as state. The clock is
required for synchronization. The delay depends on propagation delay of circuit and
clock frequency. The examples are flip-flops, registers, counters etc.
inputs outputs
Combinational
Logic Circuit
Memory Device
24. Show how a D flip flop converted into JK flipflop (July 16) 6 Marks
D Flip Flop to JK Flip Flop
In this conversion, D is the actual input to the flip flop and J and K are the external inputs. J, K
and Qp make eight possible combinations, as shown in the conversion table below. D is
expressed in terms of J, K and Qp.
The conversion table, the K-map for D in terms of J, K and Qp and the logic diagram showing the
conversion from D to JK are given in the figure below.
Module-4
Flip-Flops
1.Draw the logic diagram of a 4-bit serial in serial out shift register using J-K flip flop
and explain. (July 15) (8 Marks)
The serial in/serial out shift register accepts data serially--that is, one bit at a time on a single
line. It produces the stored information on its output also in serial form. With four stages, this
register can store up to four bits of data; its-storage capacity is four bits.
2.Explain briefly serial adder with a neat sketch. (July 15) (8 Marks)
3.Write a verilog code for switched tail counter. (July 15) (4 Marks)
Verilog code for Johnson counter.
module jc (clk,reset,q);
input clk,reset; output
[3:0] q; reg [3:0]q;
always @ (negedge clk,negedge reset) if
(~reset)
q=4b0000;
else begin
q[0]<=~q[3];
q[1]<=q[0];
q[2]<= q[1];
q[3]<=q[2]; end
endmodule
4.Explain Johnson Counter with neat diagram and timing diagram
(Dec14 / Jan 15) 10 Marks
The switch-tail ring counter, also know as the Johnson counter, overcomes some of the
limitations of the ring counter. Like a ring counter a Johnson counter is a shift register fed back
on its' self. It requires half the stages of a comparable ring counter for a given division ratio. If
the complement output of a ring counter is fed back to the input instead of the true output, a
Johnson counter results. The difference between a ring counter and a Johnson counter is which
output of the last stage is fed back (Q or Q'). Carefully compare the feedback connection below
to the previous ring counter.
5.Write verilog code for Shift Register. (Dec14 / Jan 15) 10 Marks
module shftreg (s1,s0,Pin,lfin,rtin,A,CLK,Clr); input s1,s0; //Select inputs input lfin,
rtin; //Serial inputs input CLK,Clr; //Clock and Clear input [3:0] Pin; //Parallel
input output [3:0] A; //Register output reg [3:0] A; always @ (posedge CLK or
negedge Clr) if (~Clr) A = 4'b0000; else case ({s1,s0})
2'b00: A = A; //No change
2'b01: A = {rtin,A[3:1]}; //Shift right
2'b10: A = {A[2:0],lfin}; //Shift left
//Parallel load input
2'b11: A = Pin;
endcase
endmodule
F1 and F2 are the options for the connections of passive components according to the types of
multivibrator to design.
For example
8.Explain a 4 bit universal shift register in detail and give its timing diagram.
(Dec15) 10 Marks
9.With neat timing diagram, explain the working of a 4-bit SISO register.
(Dec15) 10 Marks
The serial in/serial out shift register accepts data serially--that is, one bit at a time on a single
line. It produces the stored information on its output also in serial form. With four stages, this
register can store up to four bits of data; its-storage capacity is four bits.
This data is outputted one bit at a time on each clock cycle in a serial format. It is important to
note that with this system a clock pulse is not required to parallel load the register as it is already
present, but four clock pulses are required to unload the data.
12. Design a 4 bit Johnson counters with sate table. (July 16)8 marks
0 0 0 0 0
1 1 0 0 0
4 1 1 1 1
5 0 1 1 1
6 0 0 1 1
7 0 0 0 1
13.Briefly explain 3-bit binary ripple up-counter. Also write the truth table and
waveform.
(July 15) (10 Marks)
14. Design a modulo-5 up counter (synchronous) using J-K flip flop. (July 15) (10 Marks)
1. Clock input is applied to LSB FF. The output 1. Clock input is common to all FF.
3. Speed depends on no. of FF used for n bit . 3. Speed is independent of no. of FF used.
17. Draw logic circuit diagram for 3-bit synchronous up-down counter with clear input, start
input and done output. The counter should produce done output after
completion of counter in either direction. (July 14.) 10 Marks
18. Draw the logic circuits and the excitation tables for the T, JK flip-flops.
19. Design a 3 bit synchronous counter with the help of D flip flop.
(Dec15) 10 Marks
20. Design a synchronous mod 6 up counter using JKflip flop (July 16 ) 10 Marks.
Design of Mod-6 Counter: To design the Mod-6 synchronous counter, contain six counter
states (that is, from 0 to 6). For this counter, the counter design table lists the three flip-flop and
their states as 0 to 6 and the 6 inputs for the 3 flip-flops. The flip-flop inputs essential to step up
the counter from the now to the next state is worked out along with the help of the excitation
table. The needed counter states and the J K inputs essential for counter flip- flops are specified
in the counter design table demonstrated in Table no.1.
A B C JA KA JB KB JC KC
count
0 0 0 0 1 X 0 X 0 X
1 1 0 0 X 1 1 X 0 X
2 0 1 0 1 X X 0 0 X
3 1 1 0 X 1 X 1 1 X
4 0 0 1 1 X 0 X X 0
5 1 0 1 X 1 0 X X 1
6(0) 0 0 0
21. Explain Digital clock with block Diagram. (July 16) 10 Marks
Module-5
Counters
Zxy y y xy
J2x, K2x, J1y2, K1y2
By substituting the FF inputs in characteristic equation, the next state of FF is obtained in terms
of
PS Excitation input Output Z
P QJQKQ
x=0, x=1
Q2 Q1 J2 K2 J1 S The characteristic
K1 x=0, 1 x=0, 1 of equation of JK FF is
(y2 y1) F
F
a
0 1 1 1 Q1J1Q1 K1Q1Q2
n
d Q2J2Q2 K2Q2x
1 1 1 0 e
xt
0 1 0 1 er
n
1 1 0 0 al
in
p
ut.
J1y2Q2, K1yQ 2 2
Q+ = f(X,Q) Z = g(X,Q)
Moore Model : In Moore Model the next state is function of external inputs and present
state. But the output is function of present state. It is not dependent on external inputs.
The no. of FFs required to implement circuit is more compared with Mealy Model,
Q+ = f(X,Q) Z = g(Q)
4. For the given state diagram, draw the state reduction diagram.
(Dec15) 10 Marks
5. With neat block diagram compare mealy model of sequential logic system.
(July 15) (8 Marks)
Mealy Model : In Mealy Model the next state is function of external inputs and present
state. The output is also function of external inputs and present state. The memory state
changes with master clock.
Q+ = f(X,Q) Z = g(X,Q)
6. Draw the ASM chart for vending machine problem using Mealy mlodel.
(July 15) (12 Marks)
7. For the given state diagram, draw the state reduction diagram.
(Dec14 / Jan 15) 10 Marks
Q+ = f(X,Q) Z = g(X,Q)
Moore Model : In Moore Model the next state is function of external inputs and present
state. But the output is function of present state. It is not dependent on external inputs.
The no. of FFs required to implement circuit is more compared with Mealy Model,
Q+ = f(X,Q) Z = g(Q)
Ans: By substituting the FF inputs in characteristic equation, the next state of FF is obtained in
terms of PS of FF and external input.
0 0 0 1 0 1 11
0 1 0 1 0 1 0 0
10 0 1 10 1 1
1 1 0 1 10 20 Q2J2Q2 K2Q2x
J1y2Q2, K1yQ 2 2
PS NS O/p Z
x=0 x=1
(y2) (y1)
0 0 A 0 0 A 1 0 C 1 1
0 1 B 0 0 A 1 0 C 0 0
1 0 C 0 1 B 1 1 D 1 1
1 1 D 0 1 B 1 1 D 1 0
0/1
A
1/1 0/0
1/0
D 0/1
B
1/0
1/1
0/1
C
10. Explain with logic diagram 3 bit simultaneous A/D converters. (July 16) 10 Marks
Also called the parallel A/D converter, this circuit is the simplest to understand. It is formed of a
series of comparators, each one comparing the input signal to a unique reference voltage. The
comparator outputs connect to the inputs of a priority encoder circuit, which then produces a
binary output. The following illustration shows a 3-bit flash ADC circuit:
Vref is a stable reference voltage provided by a precision voltage regulator as part of the converter
circuit, not shown in the schematic. As the analog input voltage exceeds the reference voltage at
each comparator, the comparator outputs will sequentially saturate to a high state. The priority
encoder generates a binary number based on the highest-order active input, ignoring all other
active inputs.
11. Explain with logic diagram Single-slope A/D converters ( July 16) 10 Marks
Consider the circuit of Figure 14.1. As the op-amps non-inverting input, V+, istied to
ground, by making use of the golden rules we find that there is a virtual ground at the
inverting input. As long as the circuits input is connected to Vref, the current in the
resistor is Vref/R. This being the case the charge on the capacitor is increasing linearly.
Assuming that the charge on the capacitor is initially zero, the voltage on the capacitor is
(a) A DAC that can provide number of different analog output values is called resolution.
(b) A DAC is which the ratio of change in output voltage resulting from a change of LSB (i.e. 1
least significant bit) at the digital inputs is known as resolution.
Where, Vo = Resolution x D
Vo = Output voltage
2. Accuracy: It is defined as the difference between the actual analog output and the
expected analog output when a given digital input is applied. It is expressed in percentage. In
ideal case,
3. Conversion Time or Setting Time: It is the time required for conversion of analog
signal into its digital equivalent. It is dependent on amplifiers output and switches response time.
4. Stability: When all the parameters such as gain, linearity error, monotonicity and offset
must be specified over the power supply ranges and full temperature then these parameters
represent the stability of the converter.
5. Monotonicity: If a converter does not miss any step backward during its entire range
stepped by a counter then it is said to have a counter having good monotonicity.
13. An 4 bit DIA converter has an output range of 0 to 1.5 V. Define its resolution.
(Dec15) 10 Marks
Ans. Give n = 4 = number of bits
14. Resolution:
Thus the output voltage can have 16 different values including zero.
15. Resolution:
Following fig. shows the D1A converter with op-amp. Calculate the output if the input digital
signal is 1110. Assume 1 binary = +5V.
B3 B2 B1 B0 1110
Let I1, I2 and I3 be the currents flowing through the respective resistors The value of currents
are:
As, the op-amp has a very high input impedance. Thus, the currents I0 to I3 flow through 1K
ohm resistance.
Working: Initially, let us set the MSB bit of SAR register i.e. d1 = 1. It is applied to 4-bit D to A
converter i.e. as 1000. The D/A converter will generate its analog value and send to control logic
The output of control logic is VR. Now at the comparator, there are two inputs VR (Reference
voltage) and VA (Input analog).
The same procedure is repeated for all bits i e for d2, d3,. dn, and output may be taken in serial
or parallel manner.
Advantage: The conversion time is fixed as it does not depend upon amplitude of analog input.
15. Draw a binary ladder network for a digital input 1000 and obtain its equivalent
circuit. (July 15) (10 Marks)
Ans Binary ladder D/A converter In a binary ladder D/A converter only two valued resistance R
and 2R are used as shown in diagram
The OP amp is an inverting amplifier By solving resistance N/W in parallel and series, finally
voltage at node B is.
(a) A DAC that can provide number of different analog output values is called resolution.
(b) A DAC is which the ratio of change in output voltage resulting from a change of LSB (i.e. 1
least significant bit) at the digital inputs is known as resolution.
Where, Vo = Resolution x D
Vo = Output voltage
2. Accuracy: It is defined as the difference between the actual analog output and the
expected analog output when a given digital input is applied. It is expressed in percentage. In
ideal case,
3. Conversion Time or Setting Time: It is the time required for conversion of analog
signal into its digital equivalent. It is dependent on amplifiers output and switches response time.
4. Stability: When all the parameters such as gain, linearity error, monotonicity and offset
must be specified over the power supply ranges and full temperature then these parameters
represent the stability of the converter.
5. Monotonicity: If a converter does not miss any step backward during its entire range stepped
by a counter then it is said to have a counter having good monotonicity.
16. With the help of a neat diagram explain parallel A/D converter.
(Dec14 / Jan 15) 10 Marks
Ans. Parallel A/D is used is much more due to its high speed. The only disadvantage is that its
hardware (no. of comparators) increase with the no. of bits. Va is analog, voltage and VR is
reference voltage.
Working: Initially, let us set the MSB bit of SAR register i.e. d1 = 1. It is applied to 4-bit D to A
converter i.e. as 1000. The D/A converter will generate its analog value and send to control logic
The output of control logic is VR. Now at the comparator, there are two inputs VR (Reference
voltage) and VA (Input analog).
The same procedure is repeated for all bits i e for d2, d3,. dn, and output may be taken in serial
or parallel manner.
Advantage: The conversion time is fixed as it does not depend upon amplitude of analog input.
Now 176 would produce 2.64 V and 177 would produce 2.65 V. Hence VA = 2.65V The digital
result will be (176)10 = (10110000)2
Successive approximation is one of the most widely used popular method due its efficiency The
block diagram of SAR ADC s as shown:
Working: Initially, let us set the MSB bit of SAR register i.e. d1 = 1. It is applied to 4-bit D to A
converter i.e. as 1000. The D/A converter will generate its analog value and send to control logic
The output of control logic is VR. Now at the comparator, there are two inputs VR (Reference
voltage) and VA (Input analog).
The same procedure is repeated for all bits i e for d2, d3,. dn, and output may be taken in serial
or parallel manner.
Advantage: The conversion time is fixed as it does not depend upon amplitude of analog input.
Assignment Questions
Module 1
1. With the help of neat diagrams explain the operation and drain characteristics of
n-channel depletion type MOSFET. Explain clearly the mechanism of Pinch-off
Condition. Sketch the drain characteristics and define rd.
2. Explain the constructional features of a depletion mode MOSFET and explain its
basic operation.
3. With the help of neat diagram explain the operation of an n-channel enhancement
type MOSFET.
4. Sketch the drain characteristics of MOSFET for different values of VGS and mark
different region of operation.
5. Draw and explain the drain characteristics of n-channel enhancement type
MOSFET.
6. Sketch the graphic symbols for: n-channel JFET, p-channel JFET, n-channel
enhancement type MOSFET, p-channel enhancement type MOSFET, n-channel
depletion type MOSFET and p-channel depletion type MOSFET.
7. Explain the structure of the depletion mode MOSFET. And the D-MOSFET
curves.
8. Explain the active load switching circuit using the MOSFET. Draw its equivalent
circuit and its two terminal curves.
9. With the neat sketch, explain the formation of an inversion layer in a E-
MOSFET. Draw and explain Drain and Transconductance curve of E-MOSFET.
10. Explain how an op-amp can be used as comparator.
11. Draw and explain the working of Schmitt trigger with different threshold levels
LTP and UTP.
12. What is integrator? Derive the expression for an output of op-amp integrator.
13. Draw and explain the basic timing circuit of IC 555. Draw the necessary
waveforms.
Module 2
b. F(w,x,y,z)=m(0,1,2,4,5,12,14)+dc(8,10)
3. Simplify the following logic equation using Karnaugh map and give the
implementation of the simplified expression
a. f(w,x,y,z)= m(7)+d(10,11,12,13,14,15)
4. What are Universal gates? Implement the following function using Universal
gates only
5. Find the prime implicants for the boolean expression using Quine Mc-Clusky
method f(w,x,y,z)= m(1,3,6,7,8,9,10,12,13,14)
6. Give the simplified logic equation using Quine-Mcclusky method for the
following
7. Boolean function
a. f(a,b,c,d)= m(0,1,2, 3,10,11,12,13,14,15)
8. What is the purpose of using an Expander with an AND-OR-INVERT gate? Write
a logic circuit of an expandable AND-OR-INVERT gate
9. Simplify the following logic expression using Karnaugh Map and also by Quine-
Mcclusky method
i. i.f(a,b,c,d)= m(1,2,8,9,10,12,13,14)
10. Explain different models for writing Verilog modules.Give an example for each.
Module 3
Module 4
1. Conversion of SR flipflop to D flipflop
4. With a neat circuit diagram, explain the working of a Serial in Serial out shift
registers.
9. Design a cyclic mod 6 synchronous binary counter using JK Flip-flop. Give the state
diagram, transition table and excitation table .
10. With a block diagram describe a 3-bit Johnson twisted ring counter. Draw the
sequence diagram and indicate the valid and invalid states.
11. Differentiate between ripple and synchronous counter.
Module 5
1. What is accuracy and resolution of the D/A converter? What is the resolution of a
12-bit D/A converter which uses a binary ladder? If the full scale o/p is +10Volts
what is the resolution in volts.
2. What is Binary ladder. Explain binary ladder with digital input of 1000.
3. Explain 2-bit simultaneous A/D converter.Draw the block diagram of a 2-bit A/D
converter.
4. Draw a 4 bit D/A converter using R-2R resistors and explain its working.
5. Find the following for a 12-bit counter type A/D converter using a 1-MHz clock
6. Write the circuit diagram, explain the operation of the CMOS NAND gate.
8. With the aid of a circuit diagram, explain the operation of 2-input TTL NAND gate
with Totem-pole output.
9. Explain the operation of 2-input CMOS NOR gate with the help of a circuit diagram
12. Discuss the features of high speed TTL , Low power and Schottky TTL families.