Lecture 2 Dr Richard Reilly Dept. of Electronic & Electrical Engineering Room 153, Engineering Building To insert your company logo on this slide From.

Slides:



Advertisements
Similar presentations
Types of Logic Circuits
Advertisements

ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
ECE 331 – Digital System Design
Chapter 2 – Combinational Logic Circuits Part 1 – Gate Circuits and Boolean Equations Logic and Computer Design Fundamentals.
Relationship Between Basic Operation of Boolean and Basic Logic Gate The basic construction of a logical circuit is gates Gate is an electronic circuit.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Logic Gate Level Combinational Circuits, Part 1. Circuits Circuit: collection of devices physically connected by wires to form a network Net can be: –
Lecture 3. Boolean Algebra, Logic Gates
Propositional Calculus Math Foundations of Computer Science.
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Digital Systems Presented by Prof Tim Johnson
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.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
1 Fundamentals of Computer Science Propositional Logic (Boolean Algebra)
Lecture 2 – Boolean Algebra Lecturer: Amy Ching Date: 21 st Oct 2002.
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
Boolean Algebra and Digital Circuits
Lecture 7 Topics –Boolean Algebra 1. Logic and Bits Operation Computers represent information by bit A bit has two possible values, namely zero and one.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Computer Science 210 Computer Organization Introduction to Boolean Algebra.
CS1Q Computer Systems Lecture 6 Simon Gay. Lecture 6CS1Q Computer Systems - Simon Gay2 Algebraic Notation Writing AND, OR, NOT etc. is long-winded and.
Combinational Logic 1.
Boolean Algebra and Computer Logic Mathematical Structures for Computer Science Chapter 7.1 – 7.2 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Boolean.
Discrete Mathematics and Its Applications.  The English mathematician George Boole ( ) sought to give symbolic form to Aristotle's system of.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
Linear Algebra. Circuits The circuits in computers and other input devices have inputs, each of which is either a 0 or 1, the output is also 0s and 1s.
1 BOOLEAN ALGEBRA Basic mathematics for the study of logic design is Boolean Algebra Basic laws of Boolean Algebra will be implemented as switching devices.
Digital Logic Design Week 4 Boolean algebra. Laws and rules De Morgan’s theorem Analysis of logic circuits Standard forms Project 1 preparation.
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.
CS1Q Computer Systems Lecture 6 Simon Gay. Lecture 6CS1Q Computer Systems - Simon Gay2 Algebraic Notation Writing AND, OR, NOT etc. is long-winded and.
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
CS/COE0447 Computer Organization & Assembly Language
Laws of Boolean Algebra Commutative Law Associative Law Distributive Law Identity Law De Morgan's Theorem.
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
ECE DIGITAL LOGIC LECTURE 6: BOOLEAN ALGEBRA Assistant Prof. Fareena Saqib Florida Institute of Technology Fall 2016, 02/01/2016.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
Logic Simplification-Using Boolean Laws Logic Design Laboratory EE 2121 Lectures By Manesh T EE2121-In Charge
DIGITAL ELECTRONICS. Everything in digital world is based on binary system. Numerically it involves only two symbols 0 or 1. –0 = False = No –1 = True.
Minute Paper 4/4/04 Z=50+j86.7=100
Binary Logic Derrington KCL CPD/SKE Binary We’ve seen how data of all different sorts and kinds can be represented as binary bits… 0s and 1s 1 is.
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.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
CHAPTER 2 Boolean algebra and Logic gates
Dr. ClincyLecture Slide 1 CS6020- Chapter 3 (3A and ) Dr. Clincy Professor of CS First Exam - Tuesday, September 6th Coverage: All subjects up to.
Hoda Roodaki Boolean Algebra Hoda Roodaki
Boolean Algebra & Logic Gates
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Digital Logic.
ECE 301 – Digital Electronics
Computer Science 210 Computer Organization
Unit 2 Boolean Algebra.
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Logic Gates and Boolean Algebra
CHAPTER 2 Boolean Algebra
Boolean Algebra.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
TN 221: DIGITAL ELECTRONICS 1
CHAPTER 2 Boolean Algebra
Lecture 4 Topics Boolean Algebra Huntington’s Postulates Truth Tables
Computer Science 210 Computer Organization
Dr. Clincy Professor of CS
Boolean Algebra.
Introductory Concepts
BOOLEAN ALGEBRA.
Boolean Algebra and Gate Networks
Chapter 3 – Describing Logic Circuits
Presentation transcript:

