0% found this document useful (0 votes)
33 views208 pages

Intregrated Circuts

Uploaded by

1032221865
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views208 pages

Intregrated Circuts

Uploaded by

1032221865
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 208

Basics of Electrical and Electronics Engineering

Course Code:

1
UNIT-IV

Introduction to Integrated Circuits

2
Contents:
Introduction to Integrated Circuits: Analog Integrated
circuits, Basics of OPAMP: study of parameters of IC
741, inverting and non-inverting amplifier, Digital
integrated circuits: Logic Gates, Boolean algebra,
Combinational logic Circuits, De-Morgan’s theorems,
SOP, POS, K- map, Half Adder, Full Adder,
flip-flops: RS flip flop, J-K flip flop, D flip flop, shift
registers (12L)

3
IC- Integrated circuit

•ICs have three key advantages over digital circuits built from
discrete components

•Small size
•ICs are much smaller, both transistors and wires are
shrunk to micrometer sizes, compared to the
centimeter scales of discrete components
•High speed
•Communication within a chip is faster than
communication between chips on a PCB (Printed
Circuit Board)
•Low power consumption
•Logic operations within a chip take much less power
4
Integrated Circuits

It is called Integrated circuit or IC or microchip or chip

It is a microscopic electronic circuit array formed by the


fabrication of various electronic components

Components (resistors, capacitors, transistors,)are


placed on semiconductor material (silicon) wafer

It can perform operations similar to the large discrete


electronic circuits made of discrete electronic
components 5
Different Types of Integrated Circuits

Classification of Integrated Circuits is done based on


various criteria.

Based on the intended application, the ICs are


classified as:

Analog integrated circuits

Digital integrated circuits

Mixed integrated circuits


6
Discrete Circuits

Disadvantages of Discrete Circuits


∙ Assembling and wiring of all individual discrete
components take more time and occupies a larger
space on PCB
∙ Replacement of a failed component is complicated in
an existing circuit or system.
∙ The circuit elements are connected using soldering
process that may cause less reliability.
∙ To overcome these problems of reliability and space
conservation, integrated circuits are developed.
7
Analog Integrated Circuits
The integrated circuits that operate over a continuous range
of signal are called as Analog ICs.

These are subdivided as linear Integrated Circuits (Linear


ICs) and Radio Frequency Integrated Circuits (RF ICs).

The frequently used analog IC is an operational amplifier


or simply called as an op-amp -IC 741

It consists of very less number of transistors compared to


the digital ICs.

8
Digital Integrated Circuits
The integrated circuits that operate only at a few defined
levels instead of operating over all levels of signal
amplitude are called as Digital ICs.

These ICs using multiple number of digital logic gates,


multiplexers, flip flops and other electronic components of
circuits.

These logic gates work with binary input data or digital


input data.

Such as 0 (low or false or logic 0) and 1 (high or true or


logic 1).

9
Digital Integrated Circuits

These digital ICs are frequently used in the computers,


microprocessors, digital signal, processors, computer networks
etc.

There are different types of Digital Integrated Circuits.

Programmable ICs, memory chips, logic ICs, power management


ICs and interface ICs.

10
Mixed Integrated Circuits

It is the combination of analog and digital ICs on a single chip are


called as Mixed ICs.

These ICs functions as Digital to Analog converters, Analog to


Digital converters and clock/timing ICs.

This mixed-signal Systems-on-a-chip is a result of advances in


the integration technology.

It enabled to integrate digital, multiple analog and RF functions


on a single chip.

11
IC Packaging
Basic types of IC packages

• The metal can or transistor pack: chip is encapsulated in a metal


or plastic case. Available with 3,5,8,10 or 12 pins
• LM117 (voltage regulator) has 3 pins
• Power op-amps, audio power amplifiers have 5 pins
• General purpose op-amps come in 8,10 or 12 pins

• The flat pack : the chip is enclosed in a rectangular ceramic case


with terminal leads extending through the sides and ends.
Comes with 8, 10, 14 or 16 pins

• The dual-in-line package (DIP): chip is mounted inside a plastic


or ceramic case
• Most widely used
• Available in 12, 14, 16 and 20 pins
12
SSI, MSI, LSI and VLSI Packages

ICs are classified according to the number of components integrated


on the same chip;

• Small scale integration < 10 components


e.g. gate circuits

• Medium Scale integration < 100 components


e.g. LICs and Combinational Logic Circuits

• Large scale integration > 100 components


e.g. Sequential Logic Circuits

• Very Large Scale integration > 1000 components


e.g. Microprocessor IC
13
Manufacturer’s Designation for ICs

14
Example of Analog IC

Operational Amplifier

15
Operational Amplifier: OP-AMP
•Linear Integrated Circuit
•Linear– Output signal varies according to the input signal
•Integrated – all components are fabricated on a single chip

•Direct coupled high gain amplifier


•Versatile device – amplifies ac as well as dc signals
•Originally designed for computing mathematical functions as
addition, subtraction, multiplication and division, hence the
name
• Used for a variety of applications such as ac and dc signal
amplification, active filters, oscillators, comparators,
regulators, etc.
16
Symbol of Op-Amp

