CSC 110 - Intro. to Computing Lecture 7: Circuits & Boolean Properties.

Slides:



Advertisements
Similar presentations
1 CK Cheng CSE Dept. UC San Diego CS 140, Lecture 2 Combinational Logic.
Advertisements

Boolean rules for simplification Dr. Ahmed Telba.
CSC 110 – Intro to Computing Lecture 14: Midterm Review.
CS 300 – Lecture 3 Intro to Computer Architecture / Assembly Language Digital Design.
1 CSE 20: Lecture 7 Boolean Algebra CK Cheng 4/21/2011.
Propositional Equivalence Goal: Show how propositional equivalences are established & introduce the most important such equivalences.
Homework 2 Due 28 th May Implement This Function using 1)a 3-to-8 Line Decoder (with OR gates) 2) a 3-to-8 Line Active Low Decoder (with NAND gates)
Logic Circuits In today’s lesson we will look at: the symbols for NOT, AND, OR and EOR using truth tables to represent logic circuits two new operators.
Binary Addition CSC 103 September 17, 2007.
Data Manipulation CSCI130 Instructor: Dr. Imad Rahal.
DeMorgan Theorem, Computer Simulation Exercises
CSC Intro. to Computing Lecture 5: Boolean Logic, Gates, & Circuits.
1 CMSC 250 Chapter 1, con't., Combinatorial circuits.
Computer Organization 1 Logic Gates and Adders. Propositions –Venn Diagrams.
CSI-2111 Computer Architecture Ipage Revision  Objective : To examine basic concepts of: –2.1 Numbering Systems –2.2 Binary Numbers –2.3 Boolean.
CSC Intro. to Computing Lecture 5: Boolean Logic, Gates, & Circuits.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
CSC 110 – Intro to Computing Lecture 8: Computing Components.
CPS3340 COMPUTER ARCHITECTURE Fall Semester, /05/2013 Lecture 4: Basics of Logic Design Instructor: Ashraf Yaseen DEPARTMENT OF MATH & COMPUTER.
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.
Why? What’s Boolean algebra used for? –“The purpose of Boolean algebra is to facilitate the analysis and design of digital circuits.” Express a truth table.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
CSC Intro. to Computing Lecture 5: Gates, Circuits, & Transistors.
Using De’Morgan’s On of the most useful principles in boolean algebra is De’Morgan’s Theorem, which allows one to switch between ANDs and NORs and ORs.
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
CSC 110 – Intro to Computing Lecture 9: Computing Components.
Universal college of engineering & technology. .By Harsh Patel)
XOR Operator A short digression… … to introduce another Boolean operation: exclusive- OR (XOR) ABA + B XOR.
CSE 20: Lecture 7 Boolean Algebra CK Cheng
Computer Systems 1 Fundamentals of Computing Simplifying Boolean Expressions.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Boolean Algebra and Logic Gates CSE-1108 Ahsanullah University of Science and Technology (AUST)
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
5 - Digital Logic with Boolean Algebra
1. Computing Systems Lecture 3 Binary Representation & Boolean Logic Binary and Logic 2.
BOOLEAN ALGEBRA – Digital Circuit 1 Choopan Rattanapoka.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Chapter 3 Digital Logic Structures
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Simple ALU  Half adder  Full adder  Constructing 4 bits adder  ALU does several operations  General ALU structure  Timing diagram of adder  Overflow.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Computing Systems Lecture 3 Binary Representation & Boolean Logic Binary and Logic 1.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Programming for GCSE Topic 9.2: Circuits for Adding T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science Queen.
Boolean Algebra How gates get picked. Boolean Arithmetic Boolean ≠ Binary – Boolean – 1/0 only, no places Boolean addition:
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.
Hoda Roodaki Boolean Algebra Hoda Roodaki
CSIS-110 Introduction to Computer Science
ECE 301 – Digital Electronics
Eng. Mai Z. Alyazji October, 2016
Boolean Algebra & De Morgan's Theorems
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
CSE 311 Foundations of Computing I
Boolean Algebra & Logic Circuits
Universal gates.
CSE 370 – Winter Combinational Logic - 1
Boolean Algebra.
Week 7: Gates and Circuits: PART II
Dr. Clincy Professor of CS
Boolean Algebra Introduction CSCI 240
Logic Gates.
COMS 361 Computer Organization
XOR Function Logic Symbol  Description  Truth Table 
Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits
CSC102 - Discrete Structures (Discrete Mathematics) Set Operations
Presentation transcript:

CSC Intro. to Computing Lecture 7: Circuits & Boolean Properties

Announcements Course slides are available from web page  Posted both before and after class  Slides after class includes my drawings Homework #2 handed out at end of class  Also available on course web page  Due by 5PM on Thursday, Feb. 9 CSC tutors are still available  Hours posted outside Wehle 206 & 208