Lecture 2 Dr Richard Reilly Dept. of Electronic & Electrical Engineering Room 153, Engineering Building To insert your company logo on this slide From the Insert Menu Select “Picture” Locate your logo file Click OK To resize the logo Click anywhere inside the logo. The boxes that appear outside the logo are known as “resize handles.” Use these to resize the object. If you hold down the shift key before using the resize handles, you will maintain the proportions of the object you wish to resize.

The main characteristic of a Digital System is its manipulation of discrete elements of information. Another term for a digital system would be a discrete information processing system. BINARY SYSTEMS

1. Most information processing systems are constructed from switches, which are binary devices.  on-off switches are the basic building blocks of digital systems.  inherently binary  Two natural states : on (closed) and off (open). Why Binary ?

2. The basic decision-making processes required of digital systems are binary.  Digital systems are often required to make tests. Is Condition C 1 true ? or Is condition C 2 false ?.  Examples of such decisions are :  Has button (switch) X been pushed ?,  Has temperature t max been reached ?.  Decisions of this kind are inherently binary because their outcomes are taken from the value-pair {true, false}. Why Binary ?

The values that the two variable take may be called by different names True and false Yes and no, etc. As engineers it is appropriate to think in terms of voltages and assign the values of 1 and 0 corresponding to voltage levels. Concept of Binary Logic

Binary logic is used to describe, in a mathematical way, the manipulation and processing of binary information Binary logic consists of binary variables and logical operations. Concept of Binary Logic

Logical Operators: AND Gate AND gate Symbol Function ABC Truth-Table Denote C thus defined : read as C = A AND B

OR Gate OR gate Symbol Function ABC Truth-Table Denote C thus defined : read as C = A OR B

Inverter NOT gate If A = +5v If A = 0v  switch is closed  V o is 0 v  switch is open  V o is +5 v

The truth-table for this operator configuration is Inverter NOT gate A 1010 VoVo 0101

Inverter NOT gate (logic inverter) Symbol Function : AC Truth-Table Denote C thus defined : read as C = NOT A

NAND gate If A = +5v and B = +5v If A = 0v and B = +5v If A = 0v and B = +5v If A = 0v and B = 0v  switches are closed  V o is 0 v  V o is +5 v  V o is +5 v  V o is +5 v

NAND Gate NAND gate Symbol Function ABC Truth-Table Denote C thus defined :

NOR gate If A = +5v and B = +5v If A = 0v and B = +5v If A = 0v and B = +5v If A = 0v and B = 0v  switches are closed  V o is 0 v  V o is 0 v  V o is 0 v  V o is +5 v

NOR Gate NOR gate Symbol Function ABC Truth-Table Denote C thus defined :

Logical expressions AND, OR and NOT are said to be logically complete, that is using these three operations it is possible to realise any function. Logic Gates can have more than two inputs. Thus a three-input AND gate responds when with a logic-1 output if all three input signals are logic-1. Implementation of Logical Functions using switches.

The mathematical system of binary logic is better known as Boolean or switching algebra. This algebra is conveniently used to describe the operation of complex networks of digital circuits. Designers of digital circuits use Boolean Algebra to transform circuit diagrams to algebraic expressions and vice versa. Implementation of Logical Functions using switches.