17
Op-amp IC Pinout diagram

18
Block diagram of op-amp

19
Block Diagram of OP-AMP

20
Internal Diagram of Op-Amp

21
Stages of internal block diagram
•Input Stage - The input stage is a Dual input balanced output
differential amplifier. The two amplifiers are applied at
inverting or non inverting terminals. This stage provides most
of voltage gain of the op-amp and decides input resistance
value R1.

•Intermediate Stage - It is driven by output of the input stage.


This stage is dual input unbalanced output differential amp.
This stage provides additional voltage gain to the input signals.

22
Stages of internal block diagram
•Level shifting stage - This is third stage in the block diagram of
op-amp. Due to direct coupling between first two stage the input of
level shifting stage is an amplifying system with non-zero DC level.
Level shifting stage is used to bring this DC level to a zero volt with
respect to ground.

•Output Stage - This is normally complementary output stage. It


increases magnitude of voltage and rises the current supplying
capacity of the op-amp. It also provides low output resistance. The
output stage is a push pull of two transistors.

23
Op Amps Input Modes
Single Ended Mode
Signal is applied to inverting terminal

Signal is applied to non-inverting terminal

24
Op Amps Input Modes
Differential Mode

Common Mode

25
Input Signal Modes

26
Ideal Op-amp and Practical Op-amp Circuit

27
Op-Amp Parameters
•1. Open-loop voltage gain, Go
•2. Input impedance, Zin(Ω)
•3. Output impedance, Zo(Ω)
•4. Input Offset current, Ios (nA)
•5. Input Bias current, IBIAS (nA)
•6. Input Offset voltage, Vos (mV)
•7. Slew rate, SR (V/μs)
•8. CMRR
•9. SVRR / PSRR
•10 Gain Bandwidth product

28
Op-Amp Parameters
Maximum Output Voltage Swing (VO(p-p))

•With no input signal, the output of an opamp is ideally 0 V.


•When an input signal is applied, the ideal limits of the
peak-to-peak output signal are Vcc.
•In practice, however, this ideal can be approached but never
reached. It varies with the load connected to the op-amp and
increases directly with load resistance.
•For example, the Fairchild KA741 datasheet shows a typical
Vo(p-p) of 13V for Vcc = 15V when RL = 2KΩ and
Vo(p-p) increases to 14V when RL = 10KΩ.

29
Op-Amp Parameters

Open-loop voltage gain

•The open-loop voltage gain, Aol, of an op-amp is the internal


voltage gain of the device and represents the ratio of output
voltage to input voltage when there are no external
components.
•The open-loop voltage gain is set entirely by the internal
design.
•Open-loop voltage gain can range up to 200,000 (106 dB)
and is not a well-controlled parameter.
•Datasheets often refer to the open-loop voltage gain as the
large-signal voltage gain.

30
Op-Amp Parameters
Input offset voltage

•The ideal op-amp produces zero volts out for zero volts in.
•In a practical op-amp, however, a small dc voltage, VOUT(error),
appears at the output when no differential input voltage is
applied.
•Its primary cause is a slight mismatch of the base-emitter
voltages of the differential amplifier input stage of an op-amp.
•The input offset voltage, VOS, is the differential dc voltage
required between the inputs to force the output to zero volts.
•Typical values of input offset voltage are in the range of 2 mV
or less. In the ideal case, it is 0 V.

31
Op-Amp Parameters
Input bias current
•The input terminals of a bipolar differential amplifier are the
transistor bases and, therefore, the input currents are the base
currents.
•The input bias current is the dc current required by the inputs of
the amplifier to properly operate the first stage.
•By definition, the input bias current is the average of both input
currents and is calculated as follows:

32
Op-Amp Parameters
Input offset current

•Ideally, the two input bias currents are equal, and thus their
difference is zero.
•In a practical op-amp, however, the bias currents are not exactly
equal.
•The input offset current, IOS, is the difference of the input bias
currents, expressed as an absolute value.

IOS = | I1 – I2 |

•Typical value is 200 nA


33
Op-Amp Parameters

Input Impedance

•The differential input impedance is the total resistance between


the inverting and the noninverting inputs, as illustrated in Figure
•It is measured by determining the change in bias current for a
given change in differential input voltage.

34
Op-Amp Parameters
Output Impedance

•The output impedance is the resistance viewed from the output


terminal of the op-amp, as indicated in Figure

35
Op-Amp Parameters
Slew rate

•The slew rate is the maximum rate of change of output voltage


for a step input voltage.
•The slew rate makes the output voltage to change at a slower
rate than the applied input.
•Max rate of change of output voltage with time. i.e. dv/dt (max)
or ΔV/Δt max expressed in (volts/µs) .
•Slew rate is usually measured in the unity gain non-inverting
amplifier configuration
•Typically it is 0.5 V/μs

36
Slew rate

37
Slew Rate Numerical