Announcements Quiz #1 handed back at end of class  Mean score: 82  Standard deviation: 20  Answer key available on web page Lowest quiz and homework score is dropped  I expect everyone will still get a 100% for this course Do not worry about your difficulties in mathematics. I can assure you mine are still greater. -- Albert Einstein

In-Class Exercise Truth Table a)

In-Class Exercise Diagram a)

In-Class Exercise Truth Table b)

In-Class Exercise Diagram b)

In-Class Exercise Truth Table c)

In-Class Exercise Diagram c)

In-Class Exercise Truth Table d)

In-Class Exercise Diagram d)

In-Class Exercise Truth Table e)

In-Class Exercise Diagram e)

Boolean Properties Law of Double Negation: PropertyANDOR Commutative a·b = b·aa+b = b+a Associative a·(b·c) = (a·b)·ca+(b+c)=(a+b)+c Distributive a·(b+c) = (a·b)+(a·c)a+(b·c) = (a+b)·(a+c) Identity a·1 = aa+0 = a Complement a·ā = 0a+ā = 1 DeMorgan a·b = ā+ba+b = ā·b Idempotency a·a = aa+a = a

More About Boolean Properties Properties identify equivalent circuits  E.g., circuits with identical truth table results Many ways we use these properties  Reduce delays by doing more work in parallel  Simplify circuits by removing useless gates

Using Boolean Properties CircuitProperty Used b+a Identity Reduce to a+b :

Using Boolean Properties CircuitProperty Used b+ab+a Identity a+b Reduce to a+b :

Using Boolean Properties CircuitProperty Used a·(a·b) Identity Reduce to a·b :

Using Boolean Properties CircuitProperty Used a·(a·b) Identity (a·a)·b Reduce to a·b :

Using Boolean Properties CircuitProperty Used a·(a·b) Identity (a·a)·b Associative a·b Reduce to a·b :

Using Boolean Properties CircuitProperty Used (c·d)+(d·c) Identity Reduce to c :

Using Boolean Properties CircuitProperty Used (c·d)+(d·c) Identity (c·d)+(c·d) Reduce to c :

Using Boolean Properties CircuitProperty Used (c·d)+(d·c) Identity (c·d)+(c·d) Commutative c·(d+d) Reduce to c :

Using Boolean Properties CircuitProperty Used (c·d)+(d·c) Identity (c·d)+(c·d) Commutative c·(d+d) Distributive c·1c·1 Reduce to c :

Using Boolean Properties CircuitProperty Used (c·d)+(d·c) Identity (c·d)+(c·d) Commutative c·(d+d) Distributive c·1 Complement c Reduce to c :

Using Boolean Properties CircuitProperty Used (y·z)·(z·y) Identity Reduce to y·z :

Using Boolean Properties CircuitProperty Used (y·z)·(z·y) Identity (y·z)·(y·z) Reduce to y·z :

Using Boolean Properties CircuitProperty Used (y·z)·(z·y) Identity (y·z)·(y·z) Commutative y·z Reduce to y·z :

DeMorgan’s Laws Two laws specific to logical systems  First stated in present form by Prof. DeMorgan  Useful for evaluating & simplifying circuits  Make great quiz questions, too

DeMorgan’s Laws Only properties that works with NAND or NOR gates  Easy to know when it should be used How to use DeMorgan’s Laws  Negate the inputs to the NAND/NOR gate  Replace the gate with its opposite NAND becomes an OR NOR becomes an AND

Using Boolean Properties CircuitProperty Used b·ab·a Identity Reduce to a+b :

Using Boolean Properties CircuitProperty Used b·ab·a Identity b+ab+a DeMorgan’s Reduce to a+b :

Using Boolean Properties CircuitProperty Used b·ab·a Identity b+ab+a DeMorgan’s b+ab+a Reduce to a+b :

Using Boolean Properties CircuitProperty Used b·ab·a Identity b+ab+a DeMorgan’s b+ab+a Double Negation a+ba+b Reduce to a+b :

Half-Adders Half-adder is a simple, but vital, circuit  Accepts two bits as input  Circuit then adds the two bits  Outputs the result bit and a carry bit Half-adder can only be used to add least significant bit of a large number

Half-Adder Which line is result and which is carry?

Full-Adders Full-adder continues adding two numbers  Takes two new bits and carry bit from last adder as inputs  Circuit adds all the bits  Outputs a result bit and another carry bit Full-adder is used to add additional bits  Also makes EXCELLENT quiz and midterm questions

Full-Adder Slightly more complex version of a half- adder

For next lecture Do your homework! Start reading Section 5 Be ready to discuss:  Computer components