Top Banner
Chapter 7 Logic Circuits
45

Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Oct 09, 2019

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Chapter 7Logic Circuits

Page 2: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Goal

1. Advantages of digital technology compared to analog technology.

2. Terminology of Digital Circuits.

3. Convert Numbers between Decimal, Binary and Other forms.

5. Binary Arithmetic Operations in digital systems.

6. Interconnect Logic Gates to Implement a given logic function.

7. Karnaugh Maps to Minimize the Number of gates to implement a logic function.

Page 3: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

IntroductionIntroduction

Why Digital Signal Conditioning?1. Multivariable Process Control2. Easy Linearization of Non-Linear System3. Easy Modification and Solution of Complicated System 4. Fully Integrated System using Networking Technique5. Immune from Noise, Power Drift & Analog Problem

Why Not Digital Signal Conditioning?1. Loss of Accuracy2. A/D Converter and D/A Converter Dependence

Page 4: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Digital Signal Compared to Analog Signal

TTL Level

TTL: Transistor-Transistor Logic

Page 5: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

DIGITAL FUNDAMENTALSDIGITAL FUNDAMENTALS

Digital Word : Binary WordDecimal Number : 10 BaseOctal and Hexa Number : 8 and 16 Base

In parallel transmission, an n-bit word is transferred on n wires, one wire for each bit, plus a common or ground wire.

In serial transmission, the successive bits of the word are transferred one after the other with a single pair of wires.

Digital Words

Positive versus Negative Logic

Transmission of Digital Information

Positive Logic : High as 1 Low as 0Negative Logic : High as 0 Low as 1

Page 6: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Binary Numbersm

mbbbN −−− +++= 222 22

1110 L

1 than lessnumber 10 base10 =N1 than lessnumber 2 base... 121 =− mm bbbb

number 2 basein digits ofnumber =m

Page 7: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Gray Code

In Gray Code, Each Word differs in only one bit from each of its adjacent words

Page 8: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Binary Addition

Overflow and Underflow

We must be aware of the possibility of overflow in which the result exceeds the maximum value that can be represented by the word length in use.

Page 9: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Complement Arithmetic

One’s complement : Replacement of 1s by 0s, and vice versa.

0100110110110010 (one’s complement)

Two’s complement : Addition of 1 to the one’s complement,neglecting the carry (if any) out of the most significant bit

0100110110110010 (one’s complement)

Page 10: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Complement Arithmetic

Complements are useful for representing negative numbers and performing subtraction in computers.

Example of Subtraction

Page 11: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

AAA =AAI = 00 =ABAAB = ( ) ( ) ABCCABBCA ==

AND

Page 12: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

0=AA AA =

Inversion

Page 13: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

( ) ( ) CBACBACBA ++=++=++

( ) ACABCBA +=+AA =+ 0

11 =+A 1=+ AAAAA =+

OR

Page 14: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

( ) ( ) CBACBACBA ++=++=++

Truth Table for Associate Law

Page 15: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Implementation of Boolean Algebra

( )( )EDDCABCCBAF ++++=

DEEDACF +++= )(

Page 16: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

De Morgan’s Laws

CBAABC ++= ( ) FEDFED =++

In a Logic Expression 1) the Variables are replaced by their Inverses,2) AND Operation is replaced by OR,3) OR operation is replaced by AND 4) the entire expression is inverted, Resulting expression yields the same as before

Any combinatorial logic function can be implemented solely with AND gate & Inverters. Similarly Any combinatorial logic function can be implemented solely with OR gate & Inverters

Page 17: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Proof of De Morgan’s Law :

TSTS ∪=∩

TxorSxThenTSxeiTSx ∉∉∩∉∩∈ ..

TSxTxorSxHence ∪∈→∈∈

( ) FEDFED =++

CBAABC ++= TSTS ∩=∪

TxorSxThenTSx ∈∈∪∈

TSxTxorSxHence ∩∈→∉∉

Page 18: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

NAND, NOR and XOR Gates

NAND : AND followed by InverterNOR : OR followed by InverterXOR : Exclusively ORBuffer : Same Output with InputEquivalence : True if Inputs are same

XOR followed by Inverter 011110101000

=⊕=⊕=⊕=⊕

XOR

Page 19: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Logical Sufficiency of NAND or NOR

Page 20: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Classical Search Logic Decision

Page 21: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Current Search Logic Decision

Page 22: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Logic Implementation by Boolean AlgebraLogic Implementation by Boolean Algebra

ΒCΑCΑΒΑD__⋅⋅+⋅+⋅=

Alarm Condition1. Low Level with High Pressure2. High Level with High Temperature3. High Level with Low Temperature

and High Pressure

1 2 3

Direct Writing of Required Condition

Page 23: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

CBACABA ⋅⋅+⋅+⋅

AND , OR , NOT Gate

( ) ( )CBACABA

CBACABA

⋅⋅⋅⋅+⋅=

⋅⋅+⋅+⋅

NAND , NOR, NOT gates

ΒCΑCΑΒΑD__⋅⋅+⋅+⋅=

Page 24: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Synthesis of Logic Circuits

(SOP) Sum-of-Products Implementation

In SOP, we form a product of all the input variables (or their inverses) for each row of the truth table for which the result is logic 1. The output is the sum of these products.Product terms that include all of the input variables (or their inverses) are called minterms.

(POS) Product-of-Sums Implementation

In POS, we form a sum of all the input variables (or their inverses) for each row of the truth table for which the result is logic 0. The output is the product of these sums.Sum terms that include all of the input variables (or their inverses) are called maxterms.

Page 25: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

(SOP) Sum-of-Products Implementation

CBA ⋅⋅

CBA ⋅⋅

CBA ⋅⋅CBA ⋅⋅

Page 26: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization
Page 27: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

(POS) Product-of-Sums Implementation

CBA ++

CBA ++CBA ++CBA ++

Take Inverse of Input!

Page 28: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization
Page 29: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Example of Logic Circuit DesignResident Heating System ,Day Time, Heating is required if temperature falls below 18oCNight Time, Heating is required if temperature falls below 25oCLogic Signal : D, H, L

D : Daytime =1 , Night Time = 0H : Temperature > 25oC = 1 , < 25oC = 0L : Temperature < 18oC = 1 , < 18oC = 0

Temperature can not beT < 18oC & T > 25oC

at a time

Neglect the Case!!

Page 30: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

LHDLHDLHDmF ++==∑ )5,4,0(

LHDHDF +=

))()(()7,3,1( LHDLHDLHDMF ++++++==∏

Page 31: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

011110101000

=⊕=⊕=⊕=⊕

Operation

011110101000DBA

Truth TableIn SOP

BABAmF +==∑ )2,1(

))(()4,0( BABAMF ++==∏

In POS

XOR Operation

Page 32: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Display Logic

4 bit logic : 10 case : 7 Output

1

1

1

1

1

1

1

G

1

1

1

1

1

1

F

1

1

1

1

E

111100018

11110019

11111107

1101106

11110105

1100104

111111003

11101002

1110001

111100000

DCBA2 Bit BinaryDecimal

Page 33: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Logic SimplificationSimplification Criterion:

F = (…) + (…) + (…) + … + (…)- with a minimum number of terms- with the fewest possible number of literals

* There may be many, equally good expressions!

With proper duplication of product terms, only the distributive law would do the job.

1. Algebraic Operational SimplificationSimple Algebraic Operation can make Simpler form such as

BCA

ABCA

ABCBABA

ABCBCACBACBACBACBAF

+=

+=

++=

++++=),,(

Page 34: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Use any Boolean Axioms and Theorems, or(1) two adjacent product terms into one bigger product term(2) a term may be used more than once during combination(3) a term may be partitioned into smaller ones

2. Algebraic Boolean Simplification

But, still we have some difficulties:(1) no specific rules to predict each succeeding step(2) difficult to determine whether the simplest expression has been achieved

ABCBCDDA

ABCBCDBBDA

ABCBCDBDADBACBAF

++=

+++=

+++=

)(

),,(

BCD=1, Only if B=1, C=1, D=1 1111 ==== AorAABCorDA Q

Thus BCD is redundant can be dropped

ABCDACBAF +=),,(

Page 35: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

1. 2D Graphical Representation of Truth Table2. Simplification by Manual Operation (not for CAD)3. Simplification of SOP (minterms) 4. Procedure

- Draw K-Map - Write Logic Equation in K-Map- Select True Cube

Karnaugh Maps (Veitch Diagram)

Page 36: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Cube in K-Map

Products of Variable with Cube

Page 37: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Example of K-Map

Page 38: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

- Outputs depend on PAST as well as PRESENT inputs- Simple Memory Logic based on Time Scale- Synchronized by a “Clock”

Sequential Logic Circuits

Flip-Flop

Page 39: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

S-R Flip-Flop

S-R Flip-Flop with 2 NOR Gates

S-R Flip-Flop with 2 NAND Gates

Page 40: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization
Page 41: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization
Page 42: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization
Page 43: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Serial-In Parallel-Out Shift Register

Page 44: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Parallel-In Serial-Out Shift Register

Page 45: Chapter 7 Logic Circuits - SNUengineering.snu.ac.kr/lecture_pdf/EE/Chapter07_SNU.pdf · Introduction Why Digital Signal Conditioning? 1. Multivariable Process Control 2. Easy Linearization

Ripple Counter