38
Op-Amp Parameters
SVRR (Supply Voltage Rejection Ratio) or
Power Supply Rejection Ratio (PSRR)

•Power-supply rejection ratio PSRR is the ratio of the change in


input offset voltage to the corresponding change in
power-supply.
•The PSRR is expressed in mV/V or dB

PSRR = ΔVos / ΔV

39
Op-Amp Parameters
Common Mode Rejection Ratio (CMRR)

•The output signal due to the common mode input voltage is zero,
but it is nonzero in a practical device.
•CMRR is the measure of the amplifier's ability to reject common
mode signals
•The output voltage is proportional to the difference between the
voltages applied to its two input terminals.
•When the two input voltages are equal, ideally the output voltage
should be zero.
•It is a metric used to quantify the ability of the device to reject
common-mode signals, i.e. those that appear simultaneously and
in-phase on both inputs.

40
Common Mode Rejection Ratio (CMRR)
•A signal applied to both input terminals of the op-amp is called
as common-mode signal. Usually it is an unwanted noise
voltage.
•CMRR is defined as the ratio of the open loop differential
voltage gain Aol to the common mode voltage gain Acm

CMRR = Aol / Acm

CMRR=20 log[Aol / Acm] dB

41
CMRR Example

42
Op-Amp Parameters

Gain Bandwidth Product


• It is the bandwidth of the op-amp when the voltage gain is 1
• Typically it is 1 MHz
• Also called closed-loop bandwidth, unity gain bandwidth and
small-signal bandwidth
GBP=Av × f
Where:
GBP = op amp gain bandwidth product
Av = voltage gain
f = cutoff frequency (Hz)

43
Frequency Response of OP-AMP and Bandwidth

44
45
Op Amp Parameters
Parameter values for op-amps IDEAL PRACTICAL

1. Open-loop voltage gain, Go(V/V) INF 2,00,000

2. Input impedance, Zin(Ω) INF 2 MΩ

3. Output impedance, Zo(Ω) 0 75 Ω

4. Input Offset current, Ios (nA) 0 20 nA

5. Input Bias current, IBIAS (nA) 0 80 nA

6. Input Offset voltage, Vos (mV) 0 2 mV

7. Slew rate, SR (V/μs) INF 0.5 V/microsec

8. CMRR INF 90 dB

9. SVRR / PSRR INF 96 dB

10 Gain Bandwidth product INF 1 MHz 46


Comparison of Parameters

47
What is negative feedback?
•Negative feedback is the most useful concepts in OPAMP
applications.

•It is the process whereby a portion of the output voltage of


an amplifier is returned to the input with a phase angle that
opposes the input signal.

48
Negative Feedback / Closed Loop configuration
Negative feedback is illustrated in the Figure.

The inverting input effectively makes the feedback signal 180°


out of phase with the input signal.

49
Why Use Negative Feedback?
• The inherent open-loop voltage gain of a typical op-amp is very
high (usually greater than 100,000).
• Therefore, an extremely small input voltage drives the op-amp
into its saturated output states.
• In fact, even the input offset voltage of the op-amp can drive it
into saturation.
• For example, assume Vin = 1 mV and Aol = 100,000. Then:
VinAol = (1 mV)(100,000) = 100 V
• Since the output level of an op-amp can never reach 100 V, it is
driven deep into saturation and the output is limited to its
maximum output levels, i. e. Vcc.
• With negative feedback, the closed loop voltage gain (Acl) can be
reduced and controlled so that the op-amp can function as a linear
amplifier.
• In addition to providing a controlled, stable voltage gain, negative
feedback also provides for control of the input and output
impedances and amplifier bandwidth.
50
Why Use Negative Feedback?

Without negative feedback, a small input voltage drives


the op-amp to its output limits and it becomes nonlinear.

Positive Saturation

Negative Saturation

51
Effects of negative feedback on op-amp
performance

52
Closed-Loop Voltage Gain, Acl

•The amplifier configuration consists of the op-amp and an


external negative feedback circuit that connects the output to
the inverting input.

•The closed-loop voltage gain is the voltage gain of an


op-amp with external feedback.

•The closed-loop voltage gain is determined by the external


component values and can be precisely controlled by them.

53
Virtual short and Virtual ground

54
Virtual Ground
• If the non-inverting (+) terminal of OP-AMP is connected to ground, then
due to the "virtual short" existing between the two input terminals, the
inverting (-) terminal also be at ground potential. hence it is said to be as
"virtual ground".
• The input impedance (Ri) of an OP-AMP is ideally infinite. Hence current
"I" flowing from one input terminal to the other will be zero.

55
Inverting Amplifier
•An op-amp connected as an inverting amplifier with a
controlled amount of voltage gain is shown in Figure
•The input signal is applied through a series input resistor Ri to
the inverting (-) input.
•Also, the output is fed back through Rf to the same input. The
noninverting (+) input is grounded.

56
Inverting Amplifier
•Since there is no current at the inverting input, the current
through Ri and the current through Rf are equal, as shown in
Figure
Iin = If

