Floating Point Representation and Digital Logic. Lecture 11 CS301

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

Intro To Digital Logic

Lecture 22 Chapters 3 Logic Circuits Part 1

Introduction to Computer Engineering ECE 203

Switches: basic element of physical implementations

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

Numbers and Arithmetic

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1

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

CprE 281: Digital Logic

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

Introduction to CMOS VLSI Design Lecture 1: Introduction

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

Numbers and Arithmetic

Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits

Introduction to Computer Engineering. CS/ECE 252, Spring 2017 Rahul Nayar Computer Sciences Department University of Wisconsin Madison

Unit 8A Computer Organization. Boolean Logic and Gates

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

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

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

211: Computer Architecture Summer 2016

CMPE12 - Notes chapter 2. Digital Logic. (Textbook Chapters and 2.1)"

Lecture 0: Introduction

CSE140: Components and Design Techniques for Digital Systems. Logic minimization algorithm summary. Instructor: Mohsen Imani UC San Diego

CS61C : Machine Structures

Introduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing

CS61C : Machine Structures

Lecture 34: Portable Systems Technology Background Professor Randy H. Katz Computer Science 252 Fall 1995

Computer organization

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

ECE/CS 250 Computer Architecture

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Overview. Multiplexor. cs281: Introduction to Computer Systems Lab02 Basic Combinational Circuits: The Mux and the Adder

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

CPE100: Digital Logic Design I

Combinational Logic. By : Ali Mustafa

COMP2611: Computer Organization. Introduction to Digital Logic

Gates and Logic: From Transistors to Logic Gates and Logic Circuits

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

Computer Organization: Boolean Logic

CHAPTER1: Digital Logic Circuits Combination Circuits

Learning Objectives 10/7/2010. CE 411 Digital System Design. Fundamental of Logic Design. Review the basic concepts of logic circuits. Dr.

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

Fundamentals of Digital Design

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Gates and Logic: From Transistors to Logic Gates and Logic Circuits

University of Toronto Faculty of Applied Science and Engineering Final Examination

EE141-Fall 2011 Digital Integrated Circuits

Lecture 7: Logic design. Combinational logic circuits

AE74 VLSI DESIGN JUN 2015

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

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

Lecture 1: Circuits & Layout

ECE321 Electronics I

ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems. Today MOS MOS. Capacitor. Idea

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

CSE140: Components and Design Techniques for Digital Systems. Introduction. Instructor: Mohsen Imani

CS/COE0447: Computer Organization and Assembly Language

CSE 20 DISCRETE MATH. Fall

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

2.1. Unit 2. Digital Circuits (Logic)

Systems I: Computer Organization and Architecture

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

CPE100: Digital Logic Design I

ESE370: Circuit-Level Modeling, Design, and Optimization for Digital Systems

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

EE 230 Lecture 31. THE MOS TRANSISTOR Model Simplifcations THE Bipolar Junction TRANSISTOR

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences

Lecture 5 Fault Modeling

Hw 6 and 7 Graded and available Project Phase 2 Graded Project Phase 3 Launch Today

Lecture 25. Semiconductor Memories. Issues in Memory

CSC258: Computer Organization. Digital Logic: Transistors and Gates

CprE 281: Digital Logic

Sample Test Paper - I

Digital Integrated Circuits A Design Perspective

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK

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

Combinatorial Logic Design Multiplexers and ALUs CS 64: Computer Organization and Design Logic Lecture #13

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

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

Dynamic Combinational Circuits. Dynamic Logic

ESE570 Spring University of Pennsylvania Department of Electrical and System Engineering Digital Integrated Cicruits AND VLSI Fundamentals

Lecture Outline. ESE 570: Digital Integrated Circuits and VLSI Fundamentals. Review: 1st Order RC Delay Models. Review: Two-Input NOR Gate (NOR2)

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

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

EEC 116 Lecture #5: CMOS Logic. Rajeevan Amirtharajah Bevan Baas University of California, Davis Jeff Parkhurst Intel Corporation

CPS311 Lecture: Introduction to Digital Logic

Semiconductor Memories

State and Finite State Machines

EE141- Fall 2002 Lecture 27. Memory EE141. Announcements. We finished all the labs No homework this week Projects are due next Tuesday 9am EE141

Digital Integrated Circuits A Design Perspective. Semiconductor. Memories. Memories

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

CS 226: Digital Logic Design

Implementation of Boolean Logic by Digital Circuits

CPS311 Lecture: Introduction to Combinatorial Logic

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

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

Transcription:

Floating Point Representation and Digital Logic Lecture 11 CS301

Administrative Daily Review of today s lecture w Due tomorrow (10/4) at 8am Lab #3 due Friday (9/7) 1:29pm HW #5 assigned w Due Monday 10/8 at 5pm Program #1 assigned w Due Thursday, 10/18 at 11:59pm Read Appendix C.1-C.3, C.5

Digital Logic (How do we construct a processor?)

