Discrete Mathematics CS 2610 February 19, 2009. 2 Logic Gates: the basic elements of circuits Electronic circuits consist of so-called gates connected.

Slides:



Advertisements
Similar presentations
Minimization of Circuits
Advertisements

Digital Circuits.
ECE 238L Computer Logic Design Spring 2010
Combinational Circuits ENEL 111. Common Combinationals Circuits NAND gates and Duality Adders Multiplexers.
Gate-Level Minimization. Digital Circuits The Map Method The complexity of the digital logic gates the complexity of the algebraic expression.
Gate-level Design: Full Adder  Truth table: Note: Z - carry in (to the current position) C - carry out (to the next position)  Using K-map, simplified.
CS 151 Digital Systems Design Lecture 6 More Boolean Algebra A B.
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.
Section 10.3 Logic Gates.
Lecture 3. Boolean Algebra, Logic Gates
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Digital Design.
Fall 2002CMSC Discrete Structures1 Yes, No, Maybe... Boolean Algebra.
CS 105 Digital Logic Design
11.1 Boolean Functions. Boolean Algebra An algebra is a set with one or more operations defined on it. A boolean algebra has three main operations, and,
Combinational Circuits
Logic Design CS221 1 st Term K-Map Cairo University Faculty of Computers and Information.
Sahar Mosleh PageCalifornia State University San Marcos 1 Multiplexer, Decoder and Circuit Designing.
Chapter 3.5 Logic Circuits. How does Boolean algebra relate to computer circuits? Data is stored and manipulated in a computer as a binary number. Individual.
BOOLEAN ALGEBRA Saras M. Srivastava PGT (Computer Science)
Applied Discrete Mathematics Week 13: Boolean Algebra
Boolean Algebra and Digital Circuits
F = ∑m(1,4,5,6,7) F = A’B’C+ (AB’C’+AB’C) + (ABC’+ABC) Use X’ + X = 1.
Digital Logic Fundamentals CT101 – Computing Systems.
Chapter 10 (Part 2): Boolean Algebra  Logic Gates (10.3) (cont.)  Minimization of Circuits (10.4)
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Dr. Eng. Farag Elnagahy Office Phone: King ABDUL AZIZ University Faculty Of Computing and Information Technology CPCS 222.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Sneha.  A combinational circuit that performs the addition of two bits is called a half adder.  It has two inputs.  It has two outputs.
Discrete Mathematics CS 2610 September Equal Boolean Functions Two Boolean functions F and G of degree n are equal iff for all (x 1,..x n )  B.
ENGIN112 L6: More Boolean Algebra September 15, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 6 More Boolean Algebra A B.
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
Boolean Algebra and Logic Gates CSE-1108 Ahsanullah University of Science and Technology (AUST)
Minimization Karnaugh Maps
CS151 Introduction to Digital Design Chapter Map Simplification.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Karnaugh Map and Circuit Design.
1 Karnaugh Map Method Truth Table -TO- K-Map Y0101Y0101 Z1011Z1011 X0011X0011 minterm 0  minterm 1  minterm 2  minterm 3 
Chapter 3 Digital Logic Structures
CompSci Today’s topics Computer Hardware Electric Circuits Designing an Adder Upcoming Computer Communications ( Great Ideas Chapter 10) Reading.
How does a Computer Add ? Logic Gates within chips: AND Gate A B Output OR Gate A B Output A B A B
Function Simplification. Outline  Function Simplification  Algebraic Simplification  Half Adder  Introduction to K-maps  Venn Diagrams.
Boolean Algebra.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
CE1110: Digital Logic Design Gate Level Minimization Karnaugh Maps (K-Maps)
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
CHAPTER 3 Simplification of Boolean Functions
Combinational Circuits
Lecture 4 Nand, Nor Gates, CS147 Circuit Minimization and
Minimization of Circuits
… and now for the Final Topic:
Computer Architecture CST 250
Gate-level Design: Full Adder
CMSC Discrete Structures
Discrete Mathematics CS 2610
Yes, No, Maybe... BooleanAlgebra 12/10/2018.
Chapter 10.1 and 10.2: Boolean Algebra
Applied Discrete Mathematics Week 4: Functions
Dr. Clincy Professor of CS
Karnaugh map Karnaugh map allows viewing the function in a picture form Map is arranged such that two neighbors differ in only one variable It is easy.
Computer Organization
Adders and Subtractors
DIGITAL ELECTRONICS B.SC FY
Chapter 10.3 and 10.4: Combinatorial Circuits
XOR Function Logic Symbol  Description  Truth Table 
Analysis of Logic Circuits Example 1
Karnaugh Maps (K-Maps)
Chapter 11 (Part 2): Boolean Algebra
CMSC Discrete Structures
Circuit Simplification and
Presentation transcript:

Discrete Mathematics CS 2610 February 19, 2009

2 Logic Gates: the basic elements of circuits Electronic circuits consist of so-called gates connected by wires OR gate AND gate x y xy x x Inverter (NOT gate) X Y X+Y

3 Half Adder sum carry y x

4 Full Adder Half Adder Half Adder sum Carry out Carry in x y

5 Add Three Bits Half Adder Full Adder Full Adder y2y2 x2x2 y1y1 x1x1 y0y0 x0x0 s0s0 s1s1 s2s2 c 2 =s 3 c0c0 c1c1

6 Circuit Minimization We have seen that a function can be represented by many different equivalent expressions Before building our circuit, we want to find a simple expression for the function When building circuits, we want to use the minimum possible number of gates (why?) For example, instead of xyz + xyz, we can use xz How do we find the minimum expression?

7 Adjacent Minterms To minimize circuits, start by writing your function in DNF (sum of products) Two minterms are adjacent if they differ by one variable, which is negated in one minterm and not negated in another The sum of two adjacent minterms is equivalent to the single term that results when this variable is removed E.g., xyz + xyz = xz

8 Why Adjacent? We can represent functions by using Karnaugh maps x x yy x y

9 Example xy + xy + xy = x + y x x yy 11 1

10 Three Variable Karnaugh Maps With the three variables x, y, z, we can let x and x be on the vertical side as before The table will now have 4 columns: yz, yz, yz, and yz Order is important! Columns must be adjacent to each other We also consider the first and last columns to be adjacent Picture the table as a flattened cylinder A block of 2 cells cancels out 1 variable A block of 4 cells cancels out 2 variables What if we have a block of 8 cells?

11 3-Variable Example xyz + xyz + xyz + xyz + xyz = z + xy x x yz