Lesson Objectives Aims Be able to define problems using Boolean logic

Slides:



Advertisements
Similar presentations
Digital Circuits.
Advertisements

Combinational Circuits ENEL 111. Common Combinationals Circuits NAND gates and Duality Adders Multiplexers.
Propositional Calculus Math Foundations of Computer Science.
Boolean Algebra and Logic Simplification
Binary Numbers.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Hardware Logic Diagrams - The Basics - Marshall Thomas CIS 21JA – Fall Quarter 2012.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
1 Digital Logic Design Week 5 Simplifying logic expressions.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /05/2013 Lecture 4: Basics of Logic Design Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
Logic Gates Logic gates are electronic digital circuit perform logic functions. Commonly expected logic functions are already having the corresponding.
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.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
4. Computer Maths and Logic 4.2 Boolean Logic Simplifying Boolean Expressions.
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
BOOLEAN ALGEBRA AND LOGIC SIMPLIFICATION
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
BOOLEAN ALGEBRA LOGIC GATES. Introduction British mathematician George Boole( ) was successful in finding the link between logic and mathematics.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Logic Gates Learning Objectives Learn that there is a one-to-one relationship between logic gates and Boolean expressions Learn how logic gates are combined.
Computer Architecture & Operations I
Computer Architecture & Operations I
Combinational Circuits and Boolean
Morgan Kaufmann Publishers
Logic Gates & Boolean Algebra
Logic Gates.
De Morgan’s Theorem,.
Boolean Algebra & De Morgan's Theorems
Logic Gates, Boolean Algebra and Karnaugh Maps
CHAPTER 2 Boolean Algebra
CHAPTER 1 : INTRODUCTION
Karnaugh Maps.
Component 1 – 2A, B, C Binary Logic
Mathematics for Computing
Jeremy R. Johnson Wed. Sept. 29, 1999
Summary Half-Adder Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry out.
XOR, XNOR, and Binary Adders
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
Reading: Hambley Chapters
Basics Combinational Circuits Sequential Circuits
Basics Combinational Circuits Sequential Circuits Ahmad Jawdat
Karnaugh Maps (K-Maps)
CSE 311 Foundations of Computing I
Lecture 14: Boolean Algebra
Digital Circuits.
BASIC & COMBINATIONAL LOGIC CIRCUIT
CSE 370 – Winter Combinational Logic - 1
XOR, XNOR, & Binary Adders
Number Systems Decimal (base 10) { }
Karnaugh Maps Topics covered in this presentation: Karnaugh Maps
Logic Gates.
Boolean Algebra.
Week 7: Gates and Circuits: PART II
Fundamentals of Computer Systems
A-level Computer Science
13 Digital Logic Circuits.
Adders and Subtractors
De Morgan’s laws presentation
Chapter 10.3 and 10.4: Combinatorial Circuits
Logic Gates.
XOR, XNOR, and Binary Adders
Special Gates Combinational Logic Gates
XOR Function Logic Symbol  Description  Truth Table 
XOR, XNOR, and Binary Adders
Laws & Rules of Boolean Algebra
Digital Circuits.
Digital Circuits.
Presentation transcript:

Lesson Objectives Aims Be able to define problems using Boolean logic Manipulate Boolean expressions including the use of Karnaugh maps to simplify those expressions Use De Morgan’s Laws, distribution, association, commutation and double negation Use logic diagrams and truth tables – half and full adders

Do NOT trust the book on this topic: Note Do NOT trust the book on this topic: There ARE mistakes in there It does NOT provide a good explanation of these topics.

Biconditional equivalence Key terms Symbol Formal term Informal term ∧ Conjunction AND ∨ Disjunction OR ¬ Negation NOT → Implication IF ↔ Biconditional equivalence Equality ⊕ Exclusive or XOR

Conjunction - AND P Q P AND Q T F P Q P AND Q 1

Disjunction - OR P Q P OR Q T F P Q P OR Q 1

Inverse (NOT) P NOT P T F P NOT P 1

Writing Boolean Expressions

The easiest way to simplify an expression with up to 4 inputs Karnaugh Mapping The easiest way to simplify an expression with up to 4 inputs Basic gist: Get the Boolean expression Make truth table Plot karnaugh map Look for blocks (in powers of 2 (book makes a mistake here!!)) Interpret what those blocks mean

More rules It does not matter which order you plot the inputs on the map A zero will be interpreted as NOT Each rule is conjoined by OR You are looking for what does NOT change in a block If you have two inputs together in a block that do not change, they will be ANDed

