UC Berkeley CS61C : Machine Structures

Similar documents
UC Berkeley CS61C : Machine Structures

UC Berkeley CS61C : Machine Structures

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

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

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

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

University of Technology

Digital Logic Circuits

Logic diagram: a graphical representation of a circuit

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.

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

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

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

Lab Report: Digital Logic

Gates and and Circuits

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

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

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

Formal Foundation of Digital Design

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

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

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

Unit 3. Logic Design

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

CS302 - Digital Logic Design Glossary By

CS61C : Machine Structures

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

Subject: Analog and Digital Electronics Code:15CS32

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

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

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

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

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

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

Chapter 3 Digital Logic Structures

EECS 150 Homework 4 Solutions Fall 2008

Function Table of an Odd-Parity Generator Circuit

Logic Circuit Design

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

Chapter 3 Describing Logic Circuits Dr. Xu

Logic Design I (17.341) Fall Lecture Outline

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

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

DIGITAL LOGIC CIRCUITS

Electronics. Digital Electronics

Course Overview. Course Overview

Lecture 7: Digital Logic

ANALOGUE AND DIGITAL ELECTRONICS STUDENT S WORKBOOK U3: DIGITAL ELECTRONICS

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

BCD Adder. Lecture 21 1

Chapter 1: Digital logic

Introduction to Electronics. Dr. Lynn Fuller

EECS 270 Winter 2017, Lecture 15 Page 1 of 8

QUIZ. What do these bits represent?

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

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

BOOLEAN ALGEBRA AND LOGIC FAMILIES

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

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

Lecture 2: Digital Logic Basis

5. (Adapted from 3.25)

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

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.

GATE Online Free Material

UNIT-IV Combinational Logic

Lab #10: Finite State Machine Design

IES Digital Mock Test

DIGITAL ELECTRONICS QUESTION BANK

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.

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

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

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER-16 EXAMINATION Model Answer

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

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

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

Course Outline Cover Page

Digital Electronics Course Objectives

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

Positive and Negative Logic

0 0 Q Q Q Q

Electronic Instrumentation

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

Computer Architecture (TT 2012)

Experiment # 4. Binary Addition & Subtraction. Eng. Waleed Y. Mousa

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

Department of Electronics and Communication Engineering

(B) The simplest way to measure the light intensity is using a photodiode in the photoconductive mode:

2 Building Blocks. There is often the need to compare two binary values.

Digital Electronic Concepts

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

CHAPTER 6 DIGITAL INSTRUMENTS

Digital Logic Design ELCT 201

Minute Alarm Clock. David Peled LaGuardia Community College

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

DIGITAL CIRCUITS AND SYSTEMS ASSIGNMENTS 1 SOLUTIONS

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

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

TABLE 3-2 Truth Table for Code Converter Example

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

Transcription:

inst.eecs.berkeley.edu/~cs61c UC Berkeley CS61C : Machine Structures Lecture 25 Representations of Combinational Logic Circuits Senior Lecturer SOE Dan Garcia www.cs.berkeley.edu/~ddgarcia Conway s Life Logic Gates Berlekamp, Conway and Guy in their Winning Ways series showed how a glider was a 1, no glider a 0, & how to build logic gates! en.wikipedia.org/wiki/conway%27s_game_of_life CS61C L25 Representations of Combinational Logic Circuits (1)

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 CS61C L25 Representations of Combinational Logic Circuits (2)

Truth Tables 0 How many Fs (4-input devices) @ Radio Shack? CS61C L25 Representations of Combinational Logic Circuits (3)

TT Example #1: 1 iff one (not both) a,b=1 a b y 0 0 0 0 1 1 1 0 1 1 1 0 CS61C L25 Representations of Combinational Logic Circuits (4)

TT Example #2: 2-bit adder How Many Rows? CS61C L25 Representations of Combinational Logic Circuits (5)

TT Example #3: 32-bit unsigned adder How Many Rows? CS61C L25 Representations of Combinational Logic Circuits (6)

