a b y UC Berkeley CS61C : Machine Structures Hello Helo,world!

Similar documents
UC Berkeley CS61C : Machine Structures

UC Berkeley CS61C : Machine Structures

UC Berkeley CS61C : Machine Structures

0 A. Review. Lecture #16. Pipeline big-delay CL for faster clock Finite State Machines extremely useful You!ll see them again in 150, 152 & 164

Gates and Circuits 1

CS 61C: Great Ideas in Computer Architecture Finite State Machines, Functional Units

University of Technology

In this lecture: Lecture 3: Basic Logic Gates & Boolean Expressions

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Formal Foundation of Digital Design

Digital Logic Circuits

Binary Addition. Boolean Algebra & Logic Gates. Recap from Monday. CSC 103 September 12, Binary numbers ( 1.1.1) How Computers Work

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Logic diagram: a graphical representation of a circuit

Lab Report: Digital Logic

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

Instructor: Randy H. Katz Fall Lecture #17. Warehouse Scale Computer

Gates and and Circuits

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Logic Circuit Design

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

Unit 3. Logic Design

Chapter 3 Digital Logic Structures

Introduction to CMOS VLSI Design (E158) Lecture 5: Logic

Function Table of an Odd-Parity Generator Circuit

Subject: Analog and Digital Electronics Code:15CS32

DIGITAL ELECTRONICS. Methods & diagrams : 1 Graph plotting : - Tables & analysis : - Questions & discussion : 6 Performance : 3

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006

CS 61C: Great Ideas in Computer Architecture Lecture 10: Finite State Machines, Func/onal Units. Machine Interpreta4on

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

CS302 - Digital Logic Design Glossary By

Positive and Negative Logic

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

Chapter 3 Describing Logic Circuits Dr. Xu

EECS 150 Homework 4 Solutions Fall 2008

LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

Logic Design I (17.341) Fall Lecture Outline

Digital Systems Principles and Applications TWELFTH EDITION. 3-3 OR Operation With OR Gates. 3-4 AND Operations with AND gates

LIST OF EXPERIMENTS. KCTCET/ /Odd/3rd/ETE/CSE/LM

DIGITAL LOGIC CIRCUITS

Electronics. Digital Electronics

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these

logic system Outputs The addition of feedback means that the state of the circuit may change with time; it is sequential. logic system Outputs

ANALOGUE AND DIGITAL ELECTRONICS STUDENT S WORKBOOK U3: DIGITAL ELECTRONICS

EMT1250 LABORATORY EXPERIMENT. EXPERIMENT # 4: Combinational Logic Circuits. Name: Date:

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

Chapter 1: Digital logic

BCD Adder. Lecture 21 1

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

BOOLEAN ALGEBRA AND LOGIC FAMILIES

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 1 Logistics

Chapter 3. H/w s/w interface. hardware software Vijaykumar ECE495K Lecture Notes: Chapter 3 1

Lecture 2: Digital Logic Basis

Introduction. BME208 Logic Circuits Yalçın İŞLER

5. (Adapted from 3.25)

DIGITAL ELECTRONICS QUESTION BANK

OBJECTIVE TYPE QUESTIONS FOR PRACTICAL EXAMINATION Subject : Electronics-I ( EC 112)

Exercises: Fundamentals of Computer Engineering 1 PAGE: 1

Digital Logic and Design (Course Code: EE222) Lecture 14: Combinational Contd.. Decoders/Encoders

Computer Architecture: Part II. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Course Overview. Course Overview

The book has excellent descrip/ons of this topic. Please read the book before watching this lecture. The reading assignment is on the website.

Course Outline Cover Page

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

Introduction to Electronics. Dr. Lynn Fuller

Introduction to Digital Logic Missouri S&T University CPE 2210 Adders

Lesson: Binary Arithmetic and Arithmetic Circuits-2. Lesson Developer: Dr. Divya Haridas

Computer Architecture (TT 2012)

QUIZ. What do these bits represent?

Module 4: Design and Analysis of Combinational Circuits 1. Module-4. Design and Analysis of Combinational Circuits

Department of Electronics and Communication Engineering

