mith College Computer Science CSC270 Spring 16 Circuits and Systems Lecture Notes Week 2 Dominique Thiébaut

Similar documents
mith College Computer Science CSC270 Spring 16 Circuits and Systems Lecture Notes Week 3 Dominique Thiébaut

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

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

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

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Boolean Algebra, Gates and Circuits

CS61C : Machine Structures

Systems I: Computer Organization and Architecture

CS61C : Machine Structures

Midterm Exam Two is scheduled on April 8 in class. On March 27 I will help you prepare Midterm Exam Two.

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

Adders - Subtractors

CSE 140 Midterm I - Solution

Floating Point Representation and Digital Logic. Lecture 11 CS301

Logic and Boolean algebra

Logic Design I (17.341) Fall Lecture Outline

T02 Tutorial Slides for Week 6

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

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

Boolean Algebra. Philipp Koehn. 9 September 2016

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

CSE 140L Spring 2010 Lab 1 Assignment Due beginning of the class on 14 th April

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

Lecture A: Logic Design and Gates

CMSC 313 Lecture 17. Focus Groups. Announcement: in-class lab Thu 10/30 Homework 3 Questions Circuits for Addition Midterm Exam returned

Experiment 7: Magnitude comparators

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

211: Computer Architecture Summer 2016

Unit 2 Session - 6 Combinational Logic Circuits

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

ENGG 1203 Tutorial - 2 Recall Lab 2 - e.g. 4 input XOR. Parity checking (for interest) Recall : Simplification methods. Recall : Time Delay

Philadelphia University Student Name: Student Number:

SAMPLE ANSWERS MARKER COPY

MC9211 Computer Organization

Gate-Level Minimization

CS61c: Representations of Combinational Logic Circuits

Carry Look Ahead Adders

The course web site s notes entitled Switches, Gates and Circuits which can be found at will be useful to you throughout the lab.

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

CSE 140 Midterm 2 - Solutions Prof. Tajana Simunic Rosing Spring 2013

Digital Logic (2) Boolean Algebra

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

CS 121 Digital Logic Design. Chapter 2. Teacher Assistant. Hanin Abdulrahman

CSE 140 Midterm 3 version A Tajana Simunic Rosing Spring 2015

Total Time = 90 Minutes, Total Marks = 100. Total /10 /25 /20 /10 /15 /20

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

CHAPTER1: Digital Logic Circuits Combination Circuits

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Fundamentals of Digital Design

EEE130 Digital Electronics I Lecture #4

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

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

L2: Combinational Logic Design (Construction and Boolean Algebra)

UNIVERSITI TENAGA NASIONAL. College of Information Technology

KP/Worksheets: Propositional Logic, Boolean Algebra and Computer Hardware Page 1 of 8

DIGITAL LOGIC CIRCUITS

LOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

Lecture 2 Review on Digital Logic (Part 1)

CS/COE0447: Computer Organization and Assembly Language

ELCT201: DIGITAL LOGIC DESIGN

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

1 Boolean Algebra Simplification

Chapter 2 Boolean Algebra and Logic Gates

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

Chapter 2. Digital Logic Basics

Propositional Logic. Logical Expressions. Logic Minimization. CNF and DNF. Algebraic Laws for Logical Expressions CSC 173

Combinational Logic. Course Instructor Mohammed Abdul kader

Menu. Binary Adder EEL3701 EEL3701. Add, Subtract, Compare, ALU

Karnaugh Maps (K-Maps)

Combinational Logic. Review of Combinational Logic 1

For smaller NRE cost For faster time to market For smaller high-volume manufacturing cost For higher performance

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

Chapter 03: Computer Arithmetic. Lesson 03: Arithmetic Operations Adder and Subtractor circuits Design

DIGITAL LOGIC CIRCUITS

ENGG 1203 Tutorial. Solution (b) Solution (a) Simplification using K-map. Combinational Logic (II) and Sequential Logic (I) 8 Feb Learning Objectives

ENG2410 Digital Design Combinational Logic Circuits

CSE370 HW3 Solutions (Winter 2010)

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

Combinational Logic (mostly review!)

Combinational Logic. By : Ali Mustafa

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

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

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

CMSC 313 Lecture 19 Combinational Logic Components Programmable Logic Arrays Karnaugh Maps

In Module 3, we have learned about Exclusive OR (XOR) gate. Boolean Expression AB + A B = Y also A B = Y. Logic Gate. Truth table

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

Lecture 22 Chapters 3 Logic Circuits Part 1

EEA051 - Digital Logic 數位邏輯 吳俊興高雄大學資訊工程學系. September 2004

Chapter 4 BOOLEAN ALGEBRA AND THEOREMS, MINI TERMS AND MAX TERMS

Karnaugh Maps for Combinatorial Logic CS 64: Computer Organization and Design Logic Lecture #12

Digital Logic Appendix A

Boolean Algebra & Digital Logic

Computer organization

Logic. Combinational. inputs. outputs. the result. system can

EC-121 Digital Logic Design

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

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

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

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