TT Example #4: 3-input majority circuit CS61C L25 Representations of Combinational Logic Circuits (7)

Logic Gates (1/2) CS61C L25 Representations of Combinational Logic Circuits (8)

And vs. Or review Dan s mnemonic AND Gate A B AND C Symbol Definition CS61C L25 Representations of Combinational Logic Circuits (9)

Logic Gates (2/2) CS61C L25 Representations of Combinational Logic Circuits (10)

2-input gates extend to n-inputs N-input XOR is the only one which isn t so obvious It s simple: XOR is a 1 iff the # of 1s at its input is odd CS61C L25 Representations of Combinational Logic Circuits (11)

Truth Table Gates (e.g., majority circ.) CS61C L25 Representations of Combinational Logic Circuits (12)

Truth Table Gates (e.g., FSM circ.) 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 or equivalently CS61C L25 Representations of Combinational Logic Circuits (13)

Administrivia How many hours on project 2 so far? a) 0-10 b) 10-20 c) 30-40 d) 50-60 e) 60-70 CS61C L25 Representations of Combinational Logic Circuits (14)

Boolean Algebra George Boole, 19 th Century mathematician Developed a mathematical system (algebra) involving logic later known as Boolean Algebra Primitive functions: AND, OR and NOT The power of BA is there s a one-to-one correspondence between circuits made up of AND, OR and NOT gates and equations in BA + means OR, means AND, x means NOT CS61C L25 Representations of Combinational Logic Circuits (15)

Boolean Algebra (e.g., for majority fun.) y = a b + a c + b c y = ab + ac + bc CS61C L25 Representations of Combinational Logic Circuits (16)

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 or equivalently y = PS 1 PS 0 INPUT CS61C L25 Representations of Combinational Logic Circuits (17)

BA: Circuit & Algebraic Simplification BA also great for circuit verification Circ X = Circ Y? use BA to prove! CS61C L25 Representations of Combinational Logic Circuits (18)

Laws of Boolean Algebra CS61C L25 Representations of Combinational Logic Circuits (19)

Boolean Algebraic Simplification Example CS61C L25 Representations of Combinational Logic Circuits (20)

Canonical forms (1/2) Sum-of-products (ORs of ANDs) CS61C L25 Representations of Combinational Logic Circuits (21)

Canonical forms (2/2) CS61C L25 Representations of Combinational Logic Circuits (22)

Peer Instruction 1) (a+b) (a+b) = b 2) N-input gates can be thought of cascaded 2-input gates. I.e., (a bc d e) = a (bc (d e)) where is one of AND, OR, XOR, NAND 3) You can use NOR(s) with clever wiring to simulate AND, OR, & NOT CS61C L25 Representations of Combinational Logic Circuits (23) 123 a: FFF a: FFT b: FTF b: FTT c: TFF d: TFT d: TTF e: TTT

1) (a+b) (a+b) = aa+ab+ba+bb = 0+b(a+a)+b = b+b = b TRUE 2) (next slide) 3) 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 Peer Instruction Answer 1) (a+b) (a+b) = b 2) N-input gates can be thought of cascaded 2-input gates. I.e., (a bc d e) = a (bc (d e)) where is one of AND, OR, XOR, NAND 3) You can use NOR(s) with clever wiring to simulate AND, OR, & NOT CS61C L25 Representations of Combinational Logic Circuits (24) 123 a: FFF a: FFT b: FTF b: FTT c: TFF d: TFT d: TTF e: TTT

1) Peer Instruction Answer (B) 2) N-input gates can be thought of cascaded 2-input gates. I.e., (a bc d e) = a (bc (d e)) where is one of AND, OR, XOR, NAND FALSE Let s confirm! 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 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 CS61C L25 Representations of Combinational Logic Circuits (25)

And In conclusion Pipeline big-delay CL for faster clock Finite State Machines extremely useful You ll see them again in 150, 152 & 164 Use this table and techniques we learned to transform from 1 to another CS61C L25 Representations of Combinational Logic Circuits (26)