CS/EE 3700 : Fundamentals of Digital System Design Chris J. Myers Lecture 2: Intro. to Logic Circuits Chapter 2.

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Boolean Algebra and Logic Gates
Introduction to Logic Circuits
Chapter 2 Logic Circuits.
Boolean Algebra and Combinational Logic
ECE 331 – Digital System Design Boolean Algebra (Lecture #3) The slides included herein were taken from the materials accompanying Fundamentals of Logic.
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
EECC341 - Shaaban #1 Lec # 5 Winter Switching Algebra: Principle of Duality Any theorem or identity in switching algebra remains true if.
COMBINATIONAL LOGIC CIRCUITS C.L. x1 x2 xn Z Z = F (x1, x2, ……., Xn) F is a Binary Logic (BOOLEAN ) Function Knowing F Allows Straight Forward Direct Implementation.
Example: Given a 4-bit input combination N=N 3 N 2 N 1 N 0, this function produces a 1 output for N=1,2,3,5,7,11,13, and 0 otherwise.  According to the.
2.7 NAND and NOR logic networks
Chapter 2: Boolean Algebra and Logic Functions
Digital Logic Circuits – Chapter 1 Section 1-3, 1-2.
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:
Binary Logic and Gates Binary variables take on one of two values.
Boolean Algebra and Digital Circuits
Course contents Chapter 1 - section 1.6 Chapter 2 - all sections Chapter – 4.7, and 4.12 Chapter , Chapter 6 - all sections.
Overview Part 1 – Gate Circuits and Boolean Equations
Introduction to Chapter 3  Now that we understand the concept of binary numbers, we will study ways of describing how systems using binary logic levels.
Chapter 4 Combinational Logic Design Principles. Overview Objectives -Define combinational logic circuit -Analysis of logic circuits (to describe what.
Chapter 0 deSiGn conCepTs EKT 221 / 4 DIGITAL ELECTRONICS II.
CS/EE 3700 : Fundamentals of Digital System Design Chris J. Myers Lecture 4: Logic Optimization Chapter 4.
LOGIC GATES & BOOLEAN ALGEBRA
Venn Diagram – the visual aid in verifying theorems and properties 1 E.
Boolean Algebra and Logic Gates
1 Boolean Algebra  Digital circuits Digital circuits  Boolean Algebra Boolean Algebra  Two-Valued Boolean Algebra Two-Valued Boolean Algebra  Boolean.
KFUPM COE 202: Digital Logic Design Combinational Logic Part 1 Courtesy of Dr. Ahmad Almulhem.
Figure 2.6. A truth table for the AND and OR operations. 2.3 Truth Tables 1.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
Lecture 4 Boolean Algebra. Logical Statements °A proposition that may or may not be true: Today is Monday Today is Sunday It is raining °Compound Statements.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
ECE 3110: Introduction to Digital Systems Chapter #4 Review.
Binary Logic and Gates Boolean Algebra Canonical and Standard Forms Chapter 2: Boolean Algebra and Logic Gates.
Digital Design: Principles and Practices Chapter 4 Combinational Logic Design Principles.
CEC 220 Digital Circuit Design Boolean Algebra Friday, January 17 CEC 220 Digital Circuit Design Slide 1 of 22.
ELEE 4303 Digital II Introduction to Verilog. ELEE 4303 Digital II Learning Objectives Get familiar with background of HDLs Basic concepts of Verilog.
CS151 Introduction to Digital Design Chapter 2: Combinational Logic Circuits Lecture 5: Binary Logic and Gates.
1/16/ CSEE, UQ Lecture 3 Hardware Description Methods, Review of Switching Algebra.
Ahmad Almulhem, KFUPM 2009 COE 202: Digital Logic Design Combinational Logic Part 1 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
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.
Figure 2.1. A binary switch. x1=x0= (a) Two states of a switch S x (b) Symbol for a switch.
ECE DIGITAL LOGIC LECTURE 6: BOOLEAN ALGEBRA Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 02/01/2016.
Boolean Algebra. BOOLEAN ALGEBRA Formal logic: In formal logic, a statement (proposition) is a declarative sentence that is either true(1) or false (0).
Lecture 5 More Boolean Algebra A B. Overview °Expressing Boolean functions °Relationships between algebraic equations, symbols, and truth tables °Simplification.
CHAPTER 2 Boolean algebra and Logic gates
EECE 320 L8: Combinational Logic design Principles 1Chehab, AUB, 2003 EECE 320 Digital Systems Design Lecture 8: Combinational Logic Design Principles.
Boolean Algebra and Logic Gates COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals.
ECE 301 – Digital Electronics
Combinational Logic Design
Chapter 11 (Part 1): Boolean Algebra
Chapter 2: Boolean Algebra and Logic Functions
ECE 2110: Introduction to Digital Systems
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
CS 105 Digital Logic Design
ECE 3110: Introduction to Digital Systems
Lecture 2 Boolean Algebra Basic
Gate Circuits and Boolean Equations
Overview Part 1 – Gate Circuits and Boolean Equations
Boolean Algebra and Combinational Logic
ECE/CS 352 Digital Systems Fundamentals
Lecture 3 Boolean algebra
Chapter 2 Boolean Algebra and Logic Gate
Chapter 2 Introduction to Logic Circuits
Instructor: Alexander Stoytchev
Introductory Concepts
Presentation transcript:

CS/EE 3700 : Fundamentals of Digital System Design Chris J. Myers Lecture 2: Intro. to Logic Circuits Chapter 2

Binary Logic Circuits Logic circuits perform operations on digital signals. Implemented using electronic circuits. Binary logic circuits take only two values: –0 and 1.

Figure 2.1 A binary switch x1=x0= (a) Two states of a switch S x (b) Symbol for a switch

Figure 2.2 A light controlled by a switch (a) Simple connection to a battery S x (b) Using a ground connection as the return path L BatteryLight x Power supply S L L(x) = x

Figure 2.3 Two basic functions (a) The logical AND function (series connection) S x 1 L Power supply S x 2 S x 1 L Power supplyS x 2 (b) The logical OR function (parallel connection) Light L(x 1, x 2 ) = x 1  x 2 L = 1 if x 1 = 1 and x 2 = 1 L = 0 otherwise L(x 1, x 2 ) = x 1 + x 2 L = 1 if x 1 = 1 or x 2 = 1 L = 0 otherwise

Figure 2.4 A series-parallel connection S x 1 L Power supplyS x 2 Light S x 3 L(x 1, x 2, x 3 ) = (x 1 + x 2 )  x 3

Figure 2.5 An inverting circuit S x L Power supply R L(x) = x L = 1 if x = 0 L = 0 if x = 1

Figure 2.6 A truth table for AND and OR

Figure 2.7 Three-input AND and OR

x 1 x 2 x n x 1 x 2  x n +++ x 1 x 2 x 1 x 2 + x 1 x 2 x n x 1 x 2 x 1 x 2  x 1 x 2  x n  (a) AND gates (b) OR gates x x (c) NOT gate Figure 2.8 The basic gates

Figure 2.9 An OR-AND function x 1 x 2 x 3 fx 1 x 2 +  x 3  =

x 1 x  f 0001  1101  0011  0101  (a) Network that implements fx 1 x 1 x 2  += x 1 x 2 fx 1 x 2,() (b) Truth table for f A B Figure 2.10 a Logic network

x 1 x 2 A B f Time (c) Timing diagram 1100  0011  1101  0101  g x 1 x 2 (d) Network that implements gx 1 x 2 += Figure 2.10 b Logic network

Boolean Algebra 1849, George Boole published a scheme for describing logical thought and reasoning. In 1930s, Claude Shannon applied Boolean algebra to describe circuits built w/switches. Boolean algebra provides the theoretical foundation for digital design.

Axioms of Boolean Algebra 1.0  0 = =  1 = =  1 = 1  0 = = = 1 4.if x = 0 then x = 1if x = 1 then x = 0

Single-Variable Theorems 5.x  0 = 0x + 1 = 1 6.x  1 = xx + 0 = x 7.x  x = xx + x = x 8.x  x = 0x + x = 1 9.x = x

Principle of Duality Axioms and theorems listed in pairs to show principle of duality. Given a logic expression, its dual is found by exchanging + operators and  operators and 0s ands 1s. The dual of any true statement is true.

2- and 3-Variable Properties 10a. x  y = y  x Commutative 10b. x + y = y + x 11a. x  (y  z) = (x  y)  z Associative 11b. x + (y + z) = (x + y) + z 12a. x  (y + z) = x  y + x  z Distributive 12b. x + y  z = (x + y)  (x + z)

2- and 3-Variable Properties 13a. x + x  y = xAbsorption 13b. x  (x + y) = x 14a. x  y + x  y = xCombining 14b. (x + y)  (x + y) = x 15a. x  y = x + yDeMorgan’s Thm 15b. x + y = x  y 16. x + x  y = x + yx  (x + y) = x  y

Figure 2.11 Proof of DeMorgan’s theorem

(x 1 + x 3 )  (x 1 + x 3 ) = x 1  x 3 + x 1  x 3

x 1  x 3 + x 2  x 3 + x 1  x 3 + x 2  x 3 = x 1  x 2 + x 1  x 2 + x 1  x 2

Figure 2.12 The Venn diagram representation xy z x xyxy x x x (a) Constant 1(b) Constant 0 (c) Variable x (d)(e)(f) (g) (h) xxy  xy+ xyz+  xy  y x

Figure 2.13 Verification of the distributive property xy z xy z xy z xy z xy z xy z x xy  xy  x+z  xyz+  (a) (d) (c)(f) xz  yz+ (b) (e)

Figure 2.14 Verification example xy z yx z xy z xy  yz  xy  x+z  xz  xy z xy  xy  x+zyz  +  xy z xz  y z xy z x

Notation x = x’ = !x = NOT x f(x 1,x 2 ) = x 1 + x 2 = (x 1 + x 2 )’ = !(x 1 + x 2 ) = NOT(x 1 + x 2 ) x 1  x 2 = x 1  x 2 = x 1 x 2 x 1 + x 2 = x 1  x 2

Precedence of Operations In absence of parentheses, operations are performed in this order: NOT, AND, OR. x 1 x 2 + x 1 ’ x 2 ’ = (x 1 x 2 ) + ((x 1 ’) (x 2 ’))

Figure 2.15 A function to be synthesized

f (a) Canonical sum-of-products f (b) Minimal-cost realization x 2 x 1 x 1 x 2 Figure 2.16 Two implementations of a function

Figure 2.17 Three-variable Minterms and Maxterms

Figure 2.18 A three-variable function

f (a) A minimal sum-of-products realization x 1 x 2 x 3

Figure 2.18 A three-variable function

f (b) A minimal product-of-sums realization x 2 x 1 x 3

Figure 2.20 Truth table for a three-way light controller

Figure 2.21 SOP implementation of the three-way light controller f (a) Sum-of-products realization x 1 x 2 x 3

Figure 2.21 POS implementation of the three-way light controller (b) Product-of-sums realization f x 1 x 2 x 3

(a)Truthtable f x 1 x 2 s f s x 1 x (c) Graphical symbol (b) Circuit 0 1 (d)Morecompacttruth-tablerepresentation sx1x1 x2x2 f (s, x 1, x 2 ) s x1x1 x2x2 Figure 2.22 Multiplexer

Design Entry Truth tables –Practical for only small circuits. Schematic capture –Interconnect symbols in some library. –Facilitates hierarchical design. –Good for larger circuits. –Difficult to use for very large circuits.

Figure 2.23 Screen capture of the Waveform Editor

Figure 2.24 Screen capture of the Graphic Editor

Design Entry (cont) Hardware description languages (HDLs). –Similar to a programming language. –VHDL and Verilog HDL are IEEE standards. –Provide design portability. –Allow for sharing and design reuse. –Support hierarchical design. –Can be combined with schematics.

Synthesis Logic synthesis, or logic optimization, is process to translate a truth table, schematic, or VHDL code into a network of logic gates. What makes a circuit good depends on the application. Converting logic description to a physical design entails technology mapping and layout synthesis.

Functional Simulation A functional simulator is used to determine if designed circuit operates correctly. User provides inputs values to the circuit. Simulator determines circuits response. User checks responses against required. A timing simulator can be used to check the performance of a design.

Figure 2.25 The first stages of a CAD system Design conception Truth table VHDLSchematic capture Simple synthesis (see section 2.8.2) Translation Merge Boolean equationsINITIAL SYNTHESIS TOOLS DESIGN ENTRY Design correct? Logic synthesis, physical design, timing simulation Functional simulation No Yes (see section 4.12)

VHDL - Very high speed integrated circuit hardware description language Original IEEE standard adopted in Revised standard in Originally used for documentation and simulation. Now, it is also used for synthesis. Very complex language, but only a subset is needed to design wide range of circuits.

Representing Digital Signals Each logic signal in a circuit is a data object in the VHDL code. Data objects in VHDL are assigned types. A simple type is BIT which is used for objects that can only take 2 values: 0 and 1. Other data types are introduced later.

Figure 2.26 A simple logic function and corresponding VHDL code f x 3 x 1 x 2

Figure 2.30 VHDL code for a four-input function

f g x 3 x 1 x 2 x 4 Figure Logic circuit for four-input function

How NOT to Write VHDL Code Novice tempted to write code with lots of variables and loops. This code style is difficult to relate to the circuit and should be avoided. Good guideline is that if designer cannot determine what circuit is doing from code, then circuit synthesized likely will be wrong

Concluding Remarks Introduced concept of logic circuits. –Implemented using logic gates. –Described with Boolean algebra. Briefly introduced CAD tools.