Menu. Let s logically analyze a simple paragraph:

Similar documents
XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

CSE 20 DISCRETE MATH. Fall

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA (CONT.)

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Boolean Algebra, Gates and Circuits

Logic Gate Level. Part 2

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Chapter 2: Switching Algebra and Logic Circuits

Computer Organization: Boolean Logic

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

Digital Logic (2) Boolean Algebra

Chapter 2 Combinational Logic Circuits

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

BOOLEAN ALGEBRA INTRODUCTION SUBSETS

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

Boolean Algebra. Boolean Variables, Functions. NOT operation. AND operation. AND operation (cont). OR operation

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

DIGITAL CIRCUIT LOGIC BOOLEAN ALGEBRA

EEE130 Digital Electronics I Lecture #4

Unit 2 Boolean Algebra

Simplify the following Boolean expressions and minimize the number of literals:

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese

Logic Design. Chapter 2: Introduction to Logic Circuits

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Experiment 7: Magnitude comparators

DISCRETE STRUCTURES WEEK5 LECTURE1

Combinational Logic. By : Ali Mustafa

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

Binary Logic and Gates

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

Unit 8A Computer Organization. Boolean Logic and Gates

Chapter 1, Section 1.1 Propositional Logic

Lecture 10: 09//25/03 A.R. Neureuther Version Date 09/14/03 EECS 42 Introduction to Digital Electronics Andrew R. Neureuther

Binary Logic and Gates. Our objective is to learn how to design digital circuits.

EECS150 - Digital Design Lecture 19 - Combinational Logic Circuits : A Deep Dive

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Boolean Algebra & Digital Logic

4 Switching Algebra 4.1 Axioms; Signals and Switching Algebra

MC9211 Computer Organization

Propositional logic ( ): Review from Mat 1348

Chapter 2 Combinational Logic Circuits

Binary addition example worked out

MAT2345 Discrete Math

Compound Propositions

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

Introduction. Applications of discrete mathematics:

Propositional Logic. Spring Propositional Logic Spring / 32

Logic Synthesis and Verification

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

NAND, NOR and XOR functions properties

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Propositional Logic: Equivalence

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic.

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

EGC221: Digital Logic Lab

Signals and Systems Digital Logic System

Every time has a value associated with it, not just some times. A variable can take on any value within a range

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Discrete Mathematics. CS204: Spring, Jong C. Park Computer Science Department KAIST

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC

Building a Computer Adder

Logic Gates and Boolean Algebra

Boolean Logic Prof. James L. Frankel Harvard University. Version of 3:20 PM 29-Aug-2017 Copyright 2017, 2016 James L. Frankel. All rights reserved.

Fundamentals of Digital Design

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

School of Computer Science and Electrical Engineering 28/05/01. Digital Circuits. Lecture 14. ENG1030 Electrical Physics and Electronics

CS 226: Digital Logic Design

Chapter 2. Digital Logic Basics

Boolean Algebra. Philipp Koehn. 9 September 2016

Logic and Boolean algebra

Gates and Flip-Flops

Lecture 5: NAND, NOR and XOR Gates, Simplification of Algebraic Expressions

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Section 1.1: Logical Form and Logical Equivalence

Discrete Mathematics and Its Applications

CHAPTER1: Digital Logic Circuits Combination Circuits

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

CS61c: Representations of Combinational Logic Circuits

Chapter 2 Combinational Logic Circuits

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

Switches: basic element of physical implementations

CSC9R6 Computer Design. Practical Digital Logic

Exclusive Disjunction

CprE 281: Digital Logic

Truth-Functional Logic

Adequate set of connectives, logic gates and circuits

Unit 3 Session - 9 Data-Processing Circuits

Boolean Algebra CHAPTER 15

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

CS1800: Hex & Logic. Professor Kevin Gold

Computer organization

Systems I: Computer Organization and Architecture

Review: Additional Boolean operations