Combinational logic. ! Regular logic: multiplexers, decoders, LUTs and FPGAs. ! Switches, basic logic and truth tables, logic functions

DEPARTMENT OF ELETRONICS AND COMMUNICATION ENGINEERING COURSE NOTES FACULTY NAME/DESIGNATION: SUGAPRIYAA.THA / LECTURER

IMPLEMENTING THE 10-BIT, 50MS/SEC PIPELINED ADC

Finite State Machines CS 64: Computer Organization and Design Logic Lecture #16

Computer Systems and Networks. ECPE 170 Jeff Shafer University of the Pacific. Digital Logic

CS 61C: Great Ideas in Computer Architecture Synchronous Digital Systems. Anything can be represented as a number, i.e., data or instrucrons

GATE Online Free Material


De Morgan s second theorem: The complement of a product is equal to the sum of the complements.

EXPERIMENT NO 1 TRUTH TABLE (1)

Digital Microelectronic Circuits ( ) CMOS Digital Logic. Lecture 6: Presented by: Adam Teman

Minute Alarm Clock. David Peled LaGuardia Community College

Digital Electronics Course Objectives

1.) If a 3 input NOR gate has eight input possibilities, how many of those possibilities result in a HIGH output? (a.) 1 (b.) 2 (c.) 3 (d.) 7 (e.

IES Digital Mock Test

UNIT III. Designing Combinatorial Circuits. Adders

6.1 In this section, you will design (but NOT build) a circuit with 4 inputs,

DIGITAL CIRCUITS AND SYSTEMS ASSIGNMENTS 1 SOLUTIONS

Lab #10: Finite State Machine Design

Combinational Logic Circuits. Combinational Logic

Electronic Instrumentation

EE 280 Introduction to Digital Logic Design

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

CSE 260 Digital Computers: Organization and Logical Design. Midterm Solutions

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Transcription:

CS61C L23 Representations of Combinatorial Logic Circuits (1) inst.eecs.berkeley.edu/~cs61c UC Berkeley CS61C : Machine Structures Lecture 23 Representations of Combinatorial Logic Circuits 2006-10-20 TA/Punner David Poll www.depoll.com IE7 Released This week, after more than 3 years since the last major update, Microsoft finally releases the next generation of their Internet Explorer web browser www.microsoft.com/ie Hello Helo,world! CS61C L23 Representations of Combinatorial Logic Circuits (2) Review State elements are used to: Build memories Control the flow of information between other state elements and combinational logic D-flip-flops used to build registers Clocks tell us when D-flip-flops change Setup and Hold times important We pipeline long-delay CL for faster clock Finite State Machines extremely useful Represent states and transitions Combinational Logic FSMs had states and transitions How to we get from one state to the next? Answer: Combinational Logic CS61C L23 Representations of Combinatorial Logic Circuits (3) CS61C L23 Representations of Combinatorial Logic Circuits (4) Truth Tables TT Example #1: 1 iff one (not both) a,b=1 0 a b y 0 0 0 0 1 1 1 0 1 1 1 0 CS61C L23 Representations of Combinatorial Logic Circuits (5) CS61C L23 Representations of Combinatorial Logic Circuits (6)

CS61C L23 Representations of Combinatorial Logic Circuits (7) TT Example #2: 2-bit adder TT Example #3: 32-bit unsigned adder How Many Rows? How Many Rows? CS61C L23 Representations of Combinatorial Logic Circuits (8) TT Example #3: 3-input majority circuit Logic Gates (1/2) CS61C L23 Representations of Combinatorial Logic Circuits (9) CS61C L23 Representations of Combinatorial Logic Circuits (10) And vs. Or review Dan smnemonic Logic Gates (2/2) A B Symbol AND AND Gate C Definition A B C 0 0 0 0 1 0 1 0 0 1 1 1 CS61C L23 Representations of Combinatorial Logic Circuits (11) CS61C L23 Representations of Combinatorial Logic Circuits (12)

CS61C L23 Representations of Combinatorial Logic Circuits (13) 2-input gates extend to n-inputs Truth Table Gates (e.g., majority circ.) N-input XOR is the onlyonewhichisn t so obvious It simple:xorisa 1 iff the # of 1s at its input is odd CS61C L23 Representations of Combinatorial Logic Circuits (14) Truth Table Gates (e.g., FSM circ.) Boolean Algebra PS Input NS Output 00 0 00 0 00 1 01 0 01 0 00 0 01 1 10 0 10 0 00 0 10 1 00 1 orequivalently George Boole, 19 th Century mathematician Developed a mathematical system (algebra) involving logic laterknownas BoleanAlgebra Primitive functions: AND, OR and NOT ThepowerofBAisthere saone-to-one correspondence between circuits made up of AND, OR and NOT gates and equations in BA +meansor, meansand,xmeansnot CS61C L23 Representations of Combinatorial Logic Circuits (15) CS61C L23 Representations of Combinatorial Logic Circuits (16) Boolean Algebra (e.g., for majority fun.) Boolean Algebra (e.g., for FSM) PS Input NS Output 00 0 00 0 00 1 01 0 01 0 00 0 01 1 10 0 10 0 00 0 10 1 00 1 orequivalently y=a b+a c+b c y = PS 1 PS 0 INPUT y = ab + ac + bc CS61C L23 Representations of Combinatorial Logic Circuits (17) CS61C L23 Representations of Combinatorial Logic Circuits (18)

CS61C L23 Representations of Combinatorial Logic Circuits (19) BA: Circuit & Algebraic Simplification Laws of Boolean Algebra BA also great for circuit verification Circ X = Circ Y? use BA to prove! CS61C L23 Representations of Combinatorial Logic Circuits (20) Boolean Algebraic Simplification Example Canonical forms (1/2) Sum-of-products (ORs of ANDs) CS61C L23 Representations of Combinatorial Logic Circuits (21) CS61C L23 Representations of Combinatorial Logic Circuits (22) Canonical forms (2/2) Peer Instruction CS61C L23 Representations of Combinatorial Logic Circuits (23) A. (a+b) (a+b)=b B. N-input gates can be thought of cascaded 2-input gates. I.e., where isoneofand,or,xor,nand C. You can use NOR(s) with clever wiring to simulate AND, OR, & NOT CS61C L23 Representations of Combinatorial Logic Circuits (24) ABC 1: FFF 2: FFT 3: FTF 4: FTT 5: TFF 6: TFT 7: TTF 8: TTT

CS61C L23 Representations of Combinatorial Logic Circuits (25) Peer Instruction Answer A. (a+b) (a+b)=a+ab+ba+b=0+b(a+a)+b=b+b=btrue B. (next slide) C. You can use NOR(s) with clever wiring to simulate AND, OR, & NOT. NOR(a,a)= a+a = aa = a Using this NOT, can we make a NOR an OR? An And? TRUE A. (a+b) (a+b)=b B. N-input gates can be thought of cascaded 2-input gates. I.e., where isoneofand,or,xor,nand C. You can use NOR(s) with clever wiring to simulate AND, OR, & NOT ABC 1: FFF 2: FFT 3: FTF 4: FTT 5: TFF 6: TFT 7: TTF 8: TTT A. Peer Instruction Answer (B) B. N-input gates can be thought of cascaded 2-input gates. I.e., where isoneofand,or,xor,nand FALSE Let sconfirm! CORRECT 3-input XYZ AND OR XOR NAND 000 00 0 0 00 11 001 00 1 1 11 11 010 00 1 1 11 11 011 00 1 1 00 11 100 00 1 1 11 10 101 00 1 1 00 10 110 00 1 1 00 10 111 11 1 1 11 01 CS61C L23 Representations of Combinatorial Logic Circuits (26) CORRECT 2-input YZ AND OR XOR NAND 00 0 0 0 1 01 0 1 1 1 10 0 1 1 1 11 1 1 0 0 AndInconclusion Pipeline big-delay CL for faster clock Finite State Machines extremely useful You lsethemagainin150,152&164 Use this table and techniques we learned to transform from 1 to another CS61C L23 Representations of Combinatorial Logic Circuits (27)