FIGURE: Virtual ground concept and closed loop voltage gain


development for the inverting amplifier. 57
Inverting Amplifier

58
The closed-loop gain is independent of the op-amp’s internal open-loop gain.
Numerical

59
Exercise

Acl = -12.5

60
Voltage-Follower
• The voltage-follower configuration is a special case of the noninverting
amplifier where all of the output voltage is fed back to the inverting input
by a straight connection, as shown in Figure.
• The straight feedback connection has a voltage gain of 1 (which means
there is no gain).
• Since B = 1 for a voltage-follower, the closed-loop voltage gain of the
voltage-follower is 1/B

Acl(VF) = 1

• The most important features of the voltage-follower


configuration are its very high input impedance and
its very low output impedance.

• These features make it a nearly ideal buffer amplifier


for interfacing high-impedance sources and
low-impedance loads.
61
Noninverting Amplifier
• An op-amp connected in a closed-loop configuration as a noninverting
amplifier with a controlled amount of voltage gain is shown in Figure.
• The input signal is applied to the noninverting (+) input.
• The output is applied back to the inverting input through the feedback
circuit (closed loop) formed by the input resistor Ri and the feedback
resistor Rf.
• This creates negative feedback as: Resistors Ri and Rf form a
voltage-divider circuit, which reduces Vout and connects the reduced
voltage Vf to the inverting input.

The feedback voltage is expressed as

62
Noninverting Amplifier

Then applying basic algebra,

Fig. Differential input, Vin -


63
V f.
Noninverting Amplifier
Since the overall voltage gain of the amplifier in is Vout/Vin, it can be
expressed as

64
Closed loop Gain
• Notice that the closed-loop voltage gain is not at all
dependent on the op-amp’s open-loop voltage gain under the
condition Aol B >> 1
• Example : Aol= 100000 , B<1

• The closed-loop gain can be set by selecting values of Ri


and Rf

65
Numerical

Practice problem: Find Ri to get gain as 30 with the same value of Rf.
66
Exercise
Determine closed loop gain of each amplifier

Ans. 11 101 47.8 23

67
Exercise
Find Rf Value for the each op amp.

Ans. 49K 3M 84K 165K

68
Exercise
If signal voltage is 10mVrms, find the output voltage.

Ans. a)10mVrms, in phase b) -10mVrms,out of phase


c) 223 mVrms, in phase d) -100 mVrms, out of phase

69
Exercise
In the circuit given below, if R2 = 1 K & R1= 10 K & input in 0.1V
what will be the output

Ans. Acl = - R1/R2 = 10


Vout = Vin * Acl
Vou = -1V, out of phase

70
Exercise
Calculate the input voltage for this circuit if Vo = –11 V.

Ans. Vin = 1.1 V

71
Exercise

An OP-AMP is used in inverting mode with R1= 1K Ω and RF = 15KΩ.


Vcc = +/- 15V. Calculate the output voltage for i) Vi= 150 mV ii) Vi= 1V

Solution:

A= -RF/R1= -(15 KΩ / 1KΩ) = -15

i) Vi= 150 mV
Vo= (-15 × 150 mV) = -0.225V

ii) Vi= 1V
Vo= (-15 × 1V) = -15V

72
Advantages of Digital signals

•Data transmission is more effective and reliable


•Digital data has a great advantage when storage is
necessary
•Digital data is more accurate and precise
•Its ripple free or noise free
A System Using analog and Digital
Methods
Mechatronics

• The interdisciplinary field that comprises both mechanical and


electronic components is known as mechatronics
• Both digital and analog electronics are used in the control of
various mechanical systems.
Digital Electronics

•It uses Binary Digits 0 and 1


•Each of the two digits in the binary system, 1 and 0, is called a
bit, Two different voltage levels are used to represent the two
bits.
•1 - is represented by the higher voltage, which will be referred
as a HIGH,
•0 - is represented by the lower voltage level, which will be
referred as a LOW.
•This is called positive logic and will be used throughout the
topic.
Logic Level ranges or Voltage for a
digital circuits
Logic Levels

•Positive Logic levels


Examples of digital waveforms
(a) Periodic (square wave)

(b) Non-periodic

▪ An important characteristic of a periodic digital waveform is its duty


cycle, which is the Ratio of the pulse width (tW) to the period (T). It can
be expressed as a percentage
Digital waveforms
Digital Data Transfer
Decimal Number System

▪ The decimal number system has a base of 10.


▪ The position of each digit in a decimal number indicates the
magnitude of the quantity represented and can be assigned a
weight.
▪ The weights for whole numbers are positive powers of ten
that increase from right to left, beginning with 100 = 1.
Binary Numbers
▪ Binary system has only two
digits.
▪ Binary system with its two digits
is a base-two system.
▪ The two binary digits (bits) are 1
and 0.
▪ The position of a 1 or 0 in a
binary number indicates its
weight, or value within the
number, just as the position of a
decimal digit determines the
value of that digit.
▪ The weights in a binary number
are based on powers of two.
Binary Numbers
Binary-to-Decimal Conversion
▪ The decimal value of any binary number can be found by
adding the weights of all bits that are 1 and discarding the
weights of all bits that are 0.

