CSE 1, IT 1 Digital Principles & System Design
CSE 1, IT 1 Digital Principles & System Design
COLLEGE OF ENGINEERING
CS6201- Digital Principles and System Design
(REGULATION-2013)
(For Second Semester B.E/B.Tech students)
Department of CSE/IT
Prepared by Approved by
Mr.U.Palani HOD/IT
Mr. D.Prabakaran/ ASP Mrs.R.Geetha HOD /ECE
Ms.M.Nishanthi/AP Mr.S.Viswanathan HOD/ CIVIL
Course Coordinator
Mrs.R.Geetha HOD
COURSE OUTCOMES (COs)
CO 1: To able the students to understand different methods used for the simplification of
Boolean functions
CO 2: To able the students to understand the concepts of combinational circuits and code
converter.
CO 3: To able the students to design and implement the synchronous sequential circuits.
CO 4: To able the students to design and implement the Asynchronous Sequential Circuits.
Flow table: A flow table is similar to a transition table except that the internal states are
symbolized with letters rather than binary numbers. The flow table also includes the output
values of the circuit for each stable state.
Primitive flow table: A Primitive flow table is a special case of flow table. It is defined as a
flow table which has exactly one stable state for each row in the table.
Transition table: A state table with binary assignment is called transition table. Transition table
of asynchronous sequential circuits similar to the state table used for synchronous sequential
circuits.
Merger graph: Merger graph is a state reduction tool used to reduce states in the incompletely
specified machine.
Two methods to realize a flow table: Implementation using traditional method,
Implementation using SR latch.
State assignment: To determine the flip flop input functions, it is necessary to represent states
in the state diagram using binary values instead of alphabets. This procedure is known as state
assignment.
Race: Races exist in asynchronous sequential circuits when two or more binary start variables
change during a state transition. Races are classified as: Non-critical races, Critical races.
Cycle: A cycle occurs when an asynchronous circuit makes a transition through a series of
unstable states. If a cycle does not contain a stable state, the circuit will go from one unstable to
stable to another, until the inputs are changed.
Race free state assignment: In asynchronous sequential circuits, the objective of state
assignment is to avoid critical races. In a race free state assignment, one state variable changes
during each state transition.
Shared Row state assignment: In shared row state assignment, an extra row is introduced in a
flow table that is shared between two stable states.
Multiple Row state assignment: The multiple row state assignment technique specifies that
each row in the original flow table be replaced with two rows.
One Hot state assignment: In this method, only one variable is active or hot for each row in
the original flow table. i.e. it requires one state variable for each row of the flow table.
Hazards: Hazards are defined as unwanted switching transients that may appear at the output of
a circuit.
Types of Hazards: Static-0 Hazard, Static-1 Hazard, Dynamic hazard, Essential hazard.
Static Hazard: Static hazard is an condition which results in a single momentary incorrect
output due to change in a single input variable when the output is expected to remain in the
same state.
Dynamic Hazard: Dynamic hazards occur when the output of a network is to change between
its two logic states, but a momentary false output signal occurs during the transient behavior.
Essential hazard: Essential hazard is a type of hazard that exists only in asynchronous
sequential circuits with two or more feedbacks.
Two Marks
Analysis of Asynchronous Sequential Circuits:
The classification is done according to how input variables are considered in the
Asynchronous sequential circuits.
7. What are the steps followed in the analysis of Pulse mode asynchronous sequential
circuits?
In the analysis of Pulse mode asynchronous sequential circuit, circuit responds
immediately to pulse on their inputs, rather than waiting for the clock signal as in
synchronous sequential circuits. The steps followed in the analysis of Pulse mode
asynchronous sequential circuits are:
Write the excitation and output equation for the given circuit.
Write the characteristic equation for the given flip flop. If no flip flop has been
specified, then use T flip flop.
Construct the state variable transition table and state diagram.
Draw the timing diagram for the given circuit.
9. How does the operation of an asynchronous input differ from that of a synchronous
input?
In asynchronous sequential circuit, the memory elements are either unclocked flip
flops or time delay elements. Therefore in asynchronous sequential circuits, the change in
the input signals can affect memory element at any instant of time. In asynchronous
sequential circuit, the designer has to consider the time delays involved to determine the
maximum operating speed of the clock. In this type of circuit, the clock signal is absent and
the state change occurs according to delay times of logic. Due to this, asynchronous
sequential circuits are more difficult to design. However because of absence of clock,
asynchronous circuits are faster than synchronous circuits.
10. Differentiate between Fundamental mode and Pulse mode asynchronous circuit.
S.No Fundamental Mode circuit Pulse Mode circuit
1 Only One input is allowed to change at a Only One input is allowed to change at a
time. time.
11. Why is the Pulse mode operation of asynchronous sequential circuits not very
popular?
The Pulse mode operation of asynchronous sequential circuits are not very popular
because of the input variables pulse width restrictions, pulse mode circuits are difficult to
design and hence they are not very popular.
But in the fundamental mode operation of asynchronous sequential circuits, the
levels are used and so the circuit design is not difficult. Hence the fundamental mode
operations of asynchronous sequential circuits are more popular when compared to the Pulse
mode operation.
16. What are the steps involved in design of Fundamental mode asynchronous sequential
circuits?
The design process of asynchronous sequential circuit begins with the construction
of primitive flow table.
23. Mention the need and steps involved in state reduction techniques.
The state reduction technique basically avoids the introduction of redundant states.
The reduction in redundant states reduces the number of required flip flops and logic gates,
reducing the cost of final circuit.
Steps Involved:
Determine the state table for the given state diagram.
Find equivalent states: If two present states that go to the same next states, one
present state can be removed.
Reduced state diagram for the reduced state table.
Every potentially compatible state pair, with outputs not in conflict but whose next
states are different, is connected by a broken line. The implied states are drawn in
the line break between the two potentially compatible states.
If two states are incompatible no connecting line is drawn.
simplification. Then each boolean expression is implemented using logic gates as shown in
below example.
31. Draw the logic diagram for the following Boolean function Y=X1X2+(X1+X2)Y.
In a mealy circuit, the input represents the input variable, output term represents the output
variable, the flip flop output Q represents the state variable and the intermediate variable
represents the excitation variable.
35. Mention the two basic rules for making state assignment.
The two basic rules for making state assignment are:
States having the same NEXT STATES for a given input condition should have
assignments which can be grouped into logically adjacent cells in a K map.
States that are the NEXT STATES of a single state should have assignment which
can be grouped into logically adjacent cells in K map.
41. Mention the techniques that are commonly used for making critical race free state
assignment.
In asynchronous sequential circuits, the objective of state assignment is to avoid
critical races. In a race free state assignment, one state variable changes during each state
transition. The techniques used for making critical race free-state assignment are:
Hazards:
48. Define Hazards.
Hazards are defined as unwanted switching transients that may appear at the output
of a circuit. The hazard causes the circuit to malfunction. The main cause of hazard is the
different propagation delays at different paths. Hazards occur in the combinational circuits,
where they may cause a temporary false output value. When such combinational circuits are
used in the asynchronous sequential circuits, they may result in a transition to a wrong stable
value.
In the K map shown, the static hazard can be eliminated by covering adjacent cells. In the
above example, the term 0100, 0101, 0111, 0110 are in multiple number of groups. This is
for the purpose of avoiding the static hazards in digital circuits.
The redundant gates may be added through a redundant function and that has been created
by multiple grouping in K map.
60. Mention the advantages and disadvantage of designing Hazard free circuits.
The advantages of designing hazard free circuits are:
The output of the circuit will be accurate.
The disadvantages of designing hazard free circuits are:
More number of gates are used.
The circuit complexity is more.
Propagation delay is more.
16 Marks
1. Analysis the given pulsed asynchronous sequential circuit. (16)
Solution:
Step 1: Determine the circuit excitation and output equations.
For given circuit excitation and output equations are
SA =x1 A
R A =x 2 A
Z=x1 A
Qn S RQn
Using the characteristic equation and excitation equations we have the state variable next state
equation is as follows
State diagram
2.Consider the asynchronous sequential circuit which is driven by the pulses, as shown in the
bellow figure. Analyze the circuit.
Solution:
Step 1: Determine the circuit excitation and output equations.
SA W X , SA W X
RA Y , R A Y
SB Y
RB Z
C (W X ).B
State diagram:
3.Design a pulse mode circuit having two inputs lines, x1 and x2 and output line z, as shown in
bellow figure. The circuit should produce an output pulse to coincide with the last input
pulse in the sequence x1-x2-x2. No other input sequence should produce an output pulse.
(16) May-08
Solution:
Step 1: Define the states and draw the state diagram and/or state table of the circuit:
S1=the last input was x1
S2=the sequence x1-x2 occurred
S3=the sequence x1-x2-x2 occurred.
State diagram:
State table:
TA =AX1 +BX 2
TB BX 1 AX 2
Z BX 2
4. Analyze the fundamental mode asynchronous sequential circuit given in following fig.(16)
Solution:
Step 1: Determine next secondary state and output equations.
X1=X0I’1+X0X1I0
X0=X0I0I1+X1I’0
Z=X0X1I0
Step 2: Construct state table:
5.An Asynchronous sequential circuit is described by the following excitation and output
function.Y=X1X2+(X1+X2)Y, Z=Y
i) Draw the logic diagram of the circuit.
ii) Derive the transition table and output map.
iii) Describe the behavior of the circuit. (16)
Solution:
i)Logic diagram:
Transition table:
Output Map:
iii) The circuit gives carry output of the full adder circuit.
6.Design an asynchronous sequential circuit with two inputs X and Y and with one output Z.
whenever Y is 1, input X is transferred to Z. When Y is 0, the output does not change for
any change in X. (16) May-03
Solution:
Step 1: Draw the state diagram
Transition table:
Logic diagram:
7.Design an asynchronous sequential circuit that has inputs X2 and X1 and one output Z.
When X1=0, the output Z is 0.the first change in X2 that occurs while X1 is 1 will cause
output Z to be 1. the output Z will remain 1 until X1 returns to 0. (16)Nov-08,May-09
Solution:
Step 1: Draw the state diagram
Transition table:
Logic diagram:
Transition table:
Logic diagram:
9.Design a circuit with inputs A and B to give an output Z=1 when AB=11 but only if A
becomes 1 before B, by drawing total state diagram, primitive flow table and output map
in which transient state is included. (16) May-06
Solution:
Step 1: Draw state diagram and derive primitive flow table
(A,B,D)=S0
C=S1
E=S2
Step 3: State assignment:
S0=00, S1=01, S2=10
Transition table:
K-map simplification:
10. Obtain a primitive flow table for a circuit with two inputs x1 and x2 and two outputs z1
and z2 that satisfies the following four conditions.
i)When x1 x2=00 output z1z2=00
ii) When x1=1 and x2 changes from 0 to 1, the output z1z2=01.
iii) When x2=1 and x1 changes from 0 to 1, the output z1z2=10.
iv) Otherwise the output does not change. (16)
Solution:
State diagram:
11. Derive a circuit specified by the following flow table. May-11 (16)
00 01 11 10
A A,0 A,0 A,0 B,0
B A,0 A,0 B,1 B,1
Solution: To obtain the circuit described by a flow table we assign a distinct binary value to
each state. Such an assignment converts the low table into a transition table. We assign binary 0
to state a and binary 1 to state b.
Transition table:
W=xy’+xw
Output map
Z=xw
Logic diagram:
12. With suitable example and diagram explain the concept of reduction of state and flow
tables. May-10, (16)
Solution:
Merger graph is state reducing tool used to reduce states in the completely specified machine.
The merger graph is defined as follows
a. It contains the same number of vertices as the state table contains states.
b. Each compatible state pair is indicated by a line drawn between the two state
vertices.
c. Every potentially compatible state pair, with outputs nott in conflict but whose next
states are different, is connected by a broken line. The implied states are drawn in
line break between the two potentially compatible states.
d. If two states are incompatible, no connecting line is drawn.
Example: Design an asynchronous sequential circuit with two inputs X and Y and with one
output Z. whenever Y is 1, input X is transferred to Z. When Y is 0, the output does not
change for any change in X.
Step 1: Draw the state diagram
State assignment:
S0=0 S1=1
Reduced flow table:
13. Explain in detail about races and cycles with neat diagrams. Nov-11 (16)
Solution:
Races: When two or more binary state variables change their value in response to a change in
an input variable, race condition occurs in an asynchronous sequential circuit. In case of
unequal delays, a race condition may cause the state variables to change in an unpredictable
manner. For example, if there is a change in two state variables due to change in input variable
such that both change from 00 to 11.
In this situation the difference in delay may cause the first variable to faster than the second
resulting the state variables to change in sequence from 00 to 10 and then to 11. On the other
hand if the second variable changes faster than the first, the state variables change from 00 to
01 and then 11. If the final stable state that circuit reaches does not depend on the order in
which the state variable changes the race condition is not harmful and it is called a noncritical
race. but, if the final stable state depends on the order in which the state variable changes, the
race condition is harmful and it is called a critical race.
Non critical race: X is input variable and y1 y2 are the state variables. Consider a circuit is in a
stable state y1y2x=000 and there is a change in input from 0 to 1.with this change in the input.
there are three possibilities that the state variable may change . they can either change
simultaneously from 00 to 11, or they may change in sequence from 00 to 01 and then to 11, or
they may change in sequence from 00 to 10 and then to 11.
Critical race: Consider a circuit is in a stable state y1y2x=000 and there is a change in input
from 0 to 1. If state variables change simultaneously, the final stable state is y1y2x=111. If Y2
changes to 1 before Y1because unequal propagation delay, then the circuit goes to the stable
state 011 and remain there. On the other hand, if Y1 changes faster than Y2then the circuit goes
to the critical because the circuit goes different stable states depending on the order in which
the state variables change.
Cycles: A cycle occurs when an asynchronous circuit makes a transition through a series of
unstable states. When a state assignment is made so that it introduces cycles, care must be
taken to ensure that each cycle terminates on a stable state. If a cycle does not contain a stable
state, the circuit will go from one unstable state to another, until the inputs are changed.
Obviously ,such a situation must always be avoided when designing asynchronous circuits.
1.Shared row state assignment: Races can be avoided by making a proper binary assignment
to the state variables. Here the state variables are assigned with binary numbers in such a way
that only one state variable can change at any one time when a state transition occurs. To
accomplish this it is necessary that states between which transitions occur be given adjacent
assignments. Two binary values are said to be adjacent if they differ only in third bit.
Transition diagram:
2. One hot state assignment: The one hot state assignment is an another method for finding a
race free state assignment. In this method only one variable is active or hot for each row in the
original flow table. It requires one state variable for each row of the flow table. Additional
rows are introduced to provide single variable changes between internal state transitions.
Flow table:
14. Describe the hazards that occur in asynchronous sequential circuits. Brief the procedure
to eliminate it. (16)
Solution:
Hazards: the unwanted switching transitions that may appear at the output of a circuit are
called hazards. The hazards cause the circuit to malfunction. The main cause of hazards is the
different propagation delays at different paths.
Hazards occur in the combinational circuits where they may cause a temporary false output
value. When such combinational circuits are used in the asynchronous sequential circuits, they
may result in a transition to a wrong stable state.
Two types of Hazards:
Static hazards: A static hazard exists if a signal is supposed to remain at particular logic value
when an input variable changes its value, but instead the signal undergoes a momentary change
in its required value
Two types of Static hazards:
Static-1 hazard: if output goes momentarily 0 when it should remain a 1, this hazard is known
as static-1 hazard.
Static-0 hazard: if output goes momentarily 1 when it should remain a 0, this hazard is known
as static-1 hazard.
Dynamic hazards: Another type of hazard is dynamic hazard in which output changes three or
more times when it should change from 1 to 0 or from 0 to 1.
Eliminating Hazards: Hazards can be eliminated by enclosing two minterms or maxterms. If the
ircuit has minterm x1x2+x’2x3 then these two minterms must be enclosed by introducing another
minterm x1x3.
15. A. With suitable example and diagram explain the hazards in sequential logic circuits. (8)
Solution:
The combinational circuits are associated with them to drive the flip-flop inputs. In
synchronous sequential circuits, the hazards due to combinational circuits associated with them
are not of concern. This is because momentary erroneous signal are not generally troublesome
in synchronous circuits. However if a momentary incorrect signal is fed back in an
asynchronous sequential circuit to go to the wrong stable state.
Logic diagram:
Transition table:
16. Give hazard-free realization for the following Boolean function. (16)
f(A,B,C,D)= m(0, 2,6,7,8,10,12)
Solution:
K-map:
Logical diagram:
17. Explain in detail about essential hazards and how to eliminate essential hazards. (16)
Solution:
One type of hazards that may occur in asynchronous sequential circuit is called essential
hazards. An essential hazard is caused by unequal delays along two or more paths that
originate from the same input. Such hazards can be eliminated by adjusting the amount of
delays in the affected path.
The first leel consists of NAND gates that implement each product term in the orginal Boolean
expression of S and R.
The second level forms the cross coupled connection of the SR latch with inputs that come
from the outputs of each NAND gate in the first level.
18. Implement the switching function F= m(1,3,5,7,8,9,14,15) by a static hazard free two
Logical diagram:
19. A. Give hazard-free realization for the following Boolean functions. (8)
f(A,B,C,D)= m(0,1,5, 6, 7,9,11)
Solution:
F=ABC+ABD+BCD+ACD+ABD+ABC
Solution:
F=JL+IJ+KL+IL
20. Find a static and dynamic hazard free realization for the following function using
i)NAND gates. ii) NOR gates. f(a,b,c,d)= m(1,5,7,14,15) (16) Nov-10
Solution:
i) Circuit realization using NAND gate
Logical diagram:
Steps:
a. Complement the inputs
b.Complement the output
c. Replace NAND gate by NOR gate
Logical diagram: