Logic and Sequential Circuit Design (EC – 201). Textbook Digital Logic and Computer Design by M. Morris Mano (Jan 2000 )

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Boolean Algebra and Logic Gates
Combinational Logic Circuits Chapter 2 Mano and Kime.
Chapter 2 Logic Circuits.
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
CHAPTER 3 Digital Logic Structures
Boolean Algebra and Logic Gates
1 Chapter 2 Boolean Algebra and Logic Gates The most common postulates ( 假設 ; 基本條件 ) used to formulate various algebraic structures are: 1. Closure ( 封閉性.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
Chapter Two Boolean Algebra and Logic Gate
Chapter 2: Boolean Algebra and Logic Functions
Mantıksal Tasarım – BBM231 M. Önder Efe
Chapter 2 Boolean Algebra and Logic Gates
2-6 Other Logic Operations For two variables one can achieve sixteen operations Only eight are useful for computers Boolean algebra built on AND, OR and.
1 Why study Boolean Algebra? 4 It is highly desirable to find the simplest circuit implementation (logic) with the smallest number of gates or wires. We.
Boolean Algebra and Logic Gates CE 40 B 18 June 2003.
1 Logic Gates Digital Computer Logic Kashif Bashir WWW:
Dept. of Computer Science Engineering Islamic Azad University of Mashhad 1 DIGITAL LOGIC CIRCUITS Dept. of Computer Science Engineering Islamic Azad University.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Chapter 2 Boolean Algebra and Logic Gates 授課教師 : 張傳育 博士 (Chuan-Yu Chang Ph.D.) Tel: (05) ext.
Chapter 2. Outlines 2.1 Introduction 2.2 Basic Definitions 2.3 Axiomatic Definition of Boolean Algebra 2.4 Basic thermos and proprieties of Boolean Algebra.
Logic Design Dr. Yosry A. Azzam.
Switching Theory and Logic Design
Digital System Ch2-1 Chapter 2 Boolean Algebra and Logic Gates Ping-Liang Lai ( 賴秉樑 ) Digital System 數位系統.
Gate-Level Minimization
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Chap 2. Combinational Logic Circuits. Chap Binary Logic and Gates l 디지털 회로 (Digital circuits) o hardware components that manipulate binary information.
LOGIC GATES & BOOLEAN ALGEBRA
Boolean Algebra and Logic Gates
Chap 2. Combinational Logic Circuits
1 Logic Gates and Circuits  Logic Gates Logic Gates  The Inverter The Inverter  The AND Gate The AND Gate  The OR Gate The OR Gate  The NAND Gate.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 2 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
A. Abhari CPS2131 Chapter 2: Boolean Algebra and Logic Gates Topics in this Chapter: Boolean Algebra Boolean Functions Boolean Function Simplification.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
Boolean Algebra & Logic Circuits Dr. Ahmed El-Bialy Dr. Sahar Fawzy.
Module 5.  In Module 3, you have learned the concept of Boolean Algebra which consists of binary variables and binary operator.  A binary variable x,
Boolean Algebra and Logic Gates
Chapter 2: Basic Definitions BB inary Operators ●A●AND z = x y = x yz=1 if x=1 AND y=1 ●O●OR z = x + yz=1 if x=1 OR y=1 ●N●NOT z = x = x’ z=1 if x=0.
1 Digital Logic Circuits Computer Organization Computer Architectures Lab Logic Gates Boolean Algebra Map Specification Combinational Circuits Flip-Flops.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 4 Dr. Shi Dept. of Electrical and Computer Engineering.
ECE DIGITAL LOGIC LECTURE 8: BOOLEAN FUNCTIONS Assistant Prof. Fareena Saqib Florida Institute of Technology Spring 2016, 02/11/2016.
EE345 - Micro-Controllers Boolean Algebra and Logic Gates Prof. Ahmad Abu-El-Haija.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
CSE 260 BRAC University.
Fuw-Yi Yang1 數位系統 Digital Systems Department of Computer Science and Information Engineering, Chaoyang University of Technology 朝陽科技大學資工系 Speaker: Fuw-Yi.
CHAPTER 2 Boolean algebra and Logic gates
Digital Logic Circuits, Digital Component and Data Representation Course: BCA-2 nd Sem Subject: Computer Organization And Architecture Unit-1 1.
Chapter 2: Boolean Algebra and Logic Functions
DIGITAL LOGIC CIRCUITS
Unit 2 Boolean Algebra.
CS 105 Digital Logic Design
Introduction to Logic Gates
PROPAGATION DELAY.
Princess Sumaya University
DIGITAL LOGIC CIRCUITS
ECE 331 – Digital System Design
Speaker: Fuw-Yi Yang 楊伏夷 伏夷非征番, 道德經 察政章(Chapter 58) 伏者潛藏也
Boolean Algebra.
Boolean Algebra.
INTRODUCTION TO LOGIC DESIGN Chapter 2 Boolean Algebra and Logic Gates
Lecture 14: Boolean Algebra
Chapter 2 Boolean Algebra and Logic Gate
2. Boolean Algebra and Logic Gates
Digital Logic Design I Gate-Level Minimization
January 19 W’05 Yutao He 4532B Boelter Hall CSM51A/EEM16-Sec.1 W’05
MINTERMS and MAXTERMS Week 3
Logic Circuits I Lecture 3.
Digital Logic Chapter-2
Digital Logic Chapter-2
Presentation transcript:

Logic and Sequential Circuit Design (EC – 201)

Textbook Digital Logic and Computer Design by M. Morris Mano (Jan 2000 )

Topics Boolean Algebra and Logic Gates: Binary Logic and Gates, Boolean Algebra and Functions, Canonical and Standard Forms, Logic Operations, Digital Logic Gates, and IC Digital Families. Simplification of Boolean Functions: K-Map Method and Simplification using Different Variables Map, Simplification of Product of Sums, Implementation with NAND and NOR Gates, Don’t Care Conditions, The Tabulation Method, Determination of Prime-Implicants, and Selection of Prime-Implicants.

Continue… Combinational Logic Design: Design Procedure, Adders, Subtractors, Code Conversion, Analysis Procedure, Multilevel NAND Circuits, Multilevel NOR Circuits, Exclusive-OR, and Equivalence Functions Combinational Logic with MSI and LSI: Decimal Adder, Magnitude Comparator, Decoders, Encoders, Multiplexers, Demultiplexers, Binary Adders, Binary Subtraction, Binary Adder- Subtractors, Binary Multipliers and HDL Representation – VHDL/Verilog

Continue… Sequential Logic/Circuits: Latches, Flip-Flops, Triggering of Flip-Flops, Clocked Sequential Circuits and their Analysis, State Reduction and Assignment, Flip-Flop Excitation Tables, Design Procedure, Designing with D & JK Flip-Flops, HDL/Verilog Representation for a Sequential Circuits – VHDL/Verilog

Boolean Algebra & Logic Gates

Common Postulates (Boolean Algebra) Closure N={1,2,3,4,5,…..} It is closed w.r.t + i.e. a+b=c asa,b,cΣN Associative Law (x*y)*z = x*(y*z) for all x,y,z,ΣS Commutative Law x*y = y*x for all x,yΣS x+y = y+x x.Y = y.x

Common Postulates (Boolean Algebra) Identity Element e*x = x*e = xx Σ S e+x = x+e = x 0+x = x+0 = x 1*x = x*1 = x Inverse x*y = e  a*1/a = 1 x+y = e a+(-a) = 0 Distributed Law x*(y.z) = (x*y). (x*z) x.(y+z) = (x.y) + (x.z) x+(y.z) = (x+y). (x+z) x+0 = 0+x = x x.1 = 1.x = x x+x’ = 1 x.x’ = 0

Boolean Algebra and Logic Gates xyx.yxyx+yxx’ xyzY+zx.(y+z)x.yx.z(x.y)+x.z x.(y+z) = (x.y)+(x.z)

Postulates and Theorems of Boolean Algebra Postulate 2(a) x+0 = x(b) x.1 = x Postulate 5(a) x+x’ = 1(b) x.x’ = 0 Theorem 1(a) x+x = x(b) x.x = x Theorem 2(a) x+1 = 1(b) x.0 = 0 Theorem3, involution (x’)’ = x Postulate3, commutative(a) x+y = y+x(b) xy = yx Theorem4, associative(a) x+(y+z)=(x+y)+z(b) x(yz) = (xy)z Postulate4, distributive(a) x(y+z)=xy+xz(b) x+yz = (x+y)(x+z) Theorem5, DeMorgan(a) (x+y)’ = x’y’(b) (xy)’ = x’+y’ Theorem6, absorption(a) x+xy = x(b) x(x+y)=x

Theorems 1a.x+x = x x+x = (x+x).1 = (x+x)(x+x’) = x+xx’ =x+0 =x 1b.x.x = x (Remember Duality of 1a) x.x = xx+0 = xx+xx’ = x(x+x’) = x.1 =x

Theorems 2a.x+1 = 1 x+1 =1.(x+1) = (x+x’)(x+1) = (x+x’) = x+x’ = 1 2b.X.0 = 0 (Remember Duality of of 2a)

3. (x’)’ = x Complement of x = x’ Complement of x’ = (x’)’ = x 6ax+xy = x x+xy = x.1+xy = x(1+y) = x.1 =x 6b.x(x+y) = x (Remember Duality of 6a) Can also be proved using truth table method

xyxyx+xy xyx+y(x+y)’x’y’x’y’ x=x+xy (x+y)’ = x’y’  DeMorgan’s Theorem (xy)’ = x’ +y’  DeMorgan’s Theorem

Operator Precedence 1.( ) 2.NOT 3.AND 4.OR

x y xy’xyx’y x y x y z x+(y+z) x y z xy+xz VENN DIAGRAM FOR TWO VARIABLES VENN DIAGRAM ILLUSTRATION X=XY+X VENN DIAGRAM ILLUSTRATION OF THE DISTRIBUTIVE LAW x’y’ x y

TRUTH TABLE FOR F 1 =xyz’, F 2 =x+y’z, F 3 =x’y’z+x’yz+xy’ and F 4 =xy’+x’z xyzF1F2F3F

x y z F1 z y F2 x (a) F1 = xyz’ (b) F2 = x+y’z (c) F3 = x’y’z+x’yz+xy’ F3 z y x

(c) F4 = xy’+x’z F4 z y x Implementation of Boolean Function with GATES

Algebraic Manipulations for Minimization of Boolean Functions (Literal minimization) 1.x+x’y = (x+x’)(x+y) = 1.(x+y)=x+y 2.x(x’+y) = xx’+xy = 0+xy=xy 3.x’y’z+x’yz+xy’ = x’z(y’+y)+xy’ = x’z+xy’ 4.xy+x’z+yz (Consensus Theorem) =xy+x’z+yz(x+x’) =xy+x’z+xyz+x’yz =xy(1+z)+x’z(1+y) =xy+x’z 5.(x+y)(x’+z)(y+z)=(x+y)(x’+z) by duality from function 4

Complement of a Function (A+B+C)’ = (A+X)’ = A’X’ = A’.(B+C)’ = A’.(B’C’) = A’B’C’  (A+B+C+D+…..Z)’ = A’B’C’D’…..Z’ (ABCD….Z)’ = A’+B’+C’+D’+….+Z’ Example using De Morgan’s Theorem (Method-1) F1 = x’yz’+x’y’z F1’ = (x’yz’+x’y’z)’ = (x+y’+z)(x+y+z’) F2 = x(y’z’+yz) F2’= [x(y’z’+yz)]’ = x’+(y+z)(y’+z’)

Example using dual and complement of each literal (Method-2) F1 = x’yz’ + x’y’z Dual of F1 = (x’+y+z’)(x’+y’+z) Complement  F1’ = (x+y’+z)(x+y+z’) F2 = x(y’z’+yz) Dual of F2=x+[(y’+z’)(y+z] Complement =F2’= x’+ (y+z)(y’+z’)

Minterm or a Standard Product n variables forming an AND term provide 2 n possible combinations, called minterms or standard products (denoted as m1, m2 etc.). Variable primed if a bit is 0 Variable unprimed if a bit is 1 Maxterm or a Standard Sum n variables forming an OR term provide 2 n possible combinations, called maxterms or standard sums (denoted as M1,M2 etc.). Variable primed if a bit is 1 Variable unprimed if a bit is 0

MINTERMS AND MAXTERMS FOR THREE BINARY VARIABLES MINTERMSMAXTERMS xyzTermDesignationTermDesignation 000x’y’z’m0x+y+zM0 001x’y’zm1x+y+z’M1 010x’yz’m2x+y’+zM2 011x’yzm3x+y’+z’M3 100xy’z’m4x’+y+zM4 101xy’zm5x’+y+z’M5 110xyz’m6x’+y’+zM6 111xyzm7x’+y’+z’M7

FUNCTION OF THREE VARIABLES xyzFunction f1Function f f1 = x’y’z+xy’z’+xyz =m1 + m4 + m7 f2 = x’yz+xy’z+xyz’+xyz = m3 + m5 + m6 + m7

MINTERMS AND MAXTERMS FOR THREE BINARY VARIABLES f1 = x’y’z+xy’z’+xyz f1’ = x’y’z’+x’yz’+x’yz+xy’z+xyz’ f1 =(x+y+z)(x+y’+z)(x+y’+z’)(x’+y+z’) (x’+y’+z) = M0.M2.M3.M5.M6 = M0M2M3M5M6 f2 = x’yz+xy’z+xyz’+xyz f2’ = x’y’z’+x’y’z+x’yz’+xy’z’ f2 = (x+y+z)(x+y+z’)(x+y’+z)(x’+y+z) = M0 M1 M2 M4 Canonical Form Boolean functions expressed as a sum of minterms or product of maxterms are said to be in canonical form. M3+m5+m6+m7 or M0 M1 M2 M4

Sum of Minterms (Sum of Products) Example: F = A+B’C F = A(B+B’)+B’C(A+A’) = AB+AB’+AB’C+A’B’C = AB(C+C’)+AB’(C+C’)+AB’C+A’B’C = ABC+ABC’+AB’C+AB’C’+AB’C+A’B’C = A’B’C+AB’C’+AB’C+ABC’+ABC = m1+m4+m5+m6+m7 F(A,B,C)=  (1,4,5,6,7) ORing of termAND terms of variables A,B &C They are minterms of the function

Product of Maxterms (Product of sums) Example: F = xy+x’z F = xy+x’z F = (xy+x’)(xy+z) distr.law (x+yz)=(x+y)(x+z) = (x+x’)(y+x’)(x+z)(y+z) = (x’+y)(x+z)(y+z) = (x’+y+zz’)(x+z+yy’)(y+z+xx’) = (x’+y+z)(x’+y+z’)(x+z+y)(x+z+y’)(y+z+x)(y+z+x’) = (x+y+z)(x+y’+z)(x’+y+z)(x’+y+z’) = M0 M2 M4 M5 F(x,y,z) =  (0,2,4,5) ANDing of termsMaxterms of the function (4 OR terms of variables x,y&z)

Conversion between Canonical Forms F(A,B,C) =  (1,4,5,6,7)  sum of minterms F’(A,B,C) =  (0,2,3) = m0+m2+m3 F(A,B,C) = (m0+m2+m3)’ = m0’.m2’.m3’ = M0 M2 M3 =  (0,2,3)  Product of maxterms Similarly F(x,y,z) =  (0,2,4,5) F(x,y,z) =  (1,3,6,7)

Standard Forms Sum of Products (OR operations) F1 = y’+xy+x’yz’ (AND term/product term) Product of Sums (AND operations) F2=x(y’+z)(x’+y+z’+w) (OR term/sum term) Non-standard form F3=(AB+CD)(A’B’+C’D’) Standard form of F3 F3=ABC’D’ + A’B’CD

TRUTH TABLE FOR THE 16 FUNCTIONS OF TWO BINARY VARIABLES xyF0F1F2F3F4F5F6F7F8F9F10F11F12F13F14F Operator symbols +, ,  F0 = 0F1 = xyF2 = xy’F3 = x F4 = x’yF5 = yF6 = xy’ +x’yF7= x +y F8 = (x+y)’ F9 = xy +x’y’F10 = y’F11 = x +y’ F12 = x’F13 = x’ + yF14 = (xy)’F15 = 1

BOOLEAN EXPRESSIONS FOR THE 16 FUNCTIONS OF TWO VARIABLE BOOLEANOPERATORNAMECOMMENTS FUNCTIONSSYMBOL F0 =0NULL BINARY CONSTANT 0 F1=xyx.yAND x and y F2=xy’x/yinhibition x but not y F3=xtransfer x F4=x’yy/x inhibition y but not x F5=ytransfer y F6=xy’+x’yx yexclusive-OR x or y but not both F7=x+y x+y OR x or y F8=(x+y)’ x y NOR not OR F9=xy+x’y’ x y *equivalence x equals y F10=y’y’complement not y F11=x+y’x  yimplication if y then x F12=x’ x’ complement not x F13=x’+yx  y implication if x then y F14=(xy)’x yNAND not AND F15=1IDENTITY BINARY CONSTANT 1

*Equivalence is also known as equality, coincidence, and exclusive NOR 16 logic operations are obtained from two variables x &y Standard gates used in digital design are: complement, transfer, AND, OR, NAND, NOR, XOR & XNOR (equivalence).

H and L LEVEL IN IC LOGIC FAMILIES IC Family Voltage Type Supply (V) High-level voltage (V) Range Typical Low-level voltage (V) TTL Vcc=5 ECL VEE=-5.2 CMOS VDD=3--10 Positive Logic: Negative Logic VDD Logic-1 Logic Logic-0 Logic-1 Range Typical

TYPICAL CHARACTERISTICS OF IC LOGIC FAMILIES IC Logic Family Fan outPower Dissipation (mw) Propagation delay (ns) Noise Margin (v) Standard TTL Shottky TTL Low power Shottky TTL ECL CMOS TTL basic circuit : NAND gate ECL basic circuit: NOR gate CMOS basic circuit: Inverter to construct NAND/NOR

DIGITAL LOGIC GATES NAMEGRAPHIC SYMBOL ALGEBRIC FUNCTION TRUTH TABLE ANDF=XYX Y F ORF=X+YX Y F X Y F Y X F

NAMEGRAPHIC SYMBOL ALGEBRIC FUNCTION TRUTH TABLE Inverter F=X’ X F Buffer F=X X F 0 1 NANDF=(XY)’ X Y F XF XF X F Y

NAMEGRAPHIC SYMBOL ALGEBRIC FUNCTION TRUTH TABLE NORF=(X+Y)’ X Y F Exclusive-OR (XOR) F=XY’+X’Y = X  Y X Y F Exclusive-NOR or Equivalence F=XY+X’Y’ =X Y X Y F F Y X X F Y F X Y

Y (X Y) Z=(X+Y) Z’ Y x (X+Y)’ =XZ’+YZ’ [Z+(X+Y)’]’ (Y+Z)’ (X ( Y Z)=X’(Y+ Z) =X’Y+X’Z [X+(Y+Z)’]’ Z X Z Demonstrating the nonassociativity of the NOR operator (X  Y)  Z  X  (Y  Z)

X Y Z (X+Y+Z)’ X Y Z (XYZ)’ (a) There input NOR gate(b) There input NAND gate A B C D E F=[(ABC)’. (DE)’]’=ABC+DE (c) Cascaded NAND gates Multiple-input AND cascaded NOR and NAND gates

X Y Z F=X  Y  Z (a) Using two input gates X Y Z (b) Three input gates (b) Three input exclusive OR gates TRUTH TABLE X Y Z F XOR XNOR Odd function Even function F=X  Y  Z

IC DIGITAL LOGIC FAMILIES TTL  Transistor- Transistor Logic Very popular logic family. It has a extensive list of digital functions. It has a large number of MSI and SSI devices, also has LSI devices. ECL  Emitter Coupled Logic Used in systems requiring high speed operations. It has a large number of MSI and SSI devices, also LSI devices. MOS  Metal-Oxide Semiconductor Used in circuit requiring high component density It has a large number of MSI and SSI devices, also LSI devices (mostly) CMOS  Complementary MOS Used in systems requiring low power consumption. It has a large number of MSI and SSI devices, also has LSI devices. I 2 L  Integrated - Injection Logic Used in circuit requiring high component density. Mostly used for LSI functions

VCC GND VCC GND Some Typical IC Gates 7400 Quadruple 2-input NAND gates 7404 Hex Inverters TTL gates

VCC 2 VEE 2 (-5.2V) VCC Triple Exclusive – OR/ NOR gates VCC 2 VCC 1 VEE (-5.2V) Quadruple 2-Input NOR gate Some Typical IC Gates

NC 7 Vss (GND) NC VDD 14 (3-15 V) C MOS GATES 4002 dual 4 input NOR gates

NC 16 1 VDD Vss (GND) (3-15 V) 4050 Hex buffer CMOS GATES NC 13

0 1H L 0 1 H L LOGIC VALUE SIGNAL VALUE LOGIC VALUE SIGNAL VALUE Negative Logic Positive Logic Signal amplitude assignment and type of logic

XyzLLHLHHHLHHHLXyzLLHLHHHLHHHL TTL 7400 GATE x y z Gate block diagram Truth table in terms of H and L Xyz Xyz Truth table for positive logic H=1, L=0 x y z Graphic symbol for positive logic NAND gate

Xyz Xyz Truth table for negative logic L=1 H=0 x z y Graphic symbol for negative logic NOR gate +ive logic NAND or -ive logic NOR +ive logic NOR or -ive logic NAND Same gate can function DEMONSTRATION OF POSITIVE AND NEGATIVE LOGIC

Fan-out Specifies the number of standard loads (the amount of current needed by an input of another gate in the same IC family) that the output of a gate can drive without impairing its normal operation. it is expressed by a number. Power dissipation It is the supplied power required to operate the gate. It is expressed in mw. Propagation delay It is the average transition delay time for a signal to propagate from input to output when the binary signals change in value. It is expressed in ns. Noise margin It is the maximum noise voltage added to the input signal of a digital circuit that does not cause an undesirable change in the circuit output. It is expressed in volts (v). Characteristics of IC logic families (parameters)