▪ Convert the binary whole number 11011001 to decimal.


▪ Determine the weight of each bit that is a 1, and then find the
sum of the weights to get the decimal number.
Binary-to-Decimal Conversion
Binary-to-Decimal Conversion
Steps for Decimal to Binary Conversion

Step – 1 Divide the decimal number which is to be converted by two

Step – 2 The remainder which is obtained from step 1 is the least


significant bit of the binary number.

Step – 3 Divide the quotient which is obtained from the step 2 and
the remainder obtained from this is the second least significant bit of
the binary number.

Step – 4 Repeat the process until the quotient remains zero.

Step – 5 The last remainder obtained from the division is the most
significant bit of the binary number. Hence arrange the number from
most significant bit to the least significant bit (i.e., from bottom to
top).
Binary-to-Decimal Conversion

Convert decimal 25 to binary


Binary-to-Decimal Conversion

Remainder

Binary Number = 10100000


Binary Addition

•The four basic rules for adding binary digits (bits) are as
follows:

In binary 1 + 1 = 10, not 2.

Ex. Addition of 11 + 1:
Answer: 100
Basic Logic Functions
• In the 1850s, the Irish logician and mathematician George Boole developed a
mathematical system for formulating logic statements with symbols so that problems can
be written and solved in a manner similar to ordinary algebra
• The term logic is applied to digital circuits used to implement logic functions.
• Three basic logic functions - NOT, AND, and OR
• Logic functions are indicated by standard symbols shown below
• The inputs are on the left of each symbol and the output is on the right.
• A circuit that performs a specified logic function (AND, OR) is called a logic gate.
• AND and OR gates can have any number of inputs.

The basic logic functions and symbols


Logic Functions
• In logic functions, the true/false conditions are represented by a HIGH (true) and
a LOW (false).

1. NOT function/NOT Gate

Logic Expression for an Inverter :


An Application of Inverter
•Figure shows a circuit for producing the 1’s complement of
an 8-bit binary number.
Logic Functions (AND)
2. AND function/ AND Gate
The AND function produces a HIGH output only when all the inputs are
HIGH, as indicated in Figure for the case of two inputs.
• When one input is HIGH and the other input is HIGH, the output is HIGH.
• When any or all inputs are LOW, the output is LOW.
• The AND function is implemented by a logic circuit known as an AND
gate.
AND Gate
The total number of possible combinations of binary inputs to a gate is
determined by the following formula:

N = 2n
Logic Expression for AND gate : X = A • B = AB

Example of AND gate operation with a timing


diagram showing input and output relationships.
Example 1
Determine output X: Write logical expression and output waveform
Example 1 Solution
Example 2

Determine output X: Write logical expression and output waveform


Logic Functions (OR)
3. OR function/ OR Gate
• The OR function produces a HIGH output when one or more inputs are
HIGH, as indicated in Figure for the case of two inputs.
• When one input is HIGH or the other input is HIGH or both inputs are HIGH,
the output is HIGH.
• When both inputs are LOW, the output is LOW.
• The OR function is implemented by a logic circuit known as an OR gate.
OR Gate

Logic Expression OR gate X = A + B

Example of OR gate operation with a timing


diagram showing input and output relationships.
OR Gate
Logic Function NAND
The NAND gate is the same as the AND gate with the inverted output.

The Boolean expression for the output of a 2-input NAND gate is


Example NAND Gate
NOR Gate

Logic Expressions for a NOR Gate: ->


Example NOR gate
EX-OR Gate
There are two special gates, i.e., Ex-OR and Ex-NOR. These
gates are not basic gates in their own and are constructed by
combining with other logic gates.

Truth
Table

Logic Expressions for a XOR Gate:


EX-OR Gate
EX-NOR Gate

Truth
Table

Logic Expressions for a XOR Gate:


EX-NOR Gate
Determine the output waveform for XOR and XNOR gate for given
input waveforms A and B
OR Gate

AND Gate
NOT Gate

NOR Gate
NAND Gate

XOR Gate
Digital Circuits
Basically, Digital Circuits are divided into two broad
categories
✔ Combinational circuits
• Combinational Circuit is the type of circuit in which
output depend upon the input present at that
particular instant.

✔ Sequential circuits
• Sequential circuit is the type of circuit where output at
any instant of time depend upon the current input as
well as on the previous input/output.
• It consists of memory element
Combinational Logic Circuit Representation
Combinational Logic Circuits
•Combinational logic circuits have no feedback, and any changes
to the signals being applied to their inputs will immediately
have an effect at the output.
•It has no “memory”, “timing” or “feedback loops”.
•The three main ways of specifying the function of a
combinational logic circuit are:
• Boolean Expression – This forms the algebraic expression
showing the operation of the logic circuit
• Truth Table – Shows all the output states in tabular form
for each possible combination of input variable
• Logic Diagram – This is a graphical representation of a
logic circuit
Combinational Logic Circuit
Boolean expression
A(B + C)