George Boole George Boole had little formal education yet was a brilliant scholar. Made lasting contribution to mathematics in the areas of differential and difference equations as well as algebra. He published in 1854 his work “An Investigation of the Laws of Thought, on which are founded the Mathematical Theories of Logic an Probability”. Boole generated a mathematical analysis of logic.

Boolean algebra like any other deductive mathematical system, may be defined with a set of elements, a set of operators, a number of unproved axioms or postulates, It is a mathematical analysis of logic Why do we use Boolean Algebra ? Due to its ability for mathematical analysis of logic to study digital systems. Boolean Algebra

In Boolean algebra a proposition is either true or false (no in-between state possible), these proposition are denoted by letters (usually at start of the alphabet) e.g. A.The grass is greenTRUE B. 3 is an even numberFALSE We can combine these propositions to get Boolean Functions denoted by letters (from the end of the alphabet). e.g.Z = A AND BFALSE Boolean Algebra

Several advantages for having a mathematical method for description of the internal workings of a computer. more convenient to calculate using expressions that represent switching circuits then it is to use schematic or even logical expressions just as an ordinary algebraic expression may be simplified by means of basic theorems, the expression describing a given switching circuit network may be reduced or simplified. Boolean Algebra

Reducing and simplifying logic networks.  enabling the designer to simplify the circuitry used  achieving economy of construction  Reliability of operation Simplification

When a variable is used in an algebraic formula, it is generally assumed that the variable may take on any numerical value. However a variable in Boolean equations has a unique characteristic. it may assume only one of two possible states.  these states can be represented by the symbols 0 and 1. i.e. T or F Fundamental Concepts of Boolean Algebra  assume x,y and z range through the entire field of real numbers

Boolean algebra uses the operation called complementation and the symbol of this is  means “take the complement of A”  means “take the complement of A+B” The complement operation can be defined quite simply as Complementation 1 0

As we have seen the complementation operation is physically realised by a gate or circuit called an inverter. Boolean Operators NOT AComplement of A A OR BLogical Sum, True if either A OR B true A AND B Logical Product, True if both A AND B true

Examples of Boolean Functions To study a logical expression, it is very useful to construct a table of values for the variables.  then evaluate the expression for each possible combination of variables. Boolean Functions

Evaluate Evaluate a Boolean Function

List all possible versions of the input variables in a Truth Table Evaluate a Boolean Function A B C

Boolean Operations : AND,OR and NOT A B C

A B C

Finally ORing or Logical Addition Boolean Operations : AND,OR and NOT A B C

Rules of Boolean Algebra We represent FALSE with 0 and TRUE with 1. If we have a large number of propositions and a complicated Boolean function we may be able to simplify it using the concept of tautology (redundancy). e.g.always TRUE always TRUE always FALSE We can use the complete set of rules of Boolean Algebra to simplify expressions.

 Commutative Laws 11.  12.  Associative Laws 13.  14. Distributive Law  De Morgan’s Laws 20 

Rules of Boolean Algebra We can extend De Morgan’s Laws to Example of the Application of the Rules A truth table for each expression will verify that both are equivalent Rule 4 Rule 14 Rule 15

A Specific Design Problem A logical network has two inputs, A and B and output C. The relationship between the inputs and outputs is as follows :  When A and B are 0’s  C is to be 1  When A is 0 and B is 1  C is to be 0  When A is 1 and B is 0  C is to be 1  When A and B are 1’s  C is to be 1

A Specific Design Problem put this into a truth table. A B C

A Specific Design Problem Now add a new column for the product terms : will contain each of the input variables for each row, with the letter complemented when input value for the variable is 0 and not complemented when the input value is 1. A B C Product Terms

A Specific Design Problem When the product term is equal to 1  product term is removed and used as a sum-of - products expansion in this case  1 st, 2 nd and 4 th rows are selected. 

A Specific Design Problem simplify Rule 4  Rule 18  Rule : 

A Specific Design Problem Check using the Truth-Table : Implementation : A B