Transcription:

mith College Computer Science CSC270 Spring 16 Circuits and Systems Lecture Notes Week 2 Dominique Thiébaut dthiebaut@smith.edu

Lab 1: Lessons Learned

a0 b0 adder c0 S0

a1 b1 a0 b0 adder adder S1 S0

a31 b31 a1 b1 a0 b0 adder... adder adder S31 S1 S0

a31 b31 a1 b1 a0 b0 adder... adder S0 adder S31 S1 S0

Small Lie a31 b31 a1 b1 a0 b0 adder... adder S0 adder S31 S1 S0

Small Lie a31 b31 a1 b1 a0 b0 adder... adder S0 adder S31 S1 S0 delay = 1ns

Small Lie a31 b31 a1 b1 a0 b0 adder... adder S0 adder S31 S1 S0 delay = 1ns

Small Lie a31 b31 a1 b1 a0 b0 adder... adder S0 adder S31 1+1ns S1 S0 delay = 1ns

Small Lie a31 b31 a1 b1 a0 b0 adder... adder S0 adder S31 delay = 32ns 1+1ns S1 S0 delay = 1ns

Multi-bit adders designed with "Look-Ahead" Carry Generator Small Lie a31 b31 a1 b1 a0 b0 adder... adder S0 adder S31 delay = 32ns 1+1ns S1 S0 delay = 1ns

Outline Back to Duality Universal Gates: Nands & Nors Karnaugh Maps and Simplification Decoders CHAPTER 3

de Morgan & Duality

de Morgan & Duality (a. b)' = a' + b'

de Morgan & Duality (a. b)' = a' + b' a b

de Morgan & Duality (a. b)' = a' + b' a b a b

de Morgan & Duality (a. b)' = a' + b' Meet the NAND gate! a b a b

Meet the NAND gate! a b a b

NAND: a Gate with Interesting Properties: 1 A B (A. B)' 0 0 1 0 1 1 1 0 1 1 1 0 a

NAND: a Gate with Interesting Properties: 2 Can we implement an AND with NAND(s)? A B (A. B)' 0 0 1 0 1 1 1 0 1 1 1 0 a b a.b

NAND: a Gate with Interesting Properties: 3 Can we implement an OR with NAND(s)? A B (A. B)' 0 0 1 0 1 1 1 0 1 1 1 0 a b a + b

So, we can implement an AND, an OR, and a NOT gate with NANDs, So

Exercise Implement an XOR with only NAND gates. A B A B 0 0 0 0 1 1 1 0 1 1 1 0

Exercise Implement f = Σ (1, 2, 3) with NANDs only.

Exercise Implement the boolean function below with NANDs only.

Advantages of Using NAND Gates

Advantages of Using NAND Gates Uniformity Smaller footprint Large scale programming

Exercise What is the boolean expression of the output of this circuit?

Exercise What is the relationship between the midterm canonical form of a function, and its Nand representation?

(Later) Outline Back to Duality Universal Gates: Nands & Nors Karnaugh Maps and Simplification Decoders CHAPTER 3

Karnaugh Maps

A B C D f 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 Setup

A B C D f 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 AB CD OO O1 11 1O OO O1 11 1O f Setup

We stopped here last time

Exercises Simplify the following functions using Karnaugh maps: f(a, b, c, d) = Σ (1, 2, 3) g(a, b, c, d) = Σ (1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 15) h(a, b, c, d) = Π (1, 2, 3, 4, 12, 13, 14, 15)

Outline Back to Duality Universal Gates: Nands & Nors Karnaugh Maps and Simplification Nors CHAPTER 3 Decoders

Group Work Look at how we dealt with the NAND gate, and figure out everything there is to say about the NOR gate.

Outline Back to Duality Universal Gates: Nands & Nors Karnaugh Maps and Simplification Nors CHAPTER 3 Decoders

Decoders Processor bit0 bit1 Address bit2 bit3 The "purest" form of decoding

2-to-4 Decoder A0 Y0 Y1 A1 Y2 Y3 A1 A0 Y3 Y2 Y1 Y0 0 0 0 1 1 0 1 1

2-to-4 Decoder A0 A1 Y0 Y1 Y2 Y3 Active-Low Outputs A1 A0 Y3 Y2 Y1 Y0 0 0 0 1 1 0 1 1

Exercise Use a decoder with active-high outputs to implement a 2-bit adder Use a decoder with active-low outputs and only NAND gates to implement a 2-bit adder

Outline Decoders Active-High Active-Low With Enable Input CHAPTER 3

A0 A1 E Y0 Y1 Y2 Y3 A1 A0 E Y3 Y2 Y1 Y0 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 0 1 1 1 0 1 1 1 1

A0 A1 Y0 Y1 Y2 A1 A0 E Y3 Y2 Y1 Y0 0 0 0 1 0 1 1 E Y3 1 0 1 1 1 1

A0 Y 0 A1 A0 E Y3 Y2 Y1 Y0 A1 Y 1 Y 2 E Y 3