Truth Table

Logic Diagram
Boolean Algebra
Boolean algebra is the mathematics of digital logic

Commutative Laws :

• The commutative law of addition for two variables is written as

• The commutative law of multiplication for two variables is


Associative Laws

• The associative law of logical addition is written as follows for three


variables:

• The associative law of logical multiplication is written as follows for three


variables
Distributive Law

•The distributive law is written for three variables as follows:

A(B + C) = A.B + A.C (OR Distributive Law)


A + (B.C) = (A + B).(A + C) (AND Distributive Law)
Basic rules of Boolean algebra

Rule 1

Rule 2
Rule 3

Rule 4

Rule 5

Rule 6

Rule 7

Rule 8
Rule 9

Equivalence
Equivalence
De Morgan’s theorem
1. The complement of a product of variables is equal to the sum of the complements
of the variables.
OR
The complement of two or more ANDed variables is equivalent to the OR of the
complements of the individual variables.

2. The complement of a sum of variables is equal to the product of the


complements of the variables.
OR
The complement of two or more ORed variables is equivalent to the AND of the
complements of the individual variables.
De Morgan’s Theorem 1

A·B =A +
B

EQUAL

NAND = Bubbled OR
De Morgan’s Theorem 2
A + B = A · B

EQUAL

NOR = Bubbled AND


De Morgan’s Law
Summary

• NAND is the same as OR with complemented inputs

• NOR is the same as AND with complemented inputs


NAND gate as universal logic gate
OR gate using NAND gate

A + B= A + B = A · B
NOR gate as universal logic gate
Exercise
Exercise- Solution

= X .Y . Z

=W+X+Y+Z

=(A+B+C) + D = A B C + D
=A B C . D E F = (A + B + C) . ( D + E + F )
Standard Forms of Boolean Expressions
1. Sum-of-products form (SOP)
2. Product-of-sums form (POS)

The Sum-of-Products (SOP) Form:


• An SOP expression can be implemented with one OR gate and two or
more AND gates.
The Product-of-Sums (POS) Form

• When two or more sum terms are multiplied, the resulting


expression is a product-of-sums (POS).
• Implementing the POS expression simply requires AND ing the
outputs of two or more OR gates
Combinational Circuit Realization

Realization of logic expression (3 level ):


Combinational Circuit realization (SOP)

SOP form:

2 level realization
SOP realization using only one type of gate(NAND)

SOP realized using NAND gates only


Boolean Algebra Rules
Combinational Circuit Realization(POS)
POS realization using only one type of gate(NOR)
Construct SOP form expression from a Truth Table
Construct POS form expression from a Truth Table

F = (A + B + C) (A + B + C) (A + B + C) (A + B + C) (A + B + C)
Canonical SOP form and POS form

•Each individual term in canonical SOP form is called as


minterm and in canonical POS form as maxterm
Shorthand form of canonical SOP using minterms

F = m1 + m3 + m5

F = Σm (1, 3, 5)
Shorthand form of canonical POS using maxterms

F = (A + B + C) (A + B + C) (A + B + C) (A + B + C) (A + B + C)

F = M0 M2 M4 M6 M7

F = Π M (0, 2, 4, 6, 7)
A B C D
0 0 0 0 0
Four Variables
0 0 0 1 1
0 0 1 0 2
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1 15
Complementary Property of minterms and
maxterms
Simplification of Boolean expression
•The required Boolean results are transferred from a truth
table onto a two-dimensional grid where, in Karnaugh maps,
the cells are ordered in Gray code,[6][4] and each cell position
represents one combination of input conditions, while each
cell value represents the corresponding output value.
Optimal groups of 1s or 0s are identified, which represent
the terms of a canonical form of the logic in the original
truth table.[7] These terms can be used to write a minimal
Boolean expression representing the required logic.
The Karnaugh Map( K map) Technique

• A Karnaugh map technique provides a graphical, systematic


method for simplifying Boolean/ logic expressions

• Karnaugh map is an array of cells in which each cell represents


a binary value of the input variables

• K-map produce the simplest SOP or POS expression possible,


known as the minimum expression

• The information contained in the truth table or available in


SOP/ POS form is represented on K map

• Karnaugh maps can be used easily used as a tool to simplify


expressions with two, three, four , five variables
K-maps

• K-maps adjacencies wrap around


edges
• Wrap from first to last column
• Wrap top row to bottom row

• Numbering scheme is based on