Example Simplify ¬A ∧ (B ⋁ ¬A) Truth Table (2 inputs) A B ¬A B ⋁ ¬A 1 1 A B ¬A B ⋁ ¬A ¬A Λ (B ⋁ ¬A) 1 A B 1 A B 1 A B ¬A 1

Plot the Karnaugh Map A B 1 A B ¬A Λ (B ⋁ ¬A) 1 A B 1

Notes It does not matter where you plot A and B, try it – you can reverse if you like The order of the 1’s and 0’s in the table headings don’t matter either as long as only ONE variable changes at a time (irrelevant on 2 inputs, relevant on 3 or more)

Now look for groups of 1’s Next Now look for groups of 1’s They MUST be in powers of 2 (you cannot select 5 or 3 for example) but you CAN have a group of 1 A B 1

Interpret the group ¬A ∧ (B ⋁ ¬A) ¬A A B 1 is You are looking for the variable which does NOT change in the group. In this example, B changes from 0 to 1, so we ignore it. A stays the same – 0 If the variable that stays the same is a 1 then you write it down “as is” If the variable that stays the same is a 0 then it is NOT that variable. In this example, A stays the same, but is a Zero, so the rule for this group is ¬A There are no more groups so the simplification of ¬A ∧ (B ⋁ ¬A) is ¬A A B 1

Harder Question – 3 inputs Simplify A ∧ B ⋁ A ∧ (B ⋁ C) ⋁ B ∧ (B ⋁ C) Hint, your Karnaugh Map will look like this: Note the order of the column AB – it does not go 00, 01, 10, 11 as you would expect. This is because only ONE variable may change from one column to the next AB C 00 01 11 10 1

A B C A Λ B B ⋁ C A Λ (B ⋁ C) B Λ (B ⋁ C) A Λ B ⋁ A Λ (B ⋁ C) ⋁ B Λ (B ⋁ C) 1

AB C 00 01 11 10 1 A B C A Λ B B ⋁ C A Λ (B ⋁ C) B Λ (B ⋁ C) A Λ B ⋁ A Λ (B ⋁ C) ⋁ B Λ (B ⋁ C) 1 AB C 00 01 11 10 1

B A Λ C AB C 00 01 11 10 1 AB C 00 01 11 10 1

A ∧ B ⋁ A ∧ (B ⋁ C) ⋁ B ∧ (B ⋁ C) = B ⋁ (A Λ C)

Answers

Now try this…

Those groups give us: (A Λ B Λ C) V (A Λ ¬B Λ ¬C Λ ¬D) And also: (¬A Λ C Λ ¬D) V (¬A Λ ¬C Λ ¬D)

(¬A Λ C Λ ¬D) V (¬A Λ ¬C Λ ¬D) This can be simplified: ¬A V ¬A = ¬A C V ¬C = 1 (So removed) ¬D V ¬D = ¬D Therefore (¬A Λ C Λ ¬D) V (¬A Λ ¬C Λ ¬D) = (¬A Λ ¬D)

Simplifying expressions Rules…

Basic rules Work out the brackets first – expand them Then look for rules that cancel out Then re-arrange if necessary to create other simplification rules from the table Continue until reduced to simplest form

Exercise Its worksheet time

Simplification questions

Answers – hello cheats

What do the outputs look like? Sum = XOR Carry = AND Circuits Half Adder: What do the outputs look like? Sum = XOR Carry = AND INPUTS                 OUTPUTS A             B             SUM      CARRY 0              0              0              0 0              1              1              0 1              0              1              0 1              1              0              1

Half Adder You will need to be able to draw this circuit from memory in the exam.

Why is it called a half adder? Because it doesn’t take in to account any carry values being brought IN to the calculation

Full Adder Truth Table: INPUTS                 OUTPUTS A             B             CIN         COUT    S 0              0              0              0              0 0              0              1              0              1 0              1              0              0              1 0              1              1              1              0 1              0              0              0              1 1              0              1              1              0 1              1              0              1              0 1              1              1              1              1

Full adder circuit

S = (A ⊕ B) ⊕ Cin Cout = (A ∧ B) ∨ (Cin ∧ (A ⊕ B) )

4 bit Adder What happens to the final Cout? What implication does the cascaded carry have?

Implication Boolean implication A implies B simply means Q P → Q T F Boolean implication A implies B simply means "if A is true, then B must be true". This implies that if A isn't true, then B can be anything. This can also be read as (not A) or B "either A is false, or B must be true"

Review/Success Criteria