Multi-Million Transistor Chips Intel Core i7 Extreme Edition - 731 million transistors, 263 mm^2 area

MOS Semiconductor Transistors Source Wire Gate Wire Drain Wire n-type Si e - e - n-type Si Gate e - e- e - e - e - e - Source Drain e - e - Oxide e - e - e - e - e - e - Silicon Bulk (p-type) e - e - P-type silicon: Excess positive charges (electron holes) N-type silicon: Excess negative charges (electrons) Oxide: Insulator Gate: Metal pad In this state, current (electrons) cannot flow between source and drain switch is OPEN

MOS Semiconductor Transistors n-type Si Drain Wire Source Wire 5V Gate Wire n-type Si Gate e e - e- - e - e e - - e - e - Source e - e - e - e - e - e - e - e - e - Drain e - Oxide e - e - Silicon Bulk (p-type) Place a positive charge on the gate wire (gate = 5V) The gate s positive charge attracts negatively-charged electrons This row of electrons forms a channel connecting the Source and Drain Current can flow Switch is CLOSED

Transistors Transistors w Emits 0 or 1 when on or off w Can connect transistors in series or parallel to create larger building blocks called gates A 5V GND Z Pull-up pmos transistor Pull-down nmos transistor CMOS Inverter created from two transistors

Digital Logic Voltages represent values w Logically false - 0 w Logically true - 1 Values are complements or inverses

Gates: Basic Building Blocks: Depending on organization of transistors, different inputs give specific outputs Basic gates equivalent to boolean operators w INVERTER or NOT,! w AND, && w OR, A A Combinational logic A B w Outputs based on inputs A B w No memory A B A B

Truth Tables Functionality fully specified by truth table n inputs w n input columns w 2 n input rows m outputs w m output columns A Z 0 1 1 0 A B Z 0 0 0 0 1 0 1 0 0 1 1 1 A B Z 0 0 0 0 1 1 1 0 1 1 1 1 NOT AND OR

Combinational Logic Gates can be combined in w Series w Parallel Any combination of both possible B A B Y Y Z Z A A A 0 0 1 0 0 1 1 0 1 0 0 0 1 1 0 1

Other Important Gates NAND NOR A B Z 0 0 1 0 1 1 1 0 1 1 1 0 A B Z 0 0 1 0 1 0 1 0 0 1 1 0 A B A B A B A B

Universal Gates Any other gate can be constructed from some arrangement of universal gates w Examples: NAND / NOR Important because frequently less expensive to design chips with homogeneous gates

Universal Gates (NAND) NOT A A AA 0 1 1 1 0 0 A A A

Universal Gates (NAND) NOT AND A A AA 0 1 1 1 0 0 A B AB 0 0 0 0 1 0 1 0 0 1 1 1 A A A

Universal Gates (NAND) NOT AND A A AA 0 1 1 1 0 0 A B AB AB 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 A A B A A A B

Universal Gates (NAND) OR A B AB 0 0 0 0 1 1 1 0 1 1 1 1

Universal Gates (NAND) OR A B AB AB 0 0 0 0 0 1 1 1 1 0 1 1 1 1 1 1 A B AB

For Fun: XOR A B A B 0 0 0 0 1 1 1 0 1 1 1 0

For Fun: XOR A B A B 0 0 0 0 1 1 1 0 1 1 1 0

Few Final Notes Gates can have more than 2 inputs w Generally keep number small due to electrical engineering issues Circuits that create current computers are constructed from these basic gates

Equivalent Truth tables Circuit Boolean algebra expression Truth tables are great for evaluating when circuit or Boolean expression evaluate to true

Combinatorial Logic: Multiplexor Really a selector: One of the inputs is selected by the control C = (A * ~S) (B * S) 23

Combinational Logic: Multiplexor 2 n inputs n:1 MUX 1 output n control n control lines select which of 2 n inputs goes to output n possible input lines requires ceiling(log2n) control lines. Equivalently, n control lines with 2 n input lines.

1-bit MUX AS BS

Combinational Logic: De-Multiplexor 1 input n:1 DEMUX 2 n outputs n control n control lines select which of 2 n outputs input goes to

1 to 2 De-multiplexor

Combinational Logic: Decoder n control 2 n outputs n control lines select which of 2 n outputs set to 1

1 to 8 De-multiplexor

Combinational Logic: Encoder 2 n inputs n bit output One of 2 n inputs set to 1. Output encodes which input set to 1.

4 to 2 Encoder

8 to 3 Encoder 33

Combinational Logic Comparator w Given 2 inputs, sets output to 1 if inputs match

Combinational Logic Half-Adder w No carry in

Combinational Logic Half-Adder w No carry in A B Sum Carry Out 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 1 A B AB

1-bit Full Adder Three inputs: w A w B w C in Two outputs: w Sum = (A B) C in w C out = AB (A B) C in

Ripple Carry Adder Construct n-bit adder with n 1-bit adders Delay is problem Faster alternative: w Carry-lookahead adder