EE3302 Ques Bank
EE3302 Ques Bank
COURSE FILE
Subject (Name) : Digital System Design
Name (of the Faculty Member) : Bavusaheb. B. Kunchanur
Designation : Asst. Professor
Regulation /Course : R 18 / EC303PC
Code
Year / Semester : III / I
Department : Electronics and Communication
Engineering
DEPARTMENT OF
ELECTRONICS AND
COMMUNICATION ENGINEERING
R-18
II B. Tech
2019-20
Course File Prepared by
BAVUSAHEB B KUNCHANUR
Assistant Professor
HOD Principal
Part – 2
S.NO TOPICS
1 Attendance Register/Teacher Log Book
2 Time Table
3 Academic calendar
8 Assignment Evaluation-marks/Grades
1. a). Vision
To be renowned department imparting both technical and non-technical skills to the
students through implementing new engineering pedagogy and research to produce
competent new age electrical engineers
1. b). Mission
➢ To transform the students into motivated and knowledgeable new age electrical
engineers.
➢ To advance the quality of education to produce world class technocrats with an ability to
adapt to the academically challenging environment.
➢ To provide a progressive environment for learning through organized teaching
methodologies, contemporary curriculum and research in the thrust areas of electrical
engineering
d) Program Objectives
PO1. Apply knowledge of Mathematics, Science and Engineering to solve the complex problems in
Electrical and Electronics Engineering.
PO2. Identify, formulate, design, analyze and implement an electrical and electronics system,
component, or process to meet desired needs.
PO3. Design system components that meet economic, environmental, social, political, ethical,
health and safety and sustainability requirements.
PO4. Conduct investigations of complex engineering problems including design of experiments,
analysis and interpretation of data, and synthesis of information to provide valid
conclusions.
PO5. Construct, select and apply appropriate techniques, resources, and modern simulation tools
to solve complex electrical and electronics circuits.
PO6. Apply contextual knowledge to assess social, health, safety and cultural issues and endure
the responsibilities relevant to professional engineering practice.
PO7. Utilize core engineering knowledge in a global, economic, environmental and societal
context for sustainable development.
PO8. Solve professional, legal and ethical issues pertaining to core engineering and its related
fields.
PO9. Function effectively as a team member or a leader to accomplish a common goal in a
multi- disciplinary team.
PO10. Communicate effectively with the engineers and society at large through the ability to
comprehend and write effective reports, make effective presentations, give and receive
clear instructions.
PO11. Apply knowledge of engineering and management principles to manage projects
effectively in diverse environments as a member or leader of a team.
PO12. Engage in independent and lifelong learning for continued professional development.
CO1: Develop a digital logic and apply it to solve real life problems
CO2: Analyze and design combinational circuits.
CO3: Analyze and design sequential circuits.
CO4:
CO5:
27 Revision Revision
28 UNIT - III Sequential circuits Sequential Machines Fundamentals and Applications:
Fundamentals and Applications: Introduction
Introduction
29 Basic Architectural Distinctions Basic Architectural Distinctions between
between Combinational and Combinational and Sequential circuits
Sequential circuits
30 The Binary Cell, Fundamentals of The Binary Cell, Fundamentals of Sequential Machine
Sequential Machine Operation Operation
31 Latches, Flip Flops: SR Latches, Flip Flops: SR
32 JK, Race Around Condition in JK JK, Race Around Condition in JK
33 JK Master Slave, D and T Type Flip JK Master Slave, D and T Type Flip Flops
Flops
34 Excitation Table of all Flip Flops Excitation Table of all Flip Flops
35
Design of a Clocked Flip-Flop, Design of a Clocked Flip-Flop, Timing and Triggering
Timing and Triggering Consideration
Consideration
36 Clock Skew, Conversion from one Clock Skew, Conversion from one type of Flip-Flop to
type of Flip-Flop to another. another.
37 Registers and Counters: Shift Registers and Counters: Shift Registers
Registers
4. COURSE PRE–REQUISITES
1. Basic knowledge of mathematics
5.b). SYLLABUS:
Unit Details Hours
Number Systems: Number systems, Complements of Numbers, Codes- Weighted
and Non-weighted codes and its Properties, Parity check code and Hamming code.
I Boolean Algebra: Basic Theorems and Properties, Switching Functions- 15
Canonical and Standard Form, Algebraic Simplification, Digital Logic Gates, EX-
OR gates, Universal Gates, Multilevel NAND/NOR realizations.
Minimization of Boolean functions: Karnaugh Map Method - Up to five
Variables, Don’t Care Map Entries, Tabular Method, Combinational Logic
II 12
Circuits: Adders, Subtractors, Comparators, Multiplexers, Demultiplexers,
Encoders, Decoders and Code converters, Hazards and Hazard Free Relations
Sequential Circuits Fundamentals: Basic Architectural Distinctions between
Combinational and Sequential circuits, SR Latch, Flip Flops: SR, JK, JK Master
Slave, D and T Type Flip Flops, Excitation Table of all Flip Flops, Timing and
III Triggering Consideration, Conversion from one type of Flip-Flop to another. 17
Registers and Counters: Shift Registers – Left, Right and Bidirectional Shift
Registers, Applications of Shift Registers - Design and Operation of Ring and
Twisted Ring Counter, Operation of Asynchronous and Synchronous Counters
Sequential Machines: Finite State Machines, Synthesis of Synchronous
Sequential Circuits- Serial Binary Adder, Sequence Detector, Parity-bit Generator,
IV 8
Synchronous Modulo N –Counters. Finite state machine-capabilities and
limitations, Mealy and Moore models
Realization of Logic Gates Using Diodes & Transistors: AND, OR and NOT
Gates using Diodes and Transistors, DCTL, RTL, DTL, TTL, CML and CMOS
V 8
Logic Families and its Comparison, Classification of Integrated circuits,
comparison of various logic families, standard TTL NAND GateAnalysis &
characteristics, TTL open collector O/Ps, Tristate TTL, MOS & CMOS open drain
and tristate outputs, CMOS transmission gate, IC interfacing- TTL driving CMOS
& CMOS driving TTL.
Contact classes for syllabus coverage 60
Tutorial classes 05
Classes for beyond syllabus 01
Total No. of classes 66
b. http://nptel.ac.in/courses/117105080/2
c. http://nptel.ac.in/courses/117105080/5
4 Codes-Binary Codes
5 Binary Coded Decimal Code and its Properties
6 Unit Distance Codes
13 Universal Gates
Variable Maps
19 Don’t Care Map Entries
20 Tabular Method
21 Design of Combinational Logic: Adders
22 Subtractors, comparators
23 Multiplexers, De multiplexers
24 Decoders
25 Encoders and Code converters
26 Hazards and Hazard Free Relations
27 Revision
28 UNIT - III Sequential Machines Fundamentals
and Applications: Introduction
29 Basic Architectural Distinctions between
Combinational and Sequential circuits
30 The Binary Cell, Fundamentals of Sequential
Machine Operation
31 Latches, Flip Flops: SR
32 JK, Race Around Condition in JK
33 JK Master Slave, D and T Type Flip Flops
34 Excitation Table of all Flip Flops
35 Design of a Clocked Flip-Flop, Timing and
Triggering Consideration
36 Clock Skew, Conversion from one type of Flip-
Flop to another.
37 Registers and Counters: Shift Registers
38 Data Transmission in Shift Registers
39 Operation of Shift Registers
40 Shift Register Configuration
41 Bidirectional Shift Registers, Applications of
Shift Registers
42 Design and Operation of Ring and Twisted Ring
Counter
43 Operation Of Asynchronous And Synchronous
Counters.
44 Revision
45 UNIT – IV Sequential Circuits - I: Introduction,
State Diagram
46 Analysis of Synchronous Sequential Circuits
47 Approaches to the Design of Synchronous
Sequential Finite State Machines
48 Synthesis of Synchronous Sequential Circuits
49 Serial Binary Adder, Sequence Detector
50 Parity-bit Generator, Design of Asynchronous
Counters
51 Design of Synchronous Modulo N –Counters.
52 Revision
53 Unit V: Realization of Logic Gates Using
Diodes & Transistors
54 DCTL, RTL, DTL, TTL, CML and CMOS
Logic Families and its Comparison
55 DCTL, RTL, DTL, TTL, CML and CMOS
Logic Families and its Comparison
56 Classification of Integrated circuits, comparison
of various logic families
57 standard TTL NAND Gate-
Analysis & characteristics,
58 TTL open collector O/Ps, Tristate TTL, MOS &
CMOS open drain and tristate outputs
59 CMOS transmission gate, IC interfacing- TTL
driving CMOS & CMOS driving TTL.
60 Revision
Boolean Algebra 2 2 5
minimization of completely
specified and incompletely 7 3
V specified sequential machines
Partition techniques 7 3
UNIT 1
TWO-MARK QUESTIONS:
1. Represent binary number 1101 - 101 in power of 2 and find its decimal equivalent
N = 1 x 2 3 + 1 x 2 2 + 0 x 2 1 + 1 x 2 0 + 1 x 2 -1 + 0 x 2 -2 + 1 x 2 -3 = 13.625 10
2. Convert (634) 8 to binary
634
110 011 100
= 110 011 100
3. Convert (9 B 2 - 1A) H to its decimal equivalent.
N = 9 x 16 2 + B x 16 1 + 2 x 16 0 + 1 x 16 -1 + A (10) x 16 -2
= 2304 + 176 + 2 + 0.0625 + 0.039
= 2482.1 10
4. What are the different classifications of binary codes?
1. Weighted codes 2. Non - weighted codes 3. Reflective codes 4. Sequential codes 5.
Alphanumeric codes 6. Error Detecting and correcting codes
5.Convert 0.640625 decimal numbers to its octal equivalent.
0.640625 x 8 = 5.125
0.125 x 8 = 1.0
Ans. = 0.640 625 10 = 0.51
THREE-MARK QUESTIONS:
FIVE-MARK QUESTIONS:
A number system is a system of writing for expressing numbers. It is the mathematical notation
for representing numbers of a given set by using digits or other symbols in a consistent manner.
It provides a unique representation to every number and represents the arithmetic and algebraic
structure of the figures. It also allow us to operate arithmetic operations like addition, subtraction
and division
• Represents two types of digits 0's and 1's, so the base of number system is 2.
• Uses two types of electronic pulses, where absence of pulse shows 0 and presence of
pulse shows 1.
• Left-most bit of a number is known as Most Significant Bit (MSB) and right-most bit is
known as Least Significant Bit (LSB). Its same for all number system.
• Value of digit is determined by the position of digit in the number, where lowest value is
for the right-most position and each successive position to the left has a higher place
value. Its same for all number system.
• Binary 000 is same as octal digit 0, binary 001 is same as octal 1, and so on.
• Insufficient to convert values into bytes(8 bit), so not widely used in computers.
• Digits from 10 to 15 are represented as 10-A, 11-B, 12-C, 13-D, 14-E, 15-F.
• As numeric digits and alphabets are used to represent digits, this number system is also
called as alphanumeric number system.
2) Convert the following number system to its equivalent decimal number system?
a) Binary Number − 111012
a)Ans:Steps
• Step 1 − Determine the column (positional) value of each digit (this depends on the
position of the digit and the base of the number system).
• Step 2 − Multiply the obtained column values (in Step 1) by the digits in the
corresponding columns.
• Step 3 − Sum the products calculated in Step 2. The total is the equivalent value in
decimal.
Step 1 21 / 2 10 1
Step 2 10 / 2 5 0
Step 3 5/2 2 1
Step 4 2/2 1 0
Step 5 1/2 0 1
Ans:
a) Given number (1 0 1 0 0 0 1 1) 2
0 1 0 1 1 1 0 0 1 1’s Complement
+00000001
0 1 0 1 1 1 0 1 0 2’s complement.
b) Given 1 0 1 0 1 1
+ 0 0 0 1 1 1--- 2’s comp. of 1 1 1 0 0 1
1 1 0 0 1 0 Ans. in 2’s complement form
- 0 0 1 1 1 0 Answer in true form.
c)
• The 1’s complement subtraction can be accomplished with an binary adder. Therefore,
this method is useful in arithmetic logic circuits.
• The is complement of a number is easily obtained by inverting each bit in the number
4) Explain the need for error detection and correction?
Ans:
Let the code-words be 10010101 and 11010100, it is possible to determine how many
corresponding bits differ, just EXCLUSIVE OR the two code-words, and count the number of
1’s in the result. The number of bits position in which code words differ is called the Hamming
distance. If two code words are a Hamming distance d-apart, it will require d single-bit errors to
convert one code word to other. The error detecting and correcting properties depends on its
Hamming distance.
• To detect d errors, you need a distance (d+1) code because with such a code there is no way
that d-single bit errors can change a valid code word into another valid code word. Whenever
receiver sees an invalid code word, it can tell that a transmission error has occurred.
• Similarly, to correct d errors, you need a distance 2d+1 code because that way the legal code
words are so far apart that even with d changes, the original codeword is still closer than any
other code-word, so it can be uniquely determined.
Types of errors: These interferences can change the timing and shape of the signal. If the signal
is carrying binary encoded data, such changes can alter the meaning of the data. These errors can
be divided into two types: Single-bit error and Burst error.
Single-bit Error : The term single-bit error means that only one bit of given data unit (such as a
byte, character, or data unit) is changed from 1 to 0 or from 0 to 1
Single bit errors are least likely type of errors in serial data transmission. To see why, imagine a
sender sends data at 10 Mbps. This means that each bit lasts only for 0.1 μs (micro-second). For
a single bit error to occur noise must have duration of only 0.1 μs (micro-second), which is very
rare. However, a single-bit error can happen if we are having a parallel data transmission. For
example, if 16 wires are used to send all 16 bits of a word at the same time and one of the wires
is noisy, one bit is corrupted in each word.
Burst Error
The term burst error means that two or more bits in the data unit have changed from 0 to 1 or
vice-versa. Note that burst error doesn’t necessary means that error occurs in consecutive bits.
The length of the burst error is measured from the first corrupted bit to the last corrupted bit.
Some bits in between may not be corrupted.
Error Detecting Codes Basic approach used for error detection is the use of redundancy, where
additional bits are added to facilitate detection and correction of errors.
• Checksum
Error Correcting Codes: The techniques that we have discussed so far can detect errors, but do
not correct them. Error Correction can be handled in two ways.
• One is when an error is discovered; the receiver can have the sender retransmit the entire
data unit. This is known as backward error correction.
• In the other, receiver can use an error-correcting code, which automatically corrects
certain errors. This is known as forward error correction.
In theory it is possible to correct any number of errors atomically. Error-correcting codes are
more sophisticated than error detecting codes and require more redundant bits. The number of
bits required to correct multiple-bit or burst error is so high that in most of the cases it is
inefficient to do so. For this reason, most error correction is limited to one, two or at the most
three-bit errors.
5) Write a table stating all the postulates and theorems of Boolean Algebra that are
required for logic minimization?
Ans: Algebra deals with the rules or laws, which are known as laws of Boolean algebra by
which the logical operations are carried out.
There are also few theorems of Boolean algebra that are needed to be noticed carefully because
these make calculation fastest and easier. Boolean logic deals with only two variables, 1 and 0 by
which all the mathematical operations are to be performed.
Boolean algebra or switching algebra is a system of mathematical logic to perform different
mathematical operations in binary system. There only three basis binary operations, AND, OR
and NOT by which all simple as well as complex binary mathematical operations are to be done.
There are many rules in Boolean algebra by which those mathematical operations are done. In
Boolean algebra, the variables are represented by English Capital Letter like A, B, C etc and the
value of each variable can be either 1 or 0, nothing else. In Boolean algebra an expression given
can also be converted into a logic diagram using different logic gates like AND gate, OR
gate and NOT gate, NOR gates, NAND gates, XOR gates, XNOR gatesetc.
OR Operation
NotOperation
A. 0 = 0 where
A can be either 0 or 1.
A . 1 = A where A can be either 0 or 1.
A . A = A where A can be either 0 or 1.
A . Ā = 0 where A can be either 0 or 1.
A + 0 = A where A can be either 0 or 1.
The laws of Boolean algebra are also true for more than two variables like,
Cumulative Law for Boolean Algebra
According to Cumulative Law, the order of OR operations and AND operations conducted on
the variables makes no differences.
Associative Laws for Boolean Algebra
This law is for several variables, where the OR operation of the variables result is same though
the grouping of the variables. This law is quite same in case of AND
operators.
Distributive Laws for Boolean Algebra
This law is composed of two operators, AND and OR. Let us
show one use of this law to prove the expression
Proof:
5. The largest BCD number that can be represented with four binary bits is ________.
6. The decimal number –128 is represented in the signed 2's complement system as
________.
7. The 2's complement of the binary number 1000 is ________.
8. The output of a NOR gate is HIGH if ________.
9. The Boolean expression for a 3-input AND gate is ________.
10. The DeMorgan's theorem to the expression is_________
ANSWERS:
Q.No Answer
1 8, byte
2 ASCII
3 2210
4 Gray
5 15
6 1000 0000
7 1000
9 X = ABC
10
B.
C.
D.
2. Binary 0010111101111110 is ________ in hexadecimal.
A. 77F216
B. 4EEE16
C. 2F7E16
D. 2F7716
B. 17010
C. 18610
D. 17616
4. The output of an AND gate with three inputs, A, B, and C, is HIGH when ________.
A. A = 1, B = 1, C = 0
B. A = 0, B = 0, C = 0
C. A = 1, B = 1, C = 1
D. A = 1, B = 0, C = 1
5. One of De Morgan's theorems states that . Simply stated, this means that
logically there is no difference between
A. a NOR and an AND gate with inverted inputs
6. A truth table for the SOP expression has how many input
combinations?
A. 1
B. 2
C. 4
D. 8
7. When grouping cells within a K-map, the cells must be combined in groups of ________.
A. 2s
B. 1, 2, 4, 8, etc.
C. 4s
D. 3s
8. Converting the Boolean expression LM + M(NO + PQ) to SOP form, we get ________
A. LM + MNOPQ
B. L + MNO + MPQ
C. LM + M + NO + MPQ
D. LM + MNO + MPQ
9. Derive the Boolean expression for the logic circuit shown below
B.
C.
D.
10. From the truth table below, determine the standard SOP expression.
A.
B.
C.
D.
ANSWERS:
Q. No 1 2 3 4 5 6 7 8 9 10
Answer D D B C A D D B D C
UNIT-II
TWO-MARK QUESTIONS:
THREE-MARK QUESTIONS:
2. What is overflow?
Over flow is a problem in digital computers because the number of bits that hold
the number is finite and a result that contains n + 1 bits cannot be accommodated. For this
reason many computers detect the occurrence of an overflow, and when it occurs a
corresponding flip flop is set that can be checked by the user. An overflow condition can
be detected by observing the carry into sign bit position and the carry out of the sign bit
position. If these two carries are not equal, an overflow has occurred.
FIVE-MARK QUESTIONS:
Solution:
Gray to Binary:
14 1 0 0 1 1 1 1 0
15 1 0 0 0 1 1 1 1
Table : Gray to Binary Converter
Equations:
Diagram:
Answer:
Half Adder
A logic circuit block used for adding two one bit numbers or simply two bits is called as a half
adder circuit. This circuit has two inputs which accept the two bits and two outputs, with one
producing sum output and other produce carry output.
As we discussed above that binary addition is commonly performed by Ex-OR gate, but for the
first three rules , it performs the binary addition and when the two inputs are logic 1, it does not
develop any carry.
To accomplish the binary addition with Ex-OR gate, there is need of additional circuitry to
perform the carry operation. Hence, a half adder is formed by connecting AND gate to the input
terminals of the Ex-OR gate so as to produce the carry as shown in below figure.
In the above half adder , inputs are labeled as A and B. The sum output is labeled with the
summation symbol ?and the carry output or carry out is labeled with Co. Half adder is mainly
used for addition of augend and addend of first order binary numbers.
Half adder has limited number of applications, and practically not used in the application
especially multi-digit addition. In such applications carry of the previous digit addition must be
added along with two bits; hence it is three bits addition.
Full Adder
A binary full adder is a multiple output combinational logic network that performs the arithmetic
sum of three input bits. As we have seen that the half adder cannot respond to the three inputs
and hence the full adder is used to add three digits at a time.
It consists of three inputs, in which two are input variables represent the two significant bits to be
added, labeled as A and B, whereas the third input terminal is the carry from the previous lower
significant position and labeled as Cin. The two outputs are a sum and a carry outputs which are
labeledas ?andCout respectively.
carry outs as shown in figure. The full adder block diagram and truth table is shown below.
3) Explain how a full adder can be built using two half adders?
Answer:Half Adder: Half adder is a combinational circuit that performs simple addition of two
Full Adder
Full adder is a digital circuit used to calculate the sum of three binary bits which is the main
difference between this and half adder. Full adders are complex and difficult to implement
when compared to half adders. Two of the three bits are same as before which are A, the
augends bit and B, the addend bit. The additional third bit is carry bit from the previous stage
and is called Carry – in generally represented by CIN. It calculates the sum of three bits along
with the carry. The output carry is called Carry – out and is represented by COUT.The block
diagram of a full adder with A, B and CIN as inputs and S, CoUT as outputs is shown below
A full adder can be formed by logically connecting two half adders. The block diagram that
shows the implementation of a full adder using two half adders is shown below.
S = A ̅ B ̅ Cin + A ̅ BC ̅ in + ABCin
S = A ̅ B ̅ Cin + A ̅ BC ̅ in + ABCin
= Cin (A ̅ B ̅ + AB) + C ̅ in (A ̅ B + A B ̅ )
Cout is simplified as
= A B + ACIN + ̅A B CIN
= AB + ACIN (B + ̅B ) + ¬ ̅A B CIN
= AB + A ̅B CIN + ̅A B CIN
= AB + CIN ( ̅AB + A ̅B )
Solution:
Step 1: The first step of the design involves analysis of the common cathode 7-segment display.
A 7-segment display consists of an arrangement of LEDs in an ‘H’ form. A truth table is
constructed with the combination of inputs for each decimal number. For example, decimal
number 1 would command a combination of b and c (refer the diagram given below).
7 Segment LED
The truth table for the decoder design depends on the type of 7-
segment display. As we mentioned above that for a common
cathode seven-segment display, the output of decoder or segment
driver must be active high in order to glow the segment.
Suppose the column for segment a shows the different combinations for which it is to be
illuminated. So ‘a’ is active for the digits 0, 2, 3, 5, 6, 7, 8 and 9.
a = F1 (A, B, C, D) = ∑m (0, 2, 3, 5, 7,
8, 9)
b = F2 (A, B, C, D) = ∑m (0, 1, 2, 3, 4,
7, 8, 9)
c = F3 (A, B, C, D) = ∑m (0, 1, 3, 4, 5, 6, 7, 8, 9)
d = F4 (A, B, C, D) = ∑m (0, 2, 3, 5, 6, 8)
e = F5 (A, B, C, D) = ∑m (0, 2, 6, 8)
f = F6 (A, B, C, D) = ∑m (0, 4, 5, 6, 8, 9)
g = F7 (A, B, C, D) = ∑m (2, 3, 4, 5, 6, 8, 9)
Step 3: The third step involves constructing the Karnough’s map for each output term and then
simplifying them to obtain a logic combination of inputs for each output.
K-Map Simplification
The below figures shows the k-map simplification for the common cathode seven-segment
decoder in order to design the combinational circuit.
Step 4: The final step involves drawing a combinational logic circuit for each output signal.
Once the task was accomplished, a combinational logic circuit can be drawn using 4 inputs
(A,B,C,D)and a 7- segment display (a,b,c,d,e,f,g) as output.
Answers:
Q.No Answer
1 AND-OR gates
2 0
3 c=xy+xz+yz
4 half subtract or
5 nor function
6 three
7 1011
8 subtraction
9 decoder
10 OR Gates
b) Demultiplexer
c) Decoder
d) Digital counter
5) In which of the following adder circuits, the carry look ripple delay is eliminated ?(c)
a) Half adder
b) Full adder
c) Parallel adder
d) Carry-look-ahead adder
6) Which of the following adders can add three or more numbers at a time (c)
a) Parallel adder
b) Carry-look-ahead adder
c) Carry-save-adder
d) Full adder
7) A device that converts from decimal to binary numbered is called (a)
a) Decoder
b) encoder
c) CPU
d) Convertor
8) A circuit that compares two numbers and determine their magnitude is called(d)
a) height comparator
b) size comparator
c) comparator
d) magnitude comparator
9) One that is not outcome of magnitude comparator is(b)
a) a>b
b) a-b
c) a<b
d) a=b
Answers:
Q.No 1 2 3 4 5 6 7 8 9 10
Answer b a A a c c a d b a
UNIT-III
TWO-MARK QUESTIONS:
THREE-MARK QUESTIONS:
Flip - flop is a sequential device that normally. samples its inputs and changes its
outputs only at times determined by clocking signal.
1] S.R. latch 2] D latch 3] Clocked J.K. flip-flop 4] T flip-flop
5. Draw the timing diagram of 4-bit ring counter.
FIVE-MARK QUESTIONS:
Conversion Table
Logic Diagram
K-Maps
Conversion Table
Logic Diagram
K-Maps
Conversion Table
K-Maps
Logic Diagram
2. Design of a Synchronous Decade Counter Using JK FlipFlop?
Answer:
A synchronous decade counter will count from zero to nine and repeat the sequence.
The state diagram of this counter is shown
Since there are ten states, four JK flip-flops are required. The truth tables of present and next
state for the decade counter are shown in Fig. 9.10. Using the excitation table of JK flip-flop and
the outputs of J and K are filled.
The Karnaugh maps of the output J0, K0, J1, K1, J2, K2, J3, and K3 are shown. The simplified
results are at the bottom of the Karnaugh maps.
Based on the results obtained from the Karnaugh maps, the circuit design of synchronous decade
counter is shown
That means if the output of the first flip flop is 1, then this is transferred to its next stage
i.e. 2nd flip flop. By transferring the output to its next stage, the output of first flip flop
becomes 0. And this process continues for all the stages of a ring counter. If we use n flip
flops in the ring counter, the ‘1’ is circulated for every n clock cycles.
The circuit diagram of the ring counter is shown below.
Here we design the ring counter by using D flip flop. This is a Mod 4 ring counter which
has 4 D flip flops connected in series. The clock signal is applied to clock input of each
flip flop, simultaneously and the RESET pulse is applied to the CLR inputs of all the flip
flops.
Operation of Ring Counter
Initially, all the flip flops in ring counter are reset to 0 by applying CLEAR signal. Before
applying the clock pulse, we apply the PRESET pulse to the flip flops which assigns the
value ‘1’ to the ring counter circuit. For each clock signal, the data circulates among all
the 4 flip flop stages of ring counter.
This 4 staged ring counter is called Mod 4 ring counter or 4 bit ring counter. To circulate
the data correctly in the ring counter, we must load the counter with required values like
all 0’s or all 1’s.
We know that the ring counter is similar to that of the shift registers connected in series.
The above diagram shown the four stages of flip flops as the parallel in serial our shift
registers, with data inputs D0, D1, D2 and D3.
The data circulation in ring counter is explained below. By passing the reset signal,
initially the flip flops are at RESET state. When the PRESET is applied to the ring
counter the input of the circuit becomes 1.
This input is connected to the first flip flop in the series, so that the flip flop QA is set to
1 and all other outputs of remaining flip flops will be low.
If we make the data input of the flip flop ‘A’ to low, this gives us the data pulse as 0 1 0.
Then for the second clock signal, the output of first flip flop will again change and then
the output of ‘B’ will become high. This means the data pulse 0 0 1 occurs.
In this way, as the clock signal and input of first flip flop changes, the output of the other
flip flops changes. As the output of last flip flop in series is connected to the input of the
first flip flop, the data sequence rotates or circulates in the ring counter.
Truth table of ring counter
The truth table of the 4 bit ring counter is explained below.
When CLEAR input CLR = 0, then all flip flops are set to 1. When CLEAR input CLR =
1, the ring counter starts its operation. For one clock signal, the counter starts its
operation. On next clock signal, the counter again resets to 0000. Ring counter has 4
sequences: 0001, 0010, 0100, 1000, 000.
The timing diagram of the Ring counter will explain that the clock signal changes the
output of every stage of the counter, so that CLK signal will help the data to circulate
from one flip flop to another. As the 4 bit ring counter (4 stages or 4 flip flops) circulates
the preset digit within one clock signal, the output frequency of each flip flop is ¼ th of
the main clock frequency.
State diagram of ring counter
The state diagram of the 4 bit ring counter is shown in above picture. It denotes that the
position of the preset digit (in this case preset digit is 1) is changing its position from
LSB to MSB, for one clock signal.
Advantages
Can be implemented using D and JK flip-flops. It is a self-decoding circuit.
Disadvantages
Only four of the 15 states are being utilized.
• The digital logic circuits whose • The digital logic circuits whose
outputs can be determined using the outputs can be determined using
logic function of current state input the logic function of current state
are combinational logic circuits, inputs and past state inputs are
hence, these are also called as time called as sequential logic circuits
independent logic circuits.
Conversion Table
Logic Diagram
In this case we are required to convert SR flip flop into JK flip flop. Therefore we have to
first design and connect the combinational circuit to the input of SR flip flop so that it
will produce same outputs as that of JK flip flop. Here the external inputs are J and K. S
and R will be the outputs of designed combinational circuit which are inputs of actual flip
flop. We write a truth table with J, K, Qn, Qn+1, S and R. where Qn is the present state
of the flip flop and Qn+1 will be the next state obtained when the particular J and K
inputs are applied.
J, K and Qn can have eight combinations. For each combination of J, K and Qn find the
corresponding Qn+1, i.e. determine to which next state the JK flip flop will go from the
present state Qn if the present inputs J and K are applied. Now complete the table by
writing the values of S and R required to get each Qn+1 from the corresponding Qn. i.e.
write what values of S and R are required to change the state of the flip flop from Qn to
Qn+1.
(ii) SR flip flop to D flip flop:
Similarly for the conversion of SR flip flop into the D flip flop we have connect
combinational circuit to the inputs of the SR flip flop. In this case D the external input of
the circuit. The output of the combinational circuit is connected to the inputs of the actual
flip flop i.e. SR flip flop. Then the output of this flip flop will be the same as D flip flop.
The conversion table, K-maps, and Logic diagram for the conversion of SR flip flop to D
flip flop.
Conversion Table
K-Maps
Logic Diagram
3) What type of register would shift a complete binary number in one bit at a time and shift
all the stored bits out one bit at a time?
a) PIPO
b) SISO
c) SIPO
d) PISO
Answers
Q.No 1 2 3 4 5 6 7 8 9 10
Answer a b b d c c b a d c
Answers:
Q.No Answer
2 D Flip-flop
3 Data/Delay
4 3
5 Flip-flop
6 state reduction
7 level
8 output
9 state diagram
10 D state
UNIT-IV
TWO-MARK QUESTIONS:
For the design of sequential counters we have to relate present states and next states. The
table, which represents the relationship between present states and next states, is called
state table.
an excitation table shows the minimum inputs that are necessary to generate a particular
next state (in other words, to "excite" it to the next state) when the current state is known.
3- MARK QUESTIONS
1. Limitations of Finite State Machines?
➢ Number of states in the composed FSM grows dramatically (state explosion
problem)
➢ Composing FSMs of n subsystems, with k1 , k2 , k3,……..kn, states respectively,
results in a system whose FSM has k1 x k2 x …. x kn states - This growth is
exponential with the number of subsystems , not linear (i.e., k1 + k2 +… + kn ).
➢ Since at any time, a global state of the system must be defined and a single
transition must occur, FSM model is not suitable for describing asynchronous
concurrent activities in the system.
We are all familiar with finite state machines, although we rarely think of them as
such. Consider a washing machine. The states for this machine are: off, fill with water,
wash, spin, and rinse. The control unit for the FSM is the knob on the washer that we
turn to start it.
A standard digital clock that displays only hour, minute, and second, can be said to have
24 · 60 · 60 = 86,400 states – still a finite number. Normally the FSM construct is used
to model systems with far fewer states; in our work we shall normally limit a FSM to
either eight or sixteen states; that is N £ 23 or N £ 24.
A single flip-flop used gives two states output and is referred to as mod-2 counter. With
two flip-flops four output states can be counted in ascending or in descending way and is
referred to as mod-4 or mod-22 counter. With ‘n’ flip-flops a mod-2ncounting is possible
either of ascending or of descending type.
A sequence detector accepts as input a string of bits: either 0 or 1. Its output goes to 1 when
a target sequence has been detected. There are two basic types: overlap and non-overlap. In
a sequence detector that allows overlap, the final bits of one sequence can be the start of
another sequence.
Our example will be a 11011 sequence detector. It raises an output of 1 when the last 5
binary bits received are 11011. At this point, a detector with overlap will allow the last two
1 bits to serve at the first of a next sequence. By example we show the difference between
the two detectors. Suppose an input string 11011011011.
Step 1 – Derive the State Diagram and State Table for the Problem
The method to be used for deriving the state diagram depends on the problem. I show the
method for a sequence detector. At this point in the problem, the states are usually labeled by a
letter, with the initial state being labeled “A”, etc.
We are designing a sequence detector for a 5-bit sequence, so we need 5 states. We label these
states A, B, C, D, and E. State A is the initial state.
Step 1b – Characterize Each State by What has been Input and What is Expected
State Has Awaiting
A -- 11011
B 1 1011
C 11 011
D 110 11
E 1101 1
of these 1’s to be the first two 1’s of the sequence 11011, so the machine stays
in state C awaiting a 0. We might have something like 1111011, etc.
D If state D gets a 0, the last four bits input were 1100. These 4 bits are not part of
the sequence, so we start over.
E If state E gets a 0, the last five bits input were 11010. These five bits are not part of
the sequence, so start over.
More precisely we should be discussing prefixes and suffixes. At state C with input 111, the two
bit suffix to the sequence input is 11 which is a two bit prefix of the desired sequence, so we stay
at C. At E, getting a sequence 11010, we note that the 1-bit suffix is a 0, which is not a prefix of
the desired sequence, the 2-bit suffix is 10, also not a prefix, etc.
Y = ab + ay + by
s=a⊕b⊕c
Consider input “I” is a stream of binary bits. When an input comes, the even parity
generator checks whether the total number of 1’s received till then are even or odd. If even
then the output becomes “0” [O = 0], otherwise output would be “1” [O = 1].
Let’s design the Mealy state machine for the Even Parity Generator.
Define 2 states
S0: Number of 1’s received till now is even
S1: Number of 1’s received till now is odd
Now let’s understand how we get the transitions and corresponding outputs:
Let’s say we are at the state S0: Even number of 1’s received yet
for input “0”: Since the present state represents that till now even number of 1’s are received, an
input “0” will keep the number of 1’s received as even. So, the next state would be S0 and the
output (parity bit generated) would be “0”.
for input “1”: An input “1” will make the number of 1’s received as odd. So, the next state would
be S1 and the output (parity bit generated) would be “1”.
Let’s say we are at the state S1: Odd number of 1’s received yet
for input “0”: Since the present state represents that till now odd number of 1’s are received, an
input “0” will keep the number of 1’s received as odd. So, the next state would be S1 and the
output (parity bit generated) would be “1”.
for input “1”: An input “1” will make the number of 1’s received as even. So, the next state
would be S0 and the output (parity bit generated) would be “0”
A synchronous counter is one which has the same clock input for all its flip flops. A MOD 11
synchronous counter counts from 0000 to 1010. Hence it will require four T flip flops.
Synchronous counters are designed by using excitation table to determine the combinational
logic of inputs to each flip flop. The excitation table for all the four T flip flops is shown:
From the above excitation table, we can draw K-maps to determine input to every flip flop
Four equations for four T flip flops are obtained. Using them, the MOD 11 synchronous counter
is designed as follows:
5. Design mod-10 synchronous counter using JK Flip Flops. Check for the lock out
condition. If so, how the lock-out condition can be avoided? Draw the neat state
diagram and circuit diagram with Flip Flops.
1) Truth Table:
2) K-maps:
J0=1
K0=1
J1=Q0 Q3
K1=Q0
J2=Q0 Q1
K2=Q0 Q1
J3=Q0 Q1 Q2
K3=Q0
4) Logic Circuit:
• In the above counter the logic states 1010, 1011, 1100, 1101, 1110 and 1111 are not used.
If by chance, the counter happens to find itself in any one of the unused states, its next
state would not be known. It may just be possible that the counter might go from one
unused state to another and never arrive at a used state. A counter whose unused states
have this feature is said to suffer from LOCK OUT.
• To avoid lock out and make sure that at the starting point the counter is in its initial state
or it comes to its initial state within few clock cycles, external logic circuitry is to be
provided and so we design the counter assuming the next state to be the initial state, from
each unused states.
UNIT-V
TWO-MARK QUESTIONS:
Output depends both upon the present state Output depends only upon the present state.
and the present input
Generally, it has fewer states than Moore Generally, it has more states than Mealy
Machine. Machine.
The value of the output function is a The value of the output function is a function
function of the transitions and the changes, of the current state and the changes at the
when the input logic on the present state is clock edges, whenever state changes occur.
done.
Mealy machines react faster to inputs. In Moore machines, more logic is required to
They generally react in the same clock decode the outputs resulting in more circuit
cycle. delays. They generally react one clock cycle
later.
From here a conclusion that “for a n state machine the output will become periodic after a
number of clock pulses less than equal to n” can be drawn.
States are memory elements. As for a finite state machine the number of states is finite , so finite
number of memory elements are required to design a finite state machine.
Definition 1 A finite state machine is a 5-tuple, (S, A,R, _, s0) where S is a finite set of states, A
is a finite alphabet, R is a finite alphabet of responses and _ is a transition function such that for
any state,s 2 S and symbol a 2 A, _(s, a) = (s0, r0) indicates the next state, s0 and the output
symbol, r0 2 R.
s0 is the initial state.
Definition 2 A recogniser is a special kind of finite state machine in which the output alphabet
contains two special symbols: accept and reject. The machine responds to any finite sequence of
input
symbols, terminated with a special end of input symbol (_), with either accept or reject.
personal preferences of a designer or programmer. In practice, mixed models are often used with
several action types. On an example we will show the consequences of using a specific model.
As the example we have taken a Microwave Oven control. The oven has a momentary-action
push button Run to start (apply the power) and a Timer that determines the cooking length.
Cooking can be interrupted at any time by opening the oven door. After closing the door the
cooking is continued. Cooking is terminated when the Timer elapses. When the door is open a
lamp inside the oven is switched on, when the door is closed the lamp is off. During cooking the
lamp is also switched on. The cooking period (timeout value) is set by a potentiometer which
supplies a voltage to the control system: the voltage is represented by a numeric value 0..4095
which is scaled by the Ni object to 1799. This arrangement allows the maximum cooking time to
equal 1799 seconds, i.e. 30 minutes. The solution should also take into account the possibility
that the push button Run could get blocked continuously in the active Position (which is easy to
demonstrate if testing the system in SWLab, which has only the two-positions buttons): in such a
case cooking must not start again until it is deactivated when the cooking is terminated
(otherwise our meal which we wanted to heat for instance for 5 minutes could be burned until we
discover that the button has got stuck in the active position). In other words, each cooking
requires intentional activation of the Run button.
The control system has the following inputs: Run momentary-action push button - when
activated starts cooking, Timer - while this runs keep on cooking, Door sensor - can be true (door
closed) or false (door open). And the following outputs: Power - can be true (power on) or false
(power off), Lamp - can be true (lamp on) or false (lamp off).
Moore model :Using Moore model we get a state machine whose state transition diagram is
shown in Figure 1.
This solution requires 7 states. Figure 2, Figure 3 and Figure 4 show state transition tables for
three of those states: Init, Cooking and CookingInterrupted. The state machine uses only Entry
actions.
Other states can be studied in the provided file MWaveOven_Moore.fsm.
While specifying that state machine the states dominate. We think in the following manner: if the
input condition changes the state machine changes its state (if a specific transition condition is
valid). Entering the new state, the state machine does some actions and waits for the reaction of
thecontrolled system. In a Moore model the entry actions define effectively the state. For
instance, we would think about the state Cooking: it is a state where the Timer runs and the state
machines waits for the Timer OVER signal.
Mealy model
The Mealy model is shown in Figure 5. It requires only 5 states. The states: Idle, Cooking and
Cooking Interrupted for that model (see Figure 6, Figure 7 and Figure 8) illustrate its features.
Other states can be studied in the provided file MWaveOven_Mealy.fsm. All activities are done
as Input actions, which means that actions essential for a state must be performed in all states
which have a transition to that state. The Timer must be now started in both states: Idle and
Cooking Interrupted.
This may be considered as a disadvantage: the functioning becomes a bit confusing.
Bits
4. Four RAM chips of 16×4 size have their busses connected together. This system will be of
size[c ]
a) 16×4 b) 256×1 c) 16×16 d) 32×8
6. The table containing present state of output, next state of the output and the inputs is called[a ]
( a) Excitationtable ( b ) State table ( c ) Transition table e ( d ) Truth table
12. A memory in which the contents get erased when power failure occurs is [ d]
a)EAROM (b) PROM (c) ROM (d) RAM
14. When an inverter is placed between the inputs of an S – R flip – flop, the resulting flip – flop
is a [ d]
a)J - K flip - flop (b) Master – slave flip - flop c)T flip - flop (d) D flip - flop
16. The output of a clocked sequential circuit is independent of the input. The circuit can be
represented by [b ]
a)Mealy model (b) Moore model
c)Either Mealy or Moore model (d) Neither Mealy or Moore model
17. For designing a finite state machine k – maps can be used for minimizing the
[ d]
a)Excitation expressions of flip - flops (b) Number of flip – flops
c)Output logic expressions (d) Excitation and output logic expressions
18. While constructing a state diagram of sequential circuit from the set of given statements [b ]
a)A minimum number of states must only be used b)Redundant states may be used
c) Redundant states must be avoided d)None of the above
24. Total no.of programmable fuses in ‘n’ input ‘m’ output PROM is [ c]
(a) n (b) nXm (c) 2nXm (d) 2mXn
26. The functional difference between an SR flip-flop and J-K flip-flop is that [ c]
(a) J-K flip-flop is faster (b) J-K flip-flop has feedback
(c) J-K flip-flop accepts both inputs 1 (d) J-K flip-flop does not require clock
5. The minimum number of flip flops required for a mod-12 ripple counter is 4
7. If the outputs of two states are different after P-state transitions they are said to be
P- Distinguishable
10. The Moore type of output are represented inside the State box in an ASM chart
11.In a positive unite function all the variables are only in Un complemented form.
12. Non threshold functions cannot be realized using a single threshold gate.
13. Master – slave configuration is used in J-K flip – flops to eliminate Race around condition
15. The process of assigning the states of a physical device to the states of a sequential machine
is
known as State assignment
16. The merger table method of state reduction is also called pull unger method orimplication
chart method.
17. A table which consists of the states of a minimal state machine is called a minimal cover
table
18. The data processing path is commonly referred to as the data paths.