S C F F F T T F T T S C B F F F F F T F T F F T T T F F T F T T T F T T T

Similar documents
211: Computer Architecture Summer 2016

Slides for Lecture 10

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

Cs302 Quiz for MID TERM Exam Solved

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

Slide Set 3. for ENEL 353 Fall Steve Norman, PhD, PEng. Electrical & Computer Engineering Schulich School of Engineering University of Calgary

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

CS/COE0447: Computer Organization and Assembly Language

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

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 2 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

CHAPTER1: Digital Logic Circuits Combination Circuits

Lecture 2 Review on Digital Logic (Part 1)

Boolean Algebra & Logic Gates. By : Ali Mustafa

Binary addition example worked out

1 Boolean Algebra Simplification

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

CSE 20 DISCRETE MATH. Fall

Combinational Logic. Review of Combinational Logic 1

EECS Variable Logic Functions

Chapter 2: Switching Algebra and Logic Circuits

CS 226: Digital Logic Design

WEEK 2.1 BOOLEAN ALGEBRA

Slides for Lecture 19

CSC9R6 Computer Design. Practical Digital Logic

Philadelphia University Student Name: Student Number:

Functions. Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways:

Logic Design. Chapter 2: Introduction to Logic Circuits

This form sometimes used in logic circuit, example:

SAMPLE ANSWERS MARKER COPY

MC9211 Computer Organization

Combinational Logic Design Principles

CS1800 Discrete Structures Final Version A

Fundamentals of Digital Design

Switches: basic element of physical implementations

Boolean Algebra & Digital Logic

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Logic Gate Level. Part 2

Combinational Logic. By : Ali Mustafa

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

EEE130 Digital Electronics I Lecture #4

Combinational Logic Circuits Part II -Theoretical Foundations

Digital Logic (2) Boolean Algebra

Number System conversions

Lab 1 starts this week: go to your session

ECE/CS 250: Computer Architecture. Basics of Logic Design: Boolean Algebra, Logic Gates. Benjamin Lee

ECE/CS 250 Computer Architecture

WEEK 3.1 MORE ON KARNAUGH MAPS

CprE 281: Digital Logic

Chapter 7 Logic Circuits

Chapter 2 Combinational Logic Circuits

Review for Test 1 : Ch1 5

ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2

Digital Logic Design. Malik Najmus Siraj

Chapter-2 BOOLEAN ALGEBRA

Signals and Systems Digital Logic System

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design Boolean Algebra, Logic Gates

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Combinational Logic Fundamentals

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

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

ENG2410 Digital Design Combinational Logic Circuits

Ex: Boolean expression for majority function F = A'BC + AB'C + ABC ' + ABC.

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

Midterm Examination # 1 Wednesday, February 25, Duration of examination: 75 minutes

Chapter 2 : Boolean Algebra and Logic Gates

Unit 8A Computer Organization. Boolean Logic and Gates

Chapter 2: Princess Sumaya Univ. Computer Engineering Dept.

Chapter 3 Ctd: Combinational Functions and Circuits

Sample Marking Scheme

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Digital Circuit And Logic Design I. Lecture 3

Hakim Weatherspoon CS 3410 Computer Science Cornell University

Review: Additional Boolean operations

Chapter 2: Boolean Algebra and Logic Gates

EXPERIMENT #4: SIMPLIFICATION OF BOOLEAN FUNCTIONS

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

Chapter 2 Combinational logic

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Lecture 4 Modeling, Analysis and Simulation in Logic Design. Dr. Yinong Chen

Unit 3 Session - 9 Data-Processing Circuits

Review. EECS Components and Design Techniques for Digital Systems. Lec 06 Minimizing Boolean Logic 9/ Review: Canonical Forms

Administrative Notes. Chapter 2 <9>

University of Florida EEL 3701 Fall 1996 Dr. Eric M. Schwartz

CS/EE 181a 2010/11 Lecture 4

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation.

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

Chapter 1 CSCI

Lecture 4: More Boolean Algebra

2 Application of Boolean Algebra Theorems (15 Points - graded for completion only)

Systems I: Computer Organization and Architecture

9/29/2016. Task: Checking for a Lower-Case Letter. ECE 120: Introduction to Computing. Change C 5 to C 5 to Obtain L(C) from U(C)

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

Chapter 2 Boolean Algebra and Logic Gates

Lecture 22 Chapters 3 Logic Circuits Part 1

Chapter 2 Boolean Algebra and Logic Gates

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

Contents. Chapter 2 Digital Circuits Page 1 of 30

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic

CS/EE 181a 2008/09 Lecture 4

Transcription:

