FDS Note
FDS Note
Analog System
Analog systems process analog signals (continuous time signals) which can take any value
within a range, for example the output from a speaker or a microphone.
Digital System
• Digital systems process digital signals which can take only a limited number of
values (discrete steps), usually just two values 0 and 1.
• Digital systems contain devices such as logic gates, flip-flops, shift registers and
counters.
Number System
Number system is the counting system. There are two types of counting systems :
1
• Positional number system.
It is the modern and well known method of counting system . There are
following four types of positional number systems :
• Binary number system
• Octal number system
• Decimal number system
• Hexadecimal number system
A binary numbers are expressed with a digit of 1 and 0 . It has base '2' or 'b'.
An octal numbers are expressed with a strings of symbols defined above, possibly, an
octal point within it. In this number system numbers are lies in between 0 to 7 . It has base
8.
Example:
Decimal number system is number system in which numbers are lies in between 0 to 9. It
has base 10 or D .
Example :
In Hexadecimal numbers system numbers are lies in between 0-15 . It is the combination
of digit and alphabets. The numbers in 0-9 are as digit and above it to 15 are alphabets. It
can be expressed as : A,B,C,D,E,F for 10,11,12,13,14,15 respectively.
Number Conversion:
2
In this number system each digit of binary number system are multiplying by 2 with
power 0,1,2,etc from right to left.
Example:
3
2. 945
2|945| 1
2|472| 0
2|236| 0
2|118| 0
2|59 | 1
2|29 | 1
2|14| 1
2|7 | 0
2|3 | 1
2| 1 | 1
2| 0 | 1
Hence 34510 = 111011100012
Convert Octal to binary:
To convert octal to binary we have to convert each digits of number from 0 to 7 into
3 bit of binary number.
Example:
3458
3 4 5
011 100 101
4
Convert Octal to Decimal:
To convert octal number into decimal multiply each digit of octal by 8 and power is
added it from right to left by 0,1,2… respectively.
Example:
a)4458
=4×82+4×81+5×80
=256+32+5
= 29310
b) 233.2388
=2×82+3×81+3×80 . 2× 8-1 + 3×8-2
= 128+24+3 . (0.125+0.0468)
= 155.171810
Convert decimal to octal number:
To convert decimal number to octal number system divide decimal number by 8 and the
carry obtained from bottom to top is taken.
Example :
a) 45910
8|459| 3
8|57 | 1
8| 7 | 7
8| 0 |
5
Convert Decimal to Hexadecimal
(1459.43)10 = (?)16
Here integer part = 1459 and fractional part = 0.43
1459 0.43
16|91| 4
16|5| B
16|0 | 5
Example:
(33A)16
=3 3 A
0011 0011 1010
6
= (001100111010)2
(3EC.3F)16
3 E C . 3 F
0011 1110 1100 0011 1111
= 001111101100.001111112
Convert Binary to hexadecimal:
To convert binary to hexadecimal number system group of four bit are selected and its
equivalent hexadecimal number is written.
a) 11110112
0111 1011
=7 B
=7B16
b) 1110111.1102
0111 0111 . 1100
= 7 7 C
= (77.C)16
7
Unit -2 Binary Arithmetic Operation
Complements
Complements are used in digital computers for simplifying the subtraction
operation and for logical manipulation. There are two types of complements
for each base-r system: r's complement and the second as the (r - 1)'s
complement. When the value of the base r is substituted, the two types are
referred to as the 2's complement and 1's complement for binary numbers, the
10's complement and 9's complement for decimal numbers etc.
1. Add the minuend M to the r's complement of the subtrahend N. This performs M + (rn
–N) = M -N + r".
2. If M >= N, the sum will produce an end carry, r", which is discarded; what is left is the
result M - N.
8
3. If M < N, the sum does not produce an end carry and is equal to rn - (N - M),
which is the r's complement of (N - M). To obtain the answer in a familiar form,
take the r's complement of the sum and place a negative sign in front.
Example:
9
Binary Arithmetic:
a) Addition
1) 11111 (31)
+ 1110 (14)
1011012(45)
2) 11011 (27)
+ 1110 (14)
101001 (41)
b) Multiplication:
1) 1111
X 101
1111
0000
1111
100101 12
c) Subtraction:
1) 11101 - 110
1's complement of 00110 =11001
2's complement of 110 = +1
11010
Now add 11101 with 11010
11101
+ 11010
110111
Ignoring MSB
Ans: 10111
2) 1110-11110
1's complement of 11110 is = 00001
2's complement is = +1
00010
Adding with 1110
we get,
01110
+00010
10
10000
11
Unit:3 Logic Gates Concept
Basic Logic Gates (Digital logic gates will be covered in detail later)
Logic gates are electronic circuits that operate on one or more input signals to
produce an output signal. Electrical signals such as voltages or currents exist
throughout a digital system in either one of two recognizable values (bi-state 0 or
1). Voltage-operated circuits respond to two separate voltage ranges (Example of
voltage ranges is discussed in unit 1) that represent a binary variable equal to logic
1 or logic 0. The graphics symbols used to designate the three types of gates AND,
OR, and NOT are shown in Figure below:
12
1. Inverter
- NOT gate is also called inverter. It has one input and one output.
- It just invert the input.
13
Truth table for NOT gate is as follows:
Input(X) Output(Z)
0 1
1 0
2. OR Gate
- The output is low only when all input is low (i.e 0). Other case output is
high(1).
3. AND Gate:
- In AND gate the output is high (1) only when both inputs are high.
Truth table:
14
Input (X) Input(Y) Output(Z)
0 0 0
0 1 0
1 0 0
1 1 1
4. NOR Gate:
In NOR gate output is high only when both inputs are low (0).
X Z= (X+Y)'
5. NAND Gate:
In NAND gate output is low only when both input are high otherwise output is high.
X (X.Y)'
15
6. Exclusive OR Gate:
In this gate if both inputs are same the output is low else output is high.
X X'Y+XY' = Z
XY+(XY)'
Universal gates
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. In
practice, this is advantageous since NAND and NOR gates are economical and
easier to fabricate and are the basic gates used in all IC digital logic families.
16
17
De Morgan's Theorem:
1) It states that the complement of product of the any two variables is equal to
the sum of the complement of each individual variable.
i.e A.B = A̅ +B̅
Proof:
A B A̅ B̅ A.B A̅ +B̅ A.B
0 0 1 1 0 1 1
0 1 1 0 0 1 1
1 0 0 1 0 1 1
1 1 0 0 1 0 0
Hence A.B = A̅ + B̅
2) It states that the sum of the complement of variables is equal to the product
of complement of each individual variable.
Proof:
18
Unit : 4 Boolean Algebra and Karnaugh Map
In 1854 George Boole introduced a systematic treatment of logic and developed for
this purpose an algebraic system now called Boolean algebra. Thus, the
mathematical system of binary logic is known as Boolean or switching algebra.
Basic theorems
The theorems, like the postulates, are listed in pairs; each relation is the dual of the
one paired with it. The postulates are basic axioms of the algebraic structure and
need no proof. The theorems must be proven from the postulates. six theorems of
Boolean algebra are given below:
Theorem1: Idempotence (a) x + x = x (b) x.x = x
Theorem2: Existence: 0&1 (a) x + 1 = 1 (b) x.0 = 0
Theorem3: Involution (x')' = x
Theorem4: Associative (a) x + (y + z) = (x + y) + z (b) x(yz) = (xy)z
Theorem5: Demorgan (a) (x + y)' = x'y' (b) (xy)' = x' + y'
Theorem6: Absorption (a) x + xy = x (b) x(x + y) = x
Proofs:
(a) The proofs of the theorems with one variable are presented below:
THEOREM 1(a): x + x = x
x + x = (x + x) . 1 (P4: Identity element)
= (x + x)(x + x') (P5: Existence of inverse)
= x + xx' (P3: Distribution)
=x + 0 (P5: Existence of inverse)
=x (P4: Identity element)
THEOREM 1(b): x·x = x
x.x = xx + 0 (P4: Identity element)
=xx + xx' (P5: Existence of inverse)
=x(x + x') (P3: Distribution)
= x.1 (P5: Existence of inverse)
=x (P4: Identity element)
Hey! Each step in theorem 1(b) and 1(a) are dual of each other.
THEOREM 2(a): x + 1 = 1
x + 1 = 1· (x + 1) (P4: Identity element)
= (x + x')(x + 1) (P5: Existence of inverse)
=x + x'·1 (P3: Distribution)
= x + x' (P4: Identity element)
= 1 (P5: Existence of inverse)
THEOREM 2(b): x.0 = 0 by duality.
19
THEOREM 3: (x ')' = x. From P5, we have x + x' = 1 and x.x' = 0, which defines the
complement of x. The complement of x' is x and is also (x')'. Therefore, since the
complement is unique, we have that (x')' = x.
(b) The theorems involving two or three variables may be proven algebraically from
the postulates and the theorems that have already been proven. For example, lets
prove Demorgan’s theorem:
20
A function with n variables has 2n minterms (since each variable can appear
complemented or not)
A three-variable function, such as f(x, y, z), has 23 = 8 minterms:
Maxterms
A maxterm is a sum (or ORing of terms) of literals, in which each input variable
appears exactly once.
A function with n variables has 2n maxterms
The maxterms for a three-variable function f(x, y, z):
x’ + y’ + z’ x’ + y’ + z x’ + y + z’ x’+ y + z
x + y’ + z’ x + y’ + z x + y + z’ x + y + z
Each maxterm is false for exactly one combination of inputs:
Table: Minterms and Maxterms for 3 Binary Variables with their symbolic
shorthand
A Boolean function may be expressed algebraically (SOP or POS form) from a given
truth table by:
Forming a minterm for each combination of the variables that produces a 1 in
the function, and then taking the OR of all those terms.
Forming a maxterm for each combination of the variables that produces a 0 in
the function, and then taking the AND of all those maxterms.
21
Canonical forms
Boolean functions expressed as a sum of min terms or product of maxterms are
said to be in canonical form. These complementary techniques are describes
below. Canonical form is not efficient representation but sometimes useful in
analysis and design. In an expression in canonical form, every variable appears in
every term.
Sum of Minterms (Sum of Products or SOP)
We have seen, one can obtain 2" distinct minterms form n binary input variables
and that any Boolean function can be expressed as a sum of minterms. The
minterms whose sum defines the Boolean function are those that give the 1's of
the function in a truth table. It is sometimes convenient to express the Boolean
function in its sum of minterms form. If not in this form, it can be made so by first
expanding the expression into a sum of AND terms. Each term is then inspected to
see if it contains all the variables. If it misses one or more variables, it is ANDed
with an expression such as x + x', where x is one of the missing variables.
Question: Express the Boolean function in a sum of minterms.
Solution: The function has three variables A, B, and C.
The first term A is missing two variables; therefore:
Standard Forms
This is another way to express Boolean functions. In this configuration, the
terms that form the function may contain one, two, or any number of literals.
There are two types of standard forms: the sum of products and product of sums.
The sum of products is a Boolean expression containing AND terms, called
product terms, of one or more literals each. The sum denotes the ORing of these
terms.
Example: F1 = y' + xy + x’yz’, the expression has three product terms of one, two,
and three literals each, respectively. Their sum is in effect an OR operation.
A product of sums is a Boolean expression containing OR terms, called sum
terms. Each term may have any number of literals. The product denotes the ANDing
of these terms. An example of a function expressed in product of sums is F1 = x(y' +
z)(x' + y + z' + w), this expression has three sum terms of one, two, and four literals
each, respectively. The product is an AND operation.
Function can also be in non-standard form: F3 = (AB + CD) (A'B' + CD') is neither
in SOP nor in POS forms. It can be changed to a standard form by using the
distributive law as F3 = A'B'CD + ABC'D'.
24
METHOD 1: Minimization by Boolean algebra
Make use of relationships and theorems to simplify Boolean Expressions
Perform algebraic manipulation resulting in a complexity reduction.
This method relies on your algebraic skill
3 things to try:
o Grouping
A + AB + BC
A (1+ B) + BC
A + BC [since 1+ B =1]
o Multiplication by redundant variables
Multiplying by terms of the form A + A’ does not alter the logic
Such multiplications by a variable missing from a term may enable minimization
Example:
In fact, the map presents a visual diagram of all possible ways a function may be
expressed in a standard form. By recognizing various patterns, the user can derive
alternative algebraic expressions for the same function, from which he can select
the simplest one. We shall assume that the simplest algebraic expression is anyone
in a sum of products or product of sums that has a minimum number of literals.
(This expression is not necessarily unique)
Two variable maps
There are four minterms for a Boolean function with two variables. Hence, the two-
variable map consists of four squares, one for each minterm, as shown in Figure:
26
Fig: Two-variable map
27
Fig: Three-variable map
29
Question: Simplify the Boolean function
F = A'B'C' + B'CD' + A'BCD' + AB'C'
Solution:
First try just to reduce the standard form function into SOP form and then mark 1
for each minterm in the map.
F = A'B'C' + B'CD' + A'BCD' + AB'C'
=A'B'C'(D+D') + B'CD(A+A') + A'BCD' + AB'C'(D+D')
= A'B'C'D+ A'B'C'D' + AB'CD+A' B'CD + A'BCD' + AB'C'D+ AB'C'D'
This function also has 4 variables, so the area in the map covered by this function
consists of the squares marked with 1's in following Fig.
30
These don't-care conditions can be used on a map to provide further simplification
of the Boolean expression.
Procedure:
The 1's placed in the squares of the map represent the minterms of the function.
The minterms not included in the function belong to the complement of the
function. From this, we see that the complement of a function is represented in the
map by the squares not marked by 1's. If we mark the empty squares with 0's and
combine them into valid rectangles, we obtain an optimized expression of the
complement of the function (F’). We then take the complement of F to obtain the
function F as a product of sums.
Question: Simplify the following Boolean function 𝐹𝐹(𝐴𝐴,𝐵𝐵,𝐶𝐶,𝐷𝐷) = (0,1,2,5,8,9,10) in
31
(a) Sum of products (SOP) and
(b) Product of sums (POS).
Solution:
The 1's marked in the map below represent all the minterms of the function. The
squares marked with 0's represent the minterms not included in F and, therefore,
denote F’.
(a) Combining the squares with 1's gives the simplified function in sum of products:
(b) If the squares marked with 0's are combined, as shown in the diagram, we
obtain the simplified complemented function:
F' = AB + CD + BD'
Applying DeMorgan's theorem (by taking the dual and complementing each literal
as described in unit2), we obtain the simplified function in product of sums:
F = (A' + B')(C' + D')(B' + D)
The Gate implementation of the simplified expressions obtained above in (a) and
(b):
32
33
Unit:5 Binary Arithmetic Logic
Adders
Digital computers perform a variety of information-processing tasks. Among the
basic functions encountered are the various arithmetic operations. The most basic
arithmetic operation, no doubt, is the addition of two binary digits.
Half-Adder
• A combinational circuit that performs the addition of two bits is called a half-
adder.
• Circuit needs two inputs and two outputs. The input variables designate the
augend (x) and addend (y) bits; the output variables produce the sum (S) and
carry (C).
• Now we formulate a Truth table to exactly identify the function of half-
adder.
The simplified Boolean functions for the two outputs can be obtained directly from
the truth table. The simplified sum of products expressions are:
S = x'y + xy'
C = xy
• Implementation:
34
Full-Adder
• A full-adder is a combinational circuit that forms the arithmetic sum of three
input bits.
• It consists of three inputs and two outputs. Two of the input variables,
denoted by x and y, represent the two significant bits to be added. The third
input, z, represents the carry from the previous lower significant position.
• Truth table formulation:
35
Simplified expression in sum of products can be obtained as:
36
Fig: Implementation of a full-adder with two half-adders and an OR gate
Here, The S output from the second half-adder is the exclusive-OR of z and the
output of the first half-adder, giving:
S = z ⊕ (x ⊕ y)
= z'(xy' + x'y) + z(xy' + x'y)'
= z'(xy' + x'y) + z(xy + x'y')
= xy'z' + x'yz' + xyz + x'y'z
C = z (x ⊕ y) + xy
= z(xy' + x'y) + xy
= xy'z + x'yz + xy
Binary Adder
This circuit sums up two binary numbers A and B of n-bits using full-adders to add
each bit-pair & carry from previous bit position. The sum of A and B can be
generated in two ways: either in a serial fashion or in parallel.
• The serial addition method uses only one full-adder circuit and a storage
device to hold the generated output carry. The pair of bits in A and B are
transferred serially, one at a time, through the single full-adder to produce a
string of output bits for the sum. The stored output carry from one pair of
bits is used as an input carry for the next pair of bits.
• The parallel method uses n full-adder circuits, and all bits of A and B are
applied simultaneously. The outputs carry from one full-adder is connected
to the input carry of the full-adder one position to its left. As soon as the
carries are generated, the correct sum bits emerge from the sum outputs of
all full-adders.
Binary Parallel adder
37
• A binary parallel adder is a digital circuit that produces the arithmetic sum of
two binary numbers in parallel. It consists of full-adders connected in a
chain, with the output carry from each full-adder connected to the input
carry of the next full-adder in the chain.
• Diagram below shows the interconnection of four full-adder (FA) circuits to
provide a 4-bit binary parallel adder.
Subtractors
The subtraction of two binary numbers may be accomplished by taking the
complement of the subtrahend and adding it to the minuend. By this method, the
subtraction operation becomes an addition operation requiring full-adders for its
machine implementation. It is possible to implement subtraction with logic circuits
in a direct manner, as done with paper and pencil. By this method, each subtrahend
bit of the number is subtracted from its corresponding significant minuend bit to
form a difference bit. If the minuend bit is smaller than the subtrahend bit, a 1 is
borrowed from the next significant position. Just as there are half- and full-adders,
there are half- and full-subtractors.
Half-Subtractor
• A half-subtractor is a combinational circuit that subtracts two bits and
produces their difference bit.
• Denoting minuend bit by x and the subtrahend bit by y. To perform x - y, we
have to check the relative magnitudes of x and y:
o If x≥ y, we have three possibilities: 0 - 0 = 0, 1 - 0 = 1, and 1 - 1 = 0.
o If x < y, we have 0 - 1, and it is necessary to borrow a 1 from the next higher
stage.
• The half-subtractor needs two outputs, difference (D) and borrow (B).
38
• The truth table for the input-output relationships of a half-subtractor can
now be derived as follows:
X Y B D
0 0 0 0
0 1 1 1
1 0 0 1
1 1 0 0
The Boolean functions for the two outputs of the half-subtractor are derived
directly from the truth table:
D = x'y + xy'
B = x'y
Full-Subtractor
• A full-subtractor is a combinational circuit that performs a subtraction
between two bits, taking into account that a 1 may have been borrowed by
a lower significant stage.
• This circuit has three inputs and two outputs. The three inputs, x, y, and z,
denote the minuend, subtrahend, and previous borrow, respectively. The
two outputs, D and B, represent the difference and output-borrow,
respectively.
39
The simplified Boolean functions for the two outputs of the full-subtractor are
derived in the maps:
40
Unit: 6 Combinational Logics
Code Conversion
The availability of a large variety of codes for the same discrete elements of
information results in the use of different codes by different digital systems. It is
sometimes necessary to use the output of one system as the input to another. A
conversion circuit must be inserted between the two systems if each uses different
codes for the same information. Thus, a code converter is a circuit that makes the
two systems compatible even though each uses a different binary code.
41
Table: Truth table for code converter example
43
Table: Truth-table for 3-to-8 line Decoder
44
Fig: Implementation of Full-adder with a decoder circuit
Multiplexers
A digital multiplexer is a combinational circuit that selects binary information
from one of many input lines and directs it to a single output line.
o The selection of a particular input line is controlled by a set of selection lines.
o Normally, there are 2n input lines and n selection lines whose bit combinations
determine which input is selected.
A demultiplexer is a circuit that receives information on a single line and
transmits this information on one of 2n possible output lines. The selection of a
specific output line is controlled by the bit values of n selection lines.
o A Decoder with an enable input can function as a demultiplexer.
o Here, enable input and input variables for decoder is taken as data input line
and selection lines for the demultiplexer respectively.
Boolean Function implementation
As decoder can be used to implement a Boolean function by employing an external
OR gate, we can implement any Boolean function (in SOP) with multiplexer since
multiplexer is essentially a decoder with the OR gate already available.
If we have a Boolean function of n + 1 variables, we take n of these variables
and connect them to the selection lines of a multiplexer. The remaining single
variable of the function is used for the inputs of the multiplexer. If A is this single
variable, the inputs of the multiplexer are chosen to be either A or A' or 1 or 0. By
judicious use of these four values for the inputs and by connecting the other
45
variables to the selection lines, one can implement any Boolean function with a
multiplexer.
So, it is possible to generate any function of n + 1 variables with a 2n-to-1
multiplexer.
Example: Implement Boolean function with multiplexer.
Solution: The function can be implemented with a 4-to-1 multiplexer, as shown in
Fig. below. Two of the variables, B and C, are applied to the selection lines in that
order, i.e., B is connected to s1 and C to s0. The inputs of the multiplexer are 0, 1, A
and A'.
7 -segment display:
46
47
Unit:7 Sequential Logic
Memory elements are devices capable of storing binary information within them.
The binary information stored in the memory elements at any given time defines
the state of the sequential circuit. Although every digital system is likely to have
combinational circuits, most systems encountered in practice also include memory
elements, which require that the system be described in terms of sequential logic.
Inputs
Combinational Circuit Outputs
Memory Elements
There are two main types of sequential circuits. Their classification depends on the
timing of their signals.
Synchronous sequential circuit: whose behavior can be defined from the
knowledge of its signals at discrete instants of time
o A synchronous sequential logic system, by definition, must employ signals that
affect the memory elements only at discrete instants of time.
Synchronous sequential circuits that use clock pulses in the inputs of memory
elements are called clocked sequential circuits.
Asynchronous sequential circuit: Behavior depends upon the order in which its
input signals change and can be affected at any instant of time. The memory
elements commonly used in asynchronous sequential circuits are time-delay
devices.
Latching Effect:
The resulting circuit is commonly called a flip-flop, because its output can first flip
one way and then flop back the other way. However at the same time the inverted
48
CLK signal applied to the output (slave) latch prevents the state of the input latch
from having any effect hare.
Flip-Flops
The memory elements used in clocked sequential circuits are called flip-flops. These
circuits are binary cells capable of storing one bit of information. A flip-flop circuit
has two outputs, one for the normal value and one for the complement value of
the bit stored in it. Binary information can enter a flip-flop in a variety of ways, a
fact that gives rise to different types of flip-flops.
A flip-flop circuit can maintain a binary state indefinitely (as long as power is
delivered to the circuit) until directed by an input signal to switch states.
The major differences among various types of flip-flops are in the number of
inputs they possess and in the manner in which the inputs affect the binary state.
It consists of a basic flip-flop circuit and two additional NAND gates along with clock
pulse (CP) input. The pulse input acts as an enable signal for the other two inputs.
When the pulse input goes to 1, information from the S or R input is allowed to
reach the output.
• Set state: S = 1, R = 0, and CP = 1.
• Reset state: S = 0, R = 1, and CP = 1.
• In either case, when CP returns to 0, the circuit remains in its previous state.
When CP = 1 and both the S and R inputs are equal to 0, the state of the
circuit does not change.
49
Q S R Q(t+1)
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 Unpredictable
1 0 0 0
1 0 1 0
1 1 0 1
1 1 1 Unpredictable
Characteristic Table:
Q [Q (t)] is referred to as the present state i.e. binary state of the flip-flop before
the application of a clock pulse.
Given the present state Q and the inputs S and R, the application of a single
pulse in the CP input causes the flip-flop to go to the next state, Q(t + 1).
Characteristic equation
The characteristic equation of the flip-flop specifies the value of the next state as a
function of the present state and the inputs.
50
D Flip-Flop
One way to eliminate the undesirable condition of the indeterminate state in the
RS flip-flop is to ensure that inputs S and R are never equal to 1 at the same time.
This is done in the D flip-flop shown in Fig. below. The D flip-flop has only two
inputs: D and CP. The D input goes directly to the S input and its complement is
applied to the R input.
• As long as CP is 0, the outputs of gates 3 and 4 are at the 1 level and the
circuit cannot change state regardless of the value of D.
• The D input is sampled when CP = 1.
o If D is 1, the Q output goes to 1, placing the circuit in the set state.
o If D is 0, output Q goes to 0 and the circuit switches to the clear state.
JK Flip-Flop
A JK flip-flop is a refinement of the RS flip-flop in that the indeterminate state of
the RS type is defined in the JK type. Inputs J and K behave like inputs S and R to set
and clear the flip-flop, respectively. The input marked J is for set and the input
marked K is for reset. When both inputs J and K are equal to 1, the flip-flop switches
to its complement state, that is, if Q = 1, it switches to Q = 0, and vice versa.
51
A JK flip-flop neither constructed with two cross-coupled NOR gates and two AND
gates is shown in Fig. below:
T Flip-Flop
The T flip-flop is a single-input version of the JK flip-flop and is obtained from the JK
flip-flop when both inputs are tied together. The designation T comes from the
ability of the flip-flop to "toggle," or complement, its state. Regardless of the
present state, the flip-flop complements its output when the clock pulse occurs
while input T is 1. The characteristic table and characteristic equation show that:
When T = 0, Q(t + 1) = Q, that is, the next state is the same as the present state
and no change occurs.
When T = 1, then Q (t + 1) = Q', and the state of the flip-flop is complemented.
52
Triggering of Flip-Flops
The state of a flip-flop is switched by a momentary change in the input signal. This
momentary change is called a trigger and the transition it causes is said to trigger
the flip-flop. Clocked flip-flops are triggered by pulses. A pulse starts from an initial
value of 0, goes momentarily to 1, and after a short time, returns to its initial 0
value.
A clock pulse may be either positive or negative.
A positive clock source remains at o during the interval between pulses and
goes to 1 during the occurrence of a pulse. The pulse goes through two signal
transitions: from 0 to 1 and the return from 1 to 0. As shown in Fig. below, the
positive transition is defined as the positive edge and the negative transition as the
negative edge.
This definition applies also to negative pulses.
53
Master-slave Flip-Flop
A master-slave flip-flop is constructed from two separate flip-flops. One circuit
serves as a master and the other as a slave, and the overall circuit is referred to as
a master slave flip-flop.
JK Master-slave Flip-Flop
Master-slave JK flip-flop constructed with NAND gates is shown in Fig. below. It
consists of two flip-flops; gates 1 through 4 form the master flip-flop, and gates 5
through 8 form the slave flip-flop. The information present at the J and K inputs is
transmitted to the master flip-flop on the positive edge of a clock pulse and is held
there until the negative edge of the clock pulse occurs, after which it is allowed to
pass through to the slave flip-flop.
Operation:
o The clock input is normally 0, which prevents the J and K inputs from affecting
the master flip-flop.
o The slave flip-flop is a clocked RS type, with the master flip-flop supplying the
inputs and the clock input being inverted by gate 9.
o When the clock is 0, Q = Y, and Q' = Y'.
o When the positive edge of a clock pulse occurs, the master flip-flop is affected
and may switch states.
o The slave flip-flop is isolated as long as the clock is at the 1 level
o When the clock input returns to 0, the master flip-flop is isolated from the J and
K inputs and the slave flip-flop goes to the same state as the master flip-flop.
54
55