740 likes | 1.06k Views
COMBINATIONAL LOGIC DESIGN PRINCIPLES. COMBINATIONAL LOGIC DESIGN PRINCIPLES. SWITCHING ALGEBRA COMBINATIONAL CIRCUIT ANALYSIS COMBINATIONAL CIRCUIT SYNTHESIS TIMING HAZARDS. ALGEBRA?.
E N D
COMBINATIONAL LOGIC DESIGN PRINCIPLES • SWITCHING ALGEBRA • COMBINATIONAL CIRCUIT ANALYSIS • COMBINATIONAL CIRCUIT SYNTHESIS • TIMING HAZARDS
ALGEBRA? • n. 1. A GENERALIZATION OF ARITHMETIC IN WHICH LETTERS REPRESENTING NUMBERS ARE COMBINED ACCORDING TO THE RULES OF ARITHMETIC
SWITCHING ALGEBRA • GEORGE BOOLE: 1854, BOOLEAN ALGEBRA • BOOLEAN ALGEBRA: TWO-VALUED ALGEBRAIC SYSTEM • CLAUDE SHANNON: 1938, ADAPTATION OF BOOLEAN ALGEBRA SWITCHING ALGEBRA
SWITCHING ALGEBRA OPERATIONS • NOT OPERATION: X’ • AND OPERATION (LOGICAL MULTIPLICATION): XY, XY • OR OPERATION (LOGICAL ADDITION): X+Y, XY
AXIOMS • AXIOM = POSTULATE • THE AXIOMS OF A MATHEMATICAL SYSTEM ARE A MINIMAL SET OF BASIC DEFINITIONS THAT WE ASSUME TO BE TRUE, FROM WHICH ALL OTHER INFORMATION ABOUT THE SYSTEM CAN BE DERIVED.
AXIOMS (A1) X=0 IF X1 (A1’) X=1 IF X0
AXIOMS (A2) IF X=0 THEN X’=1 (A2’) IF X=1 THEN X’=0
AXIOMS (A3) 00=0 (A3’) 1+1=1 (A4) 11=1 (A4’) 0+0=0 (A5) 01=10=0 (A5’) 1+0=0+1=1
AXIOMS • A1-A5 AND A1’-A5’ COMPLETELY DEFINE SWITCHING ALGEBRA • ALL OTHER FACTS ABOUT SYSTEM CAN BE PROVED USING A1-A5 AND A1’-A5’
THEOREM? • n. 1. AN IDEA ACCEPTED OR PROPOSED AS A DEMONSTRABLE TRUTH OFTEN AS PART OF A GENERAL THEORY
SINGLE-VARIABLE THEOREMS • PERFECT INDUCTION: • A1: X=0 OR X=1 • PROVE THEOREM FOR BOTH X=0 AND X=1
IDENTITIES (T1) X+0=X (T1’) X1=X
NULL ELEMENTS (T2) X+1=1 (T2’) X0=0
IDEMPOTENCY (T3) X+X=X (T3’) XX=X
INVOLUTION (T4) (X’)’=X
COMPLEMENTS (T5) X+X’=1 (T5’) XX’=0
MORE THEOREMS • TWO- AND THREE-VARIABLE THEOREMS • PROOF: PERFECT INDUCTION OR OTHER THEOREMS AND AXIOMS
COMMUTATIVITY (T6) X+Y=Y+X (T6’) XY=YX
ASSOCIATIVITY (T7) (X+Y)+Z=X+(Y+Z) (T7’) (XY)Z=X(YZ)
DISTRIBUTIVITY (T8) X(Y+Z)=XY+XZ (T8’) (X+Y)(X+Z)=X+YZ
EXAMPLE • NOTE: POSSIBLE TO REPLACE VARIABLE WITH EXPRESSION
COVERING (T9) X+XY=X (T9’) X(X+Y)=X • X COVERS Y
COMBINING (T10) XY+XY’=X (T10’) (X+Y)(X+Y’)=X
CONSENSUS (T11) XY+X’Z+YZ=XY+X’Z (T11’) (X+Y)(X’+Z)(Y+Z)=(X+Y)(X’+Z) • T11: YZ IS THE CONSENSUS TERM • T11’: Y+Z IS THE CONSENSUS TERM
n-VARIABLE THEOREMS • PROOF FOR MOST: FINITE INDUCTION • FINITE INDUCTION: • STEP 1: PROVE THEOREM FOR n=2 • STEP 2: PROVE THAT IF THEOREM IS TRUE FOR n=i IT IS ALSO TRUE FOR n=i+1
GENERALIZED IDEMPOTENCY (T12) X+X+…+X=X (T12’) XX … X=X
DeMORGAN’S THEOREMS (T13) (X1X2 … Xn)’=X1’+X2’+…+Xn’ (T13’) (X1+X2+ … +Xn)’=X1’X2’ … Xn’
GENERALIZED DeMORGAN’S THEOREM (T14) [F(X1,X2,…Xn,+,)]’=F(X1’,X2’,…,Xn’,,+) • T13 AND T13’ SPECIAL CASES OF T14
DUALITY • ANY THEOREM OR IDENTITY IN SWITCHING ALGEBRA REMAINS TRUE IF 0 AND 1 ARE SWAPPED, AND AND + ARE SWAPPED THROUGHOUT.
DUAL OF A LOGIC EXPRESSION FD(X1,X2,…,Xn,+,,’)= F(X1,X2,…,Xn,,+,’)
GENERALIZED DeMORGAN’S THEOREM [F(X1,X2,…Xn,+,)]’=F(X1’,X2’,…,Xn’,,+) [F(X1,X2,…,Xn)]’= FD(X1’,X2’,…,Xn’,)
SHANNON’S EXPANSION THEOREMS (T15) F(X1,X2,…,Xn)=X1F(1,X2,…,Xn)+ +X1’F(0,X2,…,Xn) (T15’) F(X1,X2,…,Xn)=[X1+F(0,X2,…,Xn)] [X1’+F(1,X2,…,Xn)]
LOGIC FUNCTION REPRESENTATION • TRUTH TABLE ROW X Y F 0 0 0 F(0,0) 1 0 1 F(0,1) 2 1 0 F(1,0) 3 1 1 F(1,1)
DEFINITIONS • LITERAL: A VARIABLE OR ITS COMPLEMENT. EXAMPLES: Y, Y’ • PRODUCT TERM: LITERAL, OR LOGICAL PRODUCT OF LITERALS. EXAMPLES: X, ZY’ • SUM TERM: LITERAL OR LOGICAL SUM OF LITERALS. EXAMPLES: Z, X+Y+W’
DEFINITIONS • PRODUCT-OF-SUMS: LOGICAL PRODUCT OF SUM TERMS. EXAMPLE: (X+Y)(Z+W’) • SUM-OF-PRODUCTS: LOGICAL SUM OF PRODUCT TERMS. EXAMPLE: XY+ZW’ • NORMAL TERM: PRODUCT OR SUM TERM IN WHICH NO VARIABLE APPEARS MORE THAN ONCE. EXAMPLE: WXY’. EXAMPLE OF NONNORMAL TERM: WW’X
MINTERM, MAXTERM • n-VARIABLE MINTERM: NORMAL PRODUCT TERM WITH n LITERALS. EXAMPLE OF 2-VARIABLE MINTERM: WX • n-VARIABLE MAXTERM: NORMAL SUM TERM WITH n LITERALS. EXAMPLE OF 2-VARIABLE MAXTERM: W+X
MINTERM, MAXTERM • MINTERM: PRODUCT TERM THAT IS 1 FOR EXACTLY ONE ROW OF THE TRUTH TABLE • MAXTERM: SUM TERM THAT IS 0 FOR EXACTLY ONE ROW OF THE TRUTH TABLE
MINTERM, MAXTERM ROW X Y F MINTERM MAXTERM 0 0 0 F(0,0) X’Y’ X+Y 1 0 1 F(0,1) X’Y X+Y’ 2 1 0 F(1,0) XY’ X’+Y 3 1 1 F(1,1) XY X’+Y’ • MINTERM i, MAXTERM i
MINTERM, MAXTERM • CANONICAL SUM = MINTERM LIST = ON-SET • CANONICAL PRODUCT = MAXTERM LIST = OFF-SET • CONVERSION IS EASY: A,B,C(0,1,2,3)=A,B,C(4,5,6,7) X,Y,Z,W(0,1,2,3,5,7,11,13)= =X,Y,Z,W(4,6,8,9,10,12,14,15)
COMBINATIONAL LOGIC REPRESENTATIONS • TRUTH TABLE • CANONICAL SUM • MINTERM LIST (-NOTATION) • CANONICAL PRODUCT • MAXTERM LIST (-NOTATION)
COMBINATIONAL LOGIC DESIGN PRINCIPLES • SWITCHING ALGEBRA • COMBINATIONAL CIRCUIT ANALYSIS • COMBINATIONAL CIRCUIT SYNTHESIS • TIMING HAZARDS
CIRCUIT ANALYSIS • WHY? • DETERMINE BEHAVIOR FOR VARIOUS INPUTS • MANIPULATE ALGEBRAIC DESCRIPTION • TRANSFORM ALGEBRAIC DESCRIPTION INTO STANDARD FORM • USE ALGEBRAIC DESCRIPTION IN ANALYSIS OF LARGER CIRCUIT
COMBINATIONAL LOGIC DESIGN PRINCIPLES • SWITCHING ALGEBRA • COMBINATIONAL CIRCUIT ANALYSIS • COMBINATIONAL CIRCUIT SYNTHESIS • TIMING HAZARDS
WHERE DO WE START? • WORD DESCRIPTION • “AND”, “OR”, “NOT” • TRUTH TABLE • CANONICAL SUM OR PRODUCT
COMBINATIONAL CIRCUIT MINIMIZATION • WHY? • COST • HOW? • MINIMIZE NUMBER OF FIRST LEVEL GATES • MINIMIZE NUMBER OF INPUTS TO FIRST LEVEL GATES • MINIMIZE NUMBER OF INPUTS TO SECOND LEVEL GATES