EECS 270, Winter 2017, Lecture 1 Page 1 of 6 Use pencil! Say we live in the rather black and white world where things (variables) are either true (T) or false (F). So if S is Mark is going to the Store and C is Mark likes Computer games then we ll assume that each phrase is either true or false (as opposed only sort of liking computer games). We can then use connectives to combine the variables. Mark is going to the store AND Mark likes computer games. The above statement is only true if both phrases are true. Let that sentence be X. We can now draw the truth table for X (we ll use the other tables in a minute). When is X true? S C X F F F T T F T T S C F F F T T F T T S C F F F T T F T T C F T _AND What if the statement, Y, were Mark is going to the store OR Mark likes computer games? When is that true? How about Mark does NOT like computer games? (OR vs. XOR) How about having B be Bob s house is brown. S AND C AND B S OR C OR B S OR C OR NOT B S OR (C AND B)

EECS 270, Winter 2017, Lecture 1 Page 2 of 6 Representation of Boolean Logic (section 2.6) Using AND, OR, NOT and XOR gets old. So symbols have been used to represent these notions for quite a while. We ll hit three different representations today: Math/Philosophy Electrical/Computer Engineering Gate Y AND Z Y OR Z NOT Y Y XOR Z Order of operations? In digital logic we usually think of 1 as being TRUE and 0 as being FALSE

EECS 270, Winter 2017, Lecture 1 Page 3 of 6 Methods of representation and terminology (p53-54, 64-68)) We can represent logic functions in a number of ways at this point. We can write logic equations, draw gates, and write truth tables. Going between these methods of representation (mostly to/from truth tables) can be interesting. Consider the following truth table. Write a logical formula that is equivalent. X 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 Terms: (p54-55,69) Variable Literal Product term Sum-of-Products Minterm Canonical Sum-of-Products Now write a truth table for the following word problem: Consider a device with three inputs: A, B and S as well as one output M. M should be equal to A if S=0, else M should be equal to B. Now, without looking at the Truth table, can you draw gates for this? Hint: it can be done with 4 gates (2 AND, 1 OR, 1 NOT) A B S 0 0 0 0 0 1 0 1 0 0 1 1 1 0 0 1 0 1 1 1 0 1 1 1 This device is called a multiplexor (MUX), you will see it in lab 1!

EECS 270, Winter 2017, Lecture 1 Page 4 of 6 Manipulation of logic (2.5, The Axioms of Logic handout on webpage) There are lots of logic properties, and most have a dual. You can prove these in a number of ways, but the easiest is to show that the truth tables of both are equivalent. This is informally called proof by truth table and formally called perfect induction Property Commutative a+b = b+a a*b=b*a Associative (a+b)+c = a+(b+c) Combining* a*b+a*b =a DeMorgan s a *b =(a+b) Distributive a*b+a*c=a*(b+c) *This one isn t in our book AFAIK. Can we use Combining to go from Canonical SoP to our other solution for the MUX? There is a lot more in this section, you ll need to read it.

EECS 270, Winter 2017, Lecture 1 Page 5 of 6 And now for something completely different (maybe) Binary (and Hex) numbers (1.2) Consider the number 123 1 2 3 Each place has a value. We normally work in base 10, so each place is 10 times bigger than the last. In binary we work in base 2. Consider the number 10010 2 (the subscript indicates the base). 1 0 0 1 0 Now what do you suppose the value of 10.11 2 is? 1 0. 1 1 Let s convert 21 into base 2. (Time allowing we ll cover this in class. You need to know it in any case.) Now consider base 16. We need symbols for 0-15 but only have them for 0-9 in decimal. So we ll use A=10, B=11, C=12, D=13, E=14, F=15. And the payoff Why is binary What is 1F 16 in decimal? What is 44 in hexadecimal (base 16)? Converting between base 2 and base 16 is easy. Just group the binary digits into groups of 4 starting at the decimal point 1. So what is 10011001 2 in hex? We commonly use hex to represent large numbers which we d prefer to use binary for just to make it more readable

EECS 270, Winter 2017, Lecture 1 Page 6 of 6 And the payoff Why did we do binary numbers on the first day? How are they relevant to digital logic? The point is that we can represent binary numbers using basic logic. Consider a device that adds two one-digit binary numbers and outputs a 2 digit binary number. Let the inputs be A and B and the output be R[1:0]. (The R[1:0] is a way two write that there are two outputs, R1 and R0. We might also write R[7:0] to indicate that there are 8 outputs: R7, R6, R5, R4, R3, R2, R1, and R0.) A + B ==== R 1 R 0 Write the truth table for this adder. R1 is to be the most significant digit (farthest to the left in the 2 s place in this example) while R0 is to be the least significant digit (farthest to the right, in the 1 s place). Then draw the logic gates. A B R1 0 0 0 1 1 0 1 1 R0 The point is that we can do arithmetic using basic logic. You may say great, I can add two one-bit numbers. But it turns out we can use this basic idea of using logic states to represent numbers to do all kinds of math. A modern computer can easily do 5-10 billion additions of 64-bit numbers in a second! All based on this basic idea. Consider adding two 3-digit binary numbers. If we used the truth table scheme, how many rows would there be? o What about for a 64-bit addition? Can we break the problem down in a way that works better? o How? Let s work on it