Lecture 1. Notes. Notes. Notes. Introduction. Introduction digital logic February Bern University of Applied Sciences

Transcription:

Menu Introduction to Design Look into my... 1 Introduction to Design Let s logically analyze a simple paragraph: When I forget my umbrella and it rains, I get wet. I also get wet when I stick my foot in the bathtub when it has already been filled. 2 University of Florida, 3003 File 01 1

ally Analyzing a Paragraph When I forget my umbrella and it rains, I get wet. I also get wet when I stick my foot in the bathtub when it has already been filled. OUTPUT: The output of this paragraph is getting wet I get wet under either of two specified conditions >It rains and I forget my umbrella >The bathtub is filled and I stick my foot in it 3 ally Analyzing a Paragraph When I forget my umbrella and it rains, I get wet. I also get wet when I stick my foot in the bathtub when it has already been filled. INPUT: Each condition is made of of two inputs >It rains and I forget my umbrella It rains Forget umbrella >The bathtub is filled and I stick my foot in it Bathtub filled Put foot in it 4 University of Florida, 3003 File 01 2

Signal Abbreviations When I forget my umbrella and it rains, I get wet. I also get wet when I stick my foot in the bathtub when it has already been filled. Let s abbreviate the inputs and outputs >Output: Wet >Inputs: Rain (it rains) NoUm (forget umbrella) Fill (bathtub filled) FootIn (put foot in it) 5 Writing an Equation When I forget my umbrella and it rains, I get wet. I also get wet when I stick my foot in the bathtub when it has already been filled. Write an equation for the paragraph Wet = ( Rain AND NoUm ) OR ( Fill AND FootIn ) 6 University of Florida, 3003 File 01 3

al Values Every logical variable (e.g., Rain, NoUm,..., Wet) has two possible values >True >False The logical abbreviations are: >True: T or 1 >False: F or 0 7 al AND Function The symbol for a logical AND operation is often one of the symbols used for multiplication: or no symbol >Z = A B >Z = A B >Z = A B >Z = A B >Z = AB AND Truth () Table Graphical AND Symbol 8 University of Florida, 3003 File 01 4

al OR Function The symbol for a logical OR operation is often the + sign or sometimes, >Z = A + B AND >Z = A B OR Truth () Table Graphical OR Symbol 9 Circuit circuit is easily constructed from the logic equation >Y = AB + C >Let X = AB >Y = X + C X=AB Ready for Wet? 10 University of Florida, 3003 File 01 5

Design Example: Get Wet! Wet =(Rain NoUm) + (Fill FootIn) 11 Design Example: Get Wet! Wet =(Rain NoUm) + (Fill FootIn) 12 University of Florida, 3003 File 01 6

al Level Shift Function The symbol for an INVERTER operation (also called a NOT operator) is one of the following: >Y = /A >Y = A >Y= A' >Y= ~A or NOT Truth () Table Graphical NOT Symbol 13 Design Example: Stay Dry! We can write a whole new paragraph based on the equation Dry =/Wet OLD: When I forget my umbrella and it rains, I get wet. I also get wet when I stick my foot in the bathtub when it has already been filled. NEW: I stay dry if I do not get wet! Wet(H) Dry(H) 14 University of Florida, 3003 File 01 7

Last al Example What is the equation for the below circuit? Hint /TwoB TwoB + /TwoB; that is the Question!!! 15 Getting Wet with I/O See live simulation with Works using with inputs and outputs (switches and LEDs) Get_Wet_action.cct 16 University of Florida, 3003 File 01 8