Gray–code (only a single bit
changes in code for adjacent map
cells

• K-maps are hard to draw and


visualize for more than 4
dimensions, and
virtually impossible for more than
6 dimensions
minterms/ maxterms written inside the
corresponding cell in the K-map

Two variable K-map

minterms Maxterms

Three variable K-map


Minterms and maxterms for each cell in
Four Variable K-map
Procedure for Obtaining Simplified Boolean equation from
K-map

1. Identify adjacent ones for grouping (Group size 2, 4, 8 )


2. See the values of the variables associated with these cells
3. Only one variable will be different and it gets eliminated
4. Other variables will appear in ANDed form in the term, it will be in
the uncomplemented form if it is 1 and in complemented form if it
is 0.
5. Determine the term corresponding to each group of adjacent
ones.
6. These terms are ORed to get the simplified equation in SOP form.
K-map examples (2 variable)

A’ is A bar and B’ is B bar


K Map – 2 variables examples
K Map – 2 variables examples
K Map – 2 variables examples
A 0 1
B
0 1 1 Find the Boolean expression
1 0 0
K-map examples (3 variable)

X
YZ
K-map examples (3 variable)

Solution is : F = yz + xz + xy
• YZ
• X
• 1 1 1 1
1 1 1 1

F=1
K-map examples (3 variable)
Example:
F = x’y’z + x’yz + x’yz’ + xy’z’ + xy’z + xyz
Solution:
The equation has six minterms. So, enter 1’s at appropriate positions in the
K-Map

Solution is: F = z + x’y + xy’


K-map examples (3 variable)

Adjacent cells for grouping


K-map examples (3 variable)
Redundant Groups

• A redundant group is one whose all the 1’s have been consumed by other
groups. So, there is no need to form such group. Whenever you see that
all 1’s of a group have been exhausted, simply ignore that group.

xy’

y = x’z + xy’
K-map examples (3 variable)

1. F = Σm( 0, 1, 4, 5, 6 )

F = Y’ + X Z’

2. F = Σm( 1, 2, 5, 7 )

F = X’ Y Z’ + X Z + Y’ Z
K-map examples (4 variable)
K-map examples (4 variable)

F(W,X,Y,Z) = Σm(1,3,4,5,6,7,9,11,12,13,14,15)

Grouping 8 adjacent
binary ones

Simplified expression is F = x + z
K-map examples (4 variable)

F(A,B,C,D) = Σm(0,2,3,5,6,7,8,10,11,14,15)

F= + A’BD + B’D’
C
AB
A
CD 1 0 0 1

0 1 0 0
D
1 1 1 1
C
1 1 1 1
B
K-map examples (4 variable)
Simplify the expression
K map is given, Find the truth table, Boolean expression in
SOP and POS forms

How many variables in the expression?

How many SOP terms in the expression?

How many POS terms in the expression?

How many groupings for simplification?

How many terms in the simplified expression


Truth Table
Logical expression in canonical SOP and POS
forms
Simplified Boolean Expression will have five
terms

F=
A’B’C’D’
+
A’BD
+
BCD+

ABD’
+
AB’CD’
Arithmetic Circuits: Half Adder
•A half-adder is an arithmetic circuit block that can be
used to add two 1 bit numbers. Such a circuit thus has
two inputs that represent the two bits to be added and
two outputs, with one producing the SUM output and
the other producing the CARRY.
•Possible input combinations and the corresponding
outputs are as given in the truth table.
•The Boolean expressions for the SUM and CARRY
outputs are given by the following equations.
Half Adder Truth Table , Kmap, Realization
Sum = S
Input Output

A B S C
0 0 0 0
0 1 1 0
1 0 1 0

1 1 0 1
Carry = C
Full Adder

•A full adder circuit is an arithmetic circuit block that


can be used to add three bits to produce a SUM and a
CARRY output.
•Such a building block is needed in order to add binary
numbers with a large number of bits.
•The full adder circuit overcomes the limitation of the
half-adder, which can be used to add two bits only
Full Adder
Sum = S

S = A’B’C + A’BC’+AB’C’+ABC
= A’(B’C + BC’) + A(B’C’ + BC)
= A (B C) + A (B C )
=A B C

Carry = CR

S = ∑m(1,2,4,7)
C = ∑m(3,5,6,7) CR = AB + BC + AC
Full Adder
0
1

0
1

S C
Sequential Logic Circuit
• Sequential logic is a type of logic circuit whose output depends not only on the
present value of its input signals but on the sequence of past inputs, the input
history.
• Sequential logic is combinational logic with memory.

• Sequential logic circuits are classified in 2 categories


✔Synchronous
✔Asynchronous
Clock Pulse-
CK =0 or CK=1
• A Synchronization is achieved by the timing device known as
system clock which generates a periodic train of clock pulses
shown in figure.
• The outputs are affected with the application of clock pulse, CK.
SR latch, SR flipflop resources
•https://youtu.be/kt8d3CYWGH4
•https://youtu.be/HZg7fNu-l24
SR Latch (1-Bit Memory Cell )
Basic SR Flip-flop
• The simplest way to make any basic single bit set-reset SR flip-flop is to
connect together a pair of cross-coupled 2-input NAND gates as shown
• There is feedback from each output to one of the other NAND gate inputs.
This device consists of two inputs, one called the Set, S and the other called
the Reset, R with two corresponding outputs Q and its inverse or
complement Q (not-Q) as shown below.
Clocked SR Flip-Flop

1 0 1

1
SR Flip-Flop
Block diagram

Race Around
SR Flip flop Operation
S.N. Condition Operation

1 S = R = 0 , CK=1 If S = R = 0 then output of NAND gates 3 and 4 are


forced to become 1.
Hence R' and S' both will be equal to 1. Since S'
and R' are the input of the basic S-R latch using
NAND gates, there will be no change in the state of
outputs.
2 S = 0, R = 1, CK = Since S = 0, output of NAND-3 i.e. R' = 1 and CK =
1 1 the output of NAND-4 i.e. S' = 0.
Hence Qn+1 = 0 and Qn+1 bar = 1. This is reset
condition.

3 S = 1, R = 0, CK = Output of NAND-3 i.e. R' = 0 and output of NAND-4


1 i.e. S' = 1.
Hence output of S-R NAND latch is Qn+1 = 1 and
Qn+1 bar = 0. This is the set condition.

4 S = 1, R = 1, CK = As S = 1, R = 1 and E = 1, the output of NAND


1 gates 3 and 4 both are 0 i.e. S' = R' = 0.
Hence the Race condition will occur in the basic
NAND latch.
J-K Flip-Flop

Uncertainty in the state of SR flip-flop when S=R=1 can be eliminated by


converting it into JK flip-flop

Asynchronous inputs-
Active low
Pr= Preset
Cr= Clear
Truth Table of JK flip flop
Truth Table of J-K Flip-Flop
Fig: Block Diagram
D Flip-Flop
• If we use only middle two rows of SR or JK flip-flop, We obtain D Flip-flop.
Operation of D Flip-Flop

S. Condition Operation
No.

1 E=0 Latch is disabled. Hence no change in output.

2 E = 1 and D = 0 If E = 1 and D = 0 then S = 0 and R = 1.


Hence irrespective of the present state, the next
state is Qn+1 = 0 and Qn+1 bar = 1. This is the
reset condition.

3 E = 1 and D = 1 If E = 1 and D = 1, then S = 1 and R = 0.


This will set the latch and Qn+1 = 1 and Qn+1 bar =
0 irrespective of the present state.
T Flip-Flop
• In JK flip-flop, if J=K, the resulting Flip-flop is called as T Flip-flop.
Operation of T Flip-Flop

S.N Condition Operation


.
1 T = 0, J = K = The output Q and Q bar won't change
0

2 T = 1, J = K = Output will toggle corresponding to every


1 leading edge of clock signal.
Shift Register
• Register is a digital circuit with two basic functions:
1. Data storage
2. Data Movement
• A register can consist of one or more flip flops used to store and shift data
• Shift Registers are an important Flip-Flop configuration with a wide range of
applications, including:
❖ Computer and Data Communications
❖ Serial and Parallel Communications
❖ Multi-bit number storage
❖ Sequencing
❖ Basic arithmetic such as scaling (a serial shift to the left or right will
change the value of a binary number a power of 2)
❖ Logical operations
Parallel versus Serial Communication
•Serial communications: provides a binary number as a
sequence of binary digits, one after another, through one
data line.

•Parallel communications: provides a binary number as


binary digits through multiple data lines at the same time.
Application of Flip flop- Shift Registers
• Shift Registers are devices that store and move data bits in serial fashion (to
the left or the right),

• In parallel fashion

• A combination of serial and parallel fashion


Data Transfer Methods/ Modes
1. SISO: Serial In, Serial Out 3. PISO: Parallel In, Serial Out

10110
10110 10110

2n-1 clock cycle 10110


n clock cycle

2. SIPO: Serial In, Parallel Out 4. PIPO: Parallel In, Parallel Out
10110
10110

1 clock cycle
10110

n clock cycle 10110

How many clock edges are required for each operation?


SISO Flip-Flop Shift Register
•A Serial In Serial Out shift register has a single input and a
single output

Input D Q D Q D Q Output
CLK Q Q Q
SIPO Flip-Flop Shift Register
•Serial In Parallel Out shift register has a single input and access
to all outputs

Output Output Output

Input D Q D Q D Q

CLK Q Q Q
PIPO Flip-Flop Shift Register
•Parallel In Parallel Out register has the simplest configuration. It
represents a memory device.

Input Input Input

D Q D Q D Q

CLK Q Q Q

Output Output Output


PISO Flip-Flop Shift Register
• Parallel In Serial Out shift register requires additional gates,
and the parallel input must revert to logic low.

Input Input Input


Output
D Q D Q
D Q 1
0
0 Q
Q
Q
Universal Shift Registers
•Universal Shift Registers can be configured to
operate in a variety of modes. For instance, they can
be configured to have either Serial or Parallel
Input/Output.

•Mode of Operations
•SISO
•SIPO
•PISO
•PIPO
Additional links for more information:

•http://www.ee.surrey.ac.uk/Projects/CAL/digital-logic/gates
func/
•https://www.electronicshub.org/half-adder-and-full-adder-c
ircuits/
THANK YOU

208

You might also like