Intro to Design Summary Learned to convert a problem statement into a logic equation Learned the basic components of a digital circuit: AND, OR, NOT Learned to construct a digital circuit from a logic equation 17 Informal Intro to Boolean Algebra Motivation: Boolean Algebra is the calculus of logic. It is also called Propositional or the calculus of simple assertions. Assertion 1: Tacos are good. This is T or F (Not both) > We can express the assertion using symbols, e.g., X, Y, A, B > Let X represent the assertion, then X=T or X=F Assertion 2: Tacos are fatty. > Let Y represent assertion 2, then Y=T or Y=F > We can make it more interesting by allowing combinations of assertions and negative sentences (assertions). Ex: Let X=T and Y=F, then > Tacos are not good is false. (We write this as X = F) > Tacos are fatty is false. (Y = F) > Tacos are not fatty is true. (Y =F =T) X: Tacos are good Y: Tacos are fatty 18 University of Florida, 3003 File 01 9

Informal Intro to Boolean Algebra Assertion 3: Z: Tacos are cheap. Now what does it mean to say: X and Z (also written as X * Z) T or F? X or Z (also written as X + Z) T or F? X and Y (also written as X * Y) T or F? X or Y (also written as X +Y) T or F? (let X=T, Y=F, Z=T) X: Tacos are good Y: Tacos are fatty Z: Tacos are cheap The combining of assertions using AND is called a conjunction, written as XY, X*Y, X Y or X Y, and it is T iff both assertions are T, else it is F. The combining of assertions using OR is called a disjunction, written as X Y or X+Y, and it is F iff both assertions are F, else it is T. The combining of assertions using EOR (XOR) is called an exclusive disjunction (exclusive or), written as X Y or X:+:Y, and it is false iff both assertions are either both F or both T, else it is true. The combining of assertions using EQUIV is called an exclusive conjunction, (equivalence), written as X Y or X:*:Y, and it is true iff both assertions are either both F or both are T, else it is false. (This is the complement of the exclusive-or.) 19 Activation-Level Notation and Truth Tables We use two state (binary) devices > Represent the 2 states by symbols {0,1} or {F,T} or {L,H} > Convenient to use the symbols {0,1} as though they were binary numbers, but they are strictly symbols! > To make the notation easier we assign symbols as follows: {T,F} = {1,0} ( = {H,L} for positive logic ) or {T,F} = {1,0} ( = {L,H} for n logic ) > Since X, Y or Z can only be {T,F}, we could represent all possibilities exhaustively in a table, called a Truth Table Ex: Represent X*Y and X+Y and X Y in a Truth Table X Y X*Y X+Y X Y X Y X*Y X+Y X Y F F F F F 0 0 0 0 0 F T F T T 0 1 0 1 1 T F F T T 1 0 0 1 1 T T T T F 1 1 1 1 0 20 University of Florida, 3003 File 01 10

Boolean Algebra Notation A Boolean variable, usually an uppercase letter, e.g., A, B, X, Y is a variable that can have one and only one state, mainly 0 or 1 (F,T). These variables represent the inputs and outputs of digital devices. A Boolean variable may be a function of other Boolean variables, e.g., C = AB+D C = f(a,b,d). A B D f( ) C 21 Inverter, Not, Level Shifter The most basic Boolean operations (the basic operations) include: AND, OR, and NOT (complement). Definition of NOT: The complement of a Boolean variable V, written as ~V (or V or /V or V ), is defined as: ~V=0 if V=1 or ~V=1 if V=0 > The electronic device that performs the logical complement operation is called LEVEL SHIFTER (or an INVERTER) Z ~Z F T T F 22 University of Florida, 3003 File 01 11

Informal Intro to Boolean Algebra The second most basic Boolean operation is AND. Definition of AND: The AND of Boolean variables {A,B}, written as A*B, A B, A B or AB, is defined as: AB=1 iff A=1 and B=1 else AB=0 > The electronic device that performs the logical AND operation is called an AND gate. 23 Informal Intro to Boolean Algebra The third most basic Boolean operation is OR. Definition of OR: The OR of Boolean variables {A,B}, written as A B or A B, is defined as: A+B=0 iff A=0 and B=0 else A+B=1 > The electronic device that performs the logical OR operation is called an OR gate. 24 University of Florida, 3003 File 01 12

The End! 25 University of Florida, 3003 File 01 13