Designing Information Devices and Systems II Spring 2018 J. Roychowdhury and M. Maharbiz Discussion 1A

Similar documents
Designing Information Devices and Systems II Fall 2017 Miki Lustig and Michel Maharbiz Discussion 1B

COMP combinational logic 1 Jan. 18, 2016

Binary Values. CSE 410 Lecture 02

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

Digital Logic Design Exercises. Assignment 1

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

LAB #1 BASIC DIGITAL CIRCUIT

Chapter 2: Universal Building Blocks. CS105: Great Insights in Computer Science

Combinational Circuits Digital Logic (Materials taken primarily from:

Propositional Calculus. Math Foundations of Computer Science

Memristive stateful logic

4. Write a sum-of-products representation of the following circuit. Y = (A + B + C) (A + B + C)

How Do We Figure Out the Voltages and Currents?

Binary Adders: Half Adders and Full Adders

Microcomputers. Outline. Number Systems and Digital Logic Review

Logic, Words, and Integers

E40M. Solving Circuits using Nodal Analysis and EveryCircuit TM. M. Horowitz, J. Plummer, R. Howe 1

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

Review. EECS Components and Design Techniques for Digital Systems. Lec 05 Boolean Logic 9/4-04. Seq. Circuit Behavior. Outline.

Combinational Circuits

Discrete structures - CS Fall 2017 Questions for chapter 2.1 and 2.2

E40M Useless Box, Boolean Logic. M. Horowitz, J. Plummer, R. Howe 1

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates. Invitation to Computer Science, C++ Version, Third Edition

Computer Organization and Levels of Abstraction

Lecture 10: Floating Point, Digital Design

Midterm Exam 2B Answer key

EE292: Fundamentals of ECE

Electronic Engineering Part 1 Laboratory Experiment. Digital Circuit Design 1 Combinational Logic. (3 hours)

Recitation Session 6

Chap-2 Boolean Algebra

Reference Sheet for C112 Hardware

LECTURE 4. Logic Design

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two 26 February 2014

Software and Hardware

Lecture 10: Floating Point, Digital Design

Read this before starting!

1. Mark the correct statement(s)

Logic Design (Part 2) Combinational Logic Circuits (Chapter 3)

The Building Blocks: Binary Numbers, Boolean Logic, and Gates. Purpose of Chapter. External Representation of Information.

Chapter 2. Boolean Expressions:

Logic and Computer Design Fundamentals. Chapter 2 Combinational Logic Circuits. Part 3 Additional Gates and Circuits

E40M Useless Box, Boolean Logic. M. Horowitz, J. Plummer, R. Howe 1

6.004 Computation Structures

Computer Organization and Levels of Abstraction

PROGRAMMABLE LOGIC DEVICES

CURIE Academy, Summer 2014 Lab 1: Computer Engineering Hardware Perspective Sign-Off Sheet

MODULE 5 - COMBINATIONAL LOGIC

Combinational Devices and Boolean Algebra

1. Prove that if you have tri-state buffers and inverters, you can build any combinational logic circuit. [4]

Logic Gates and Boolean Algebra ENT263

BOOLEAN ALGEBRA AND CIRCUITS

Digital Electronics. CHAPTER THIRTY TWO. Semiconductor Read-Only Memories

Read this before starting!

Outline. policies. with some potential answers... MCS 260 Lecture 19 Introduction to Computer Science Jan Verschelde, 24 February 2016

UNCA CSCI 255 Exam 1 Spring February, This is a closed book and closed notes exam. It is to be turned in by 1:45 PM.

EECS 140 Laboratory Exercise 4 3-to-11 Counter Implementation

Chapter 3 Arithmetic for Computers

Grade 7/8 Math Circles Fall November 6/7/8 Boolean Logic

Scheme G. Sample Test Paper-I

A B A+B

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

that system. weighted value associated with it. numbers. a number. the absence of a signal. MECH 1500 Quiz 2 Review Name: Class: Date:

Henry Lin, Department of Electrical and Computer Engineering, California State University, Bakersfield Lecture 7 (Digital Logic) July 24 th, 2012

Digital Design through. Arduino

6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )

Grade 7/8 Math Circles Fall November 6/7/8 Boolean Logic

Digital Fundamentals. Integrated Circuit Technologies

EECS150 Homework 2 Solutions Fall ) CLD2 problem 2.2. Page 1 of 15

Le L c e t c ur u e e 2 To T p o i p c i s c t o o b e b e co c v o e v r e ed e Variables Operators

Ternary Spacecraft Board for Maker Faire Roma 2018 Giuseppe Talarico 1/15

Logic Design: Part 2

E40M. MOS Transistors, CMOS Logic Circuits, and Cheap, Powerful Computers. M. Horowitz, J. Plummer, R. Howe 1

UNIT 6 CIRCUIT DESIGN

2. BOOLEAN ALGEBRA 2.1 INTRODUCTION

Propositional Calculus. CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

CprE 281: Digital Logic

6: Combinational Circuits

Dr. Chuck Cartledge. 10 June 2015

Introduction to Computer Architecture

Systems Programming. Lecture 2 Review of Computer Architecture I

Combinational Logic Circuits

DIGITAL SYSTEM DESIGN

Assignment (3-6) Boolean Algebra and Logic Simplification - General Questions

Boolean Algebra & Digital Logic

ECE 2030D Computer Engineering Spring problems, 5 pages Exam Two 8 March 2012

OCR H446 A-Level Computer Science

60-265: Winter ANSWERS Exercise 4 Combinational Circuit Design

Embedded Systems. Copyright 2000 Ken Arnold 1. Outline. Embedded Hardware. Fluid Flow Analogies. Schematic Conventions. Voltage = Pressure

ECE 2030B 1:00pm Computer Engineering Spring problems, 5 pages Exam Two 10 March 2010

Digital logic fundamentals. Question Bank. Unit I

2008 The McGraw-Hill Companies, Inc. All rights reserved.

Digital Systems. Jinkyu Jeong Computer Systems Laboratory Sungkyunkwan University

CSE-1520R Test #1. The exam is closed book, closed notes, and no aids such as calculators, cellphones, etc.

Objectives: 1. Design procedure. 2. Fundamental circuits. 1. Design procedure

END-TERM EXAMINATION

CS 261 Fall Mike Lam, Professor. Combinational Circuits

Python Programming: An Introduction To Computer Science

1 /8_ 2 /12 3 /12 4 /25 5 /12 6 /15 7 /16

Experimental Methods I

Transcription:

EEC 16B esigning Information evices and ystems II pring 2018 J. Roychowdhury and M. Maharbiz iscussion 1A 1 igit Bases (N) p is used to indicate that the number N is expressed in base p. For example, (N) 2 means that we are working in base 2 and (N) 10 means N is expressed in base 10, or decimal digits. For example, (245) 10 = 2 10 2 + 4 10 1 + 5 10 0 (11010) 2 = 1 2 4 + 1 2 3 + 0 2 2 + 1 2 1 + 0 2 0 2 Boolean Algebra In Boolean algebra, true statements are denoted 1 and false statements are denoted 0. A Boolean function acts on a set of these Boolean values and outputs a set of Boolean values (usually just one). The most common Boolean operators used are NOT, AN, OR, and XOR. 2.1 NOT NOT is a Boolean function that takes in one Boolean value and outputs its negation. Let x be a Boolean variable. NOT(x) is denoted as x. The truth table of NOT is: 2.2 AN x x 0 1 1 0 AN is a Boolean function that takes in two Boolean values and outputs 1 if both the values are true. Let x and y be two Boolean variables. AN(x,y) is denoted as x y. The truth table of AN is: 2.3 OR x y x y 0 1 0 1 0 0 1 1 1 OR is a Boolean function that takes in two Boolean values and outputs 1 if at least one of the values is true. Let x and y be two Boolean variables. OR(x,y) is denoted as x + y. The truth table of OR is: EEC 16B, pring 2018, iscussion 1A 1

x y x + y 0 1 1 1 0 1 1 1 1 2.4 XOR XOR is a Boolean function that takes in two Boolean values and outputs 1 if exactly one of the values is true. Let x and y be two Boolean variables. XOR(x,y) is denoted as x y. The truth table of XOR is: x y x y 0 1 1 1 0 1 1 1 0 3 e Morgan s Law e Morgan s Law is stated as follows. Let x and y be two Boolean variables. Then, x y = x + y x + y = x y 4 Boolean Formulae and Natural Numbers We can represent natural numbers with a Boolean function that evaluates to 1 if and only if its inputs match the binary representation of that numbers. For example, say we want to find a binary function f that returns true if the input is (11) 10. The first thing to note is that (11) 10 = (1011) 2. Then, define f (b 3,b 2,b 1,b 0 ), where b 3,b 2,b 1,b 0 are Boolean variables such that b i represents the i th digit in binary representation, as follows. Note that f is true if the input is (11) 10 in base 2. f (b 3,b 2,b 1,b 0 ) = b 3 b 2 b 1 b 0 5 Transistor Introduction Transistors (as presented in this course) are 3 terminal, voltage controlled switches. This means that, when a transistor is on, it connects the ource () and rain () terminals via a low resistance path (short circuit). When a transistor is off, the ource and rain terminals are disconnected (open circuit). Two common types of transistors are NMO and PMO transistors. Their states (shorted or open) are determined by the voltage difference across the ate () and ource () terminals, compared to a threshold EEC 16B, pring 2018, iscussion 1A 2

voltage. Transistors are extremely useful in digital logic design since we can implement Boolean logic operators using switches. iven that V tn and V t p are the threshold voltages for the NMO and PMO transistors, respectively, the figures below depict the closing conditions for these switches. It s important to note that V tn is generally positive and that V t p is negative. V V tn Figure 1: NMO Transistor V V t p Figure 2: PMO Transistor Transistors can be strung together to perform boolean algebra. For example, the following circuit is called an inverter and represents a NOT gate. V V in V out Figure 3: CMO Inverter When the input is high (V in V tn, V in V +V t p ), then the NMO transistor is on, the PMO transistor is off, and V out = 0. When the input is low (V in V tn, V in V +V t p ), the NMO transistor is off, the PMO transistor is on, and V out = V. When working with digital circuits like the one above, we usually only consider the values of V in = 0,V. This yields the following truth table: V in V out NMO PMO V 0 on off 0 V off on If you think of V being a logical 1 and 0V being a logical 0, we have just created the most elementary logical operation using transistor circuits! EEC 16B, pring 2018, iscussion 1A 3

5.1 Resistor witch Model In the real world, transistors don t actually behave as perfect switches. Transistors have a small amount of resistance in the on state. This can be represented by a resistor in our transistor switch model. V V tn R n Figure 4: NMO Transistor Resistor-switch model V V t p R p Figure 5: PMO Transistor Resistor-switch model 1. Transistor Introduction (a) Assume that the voltage range is from ground to V. If the ource of an NMO is connected to V, would the switch ever close? What if it is connected to ground? (b) Assume that the voltage range is from ground to V. If the ource of a PMO is connected to V, would the switch ever turn on? What if it is connected to ground? 2. igit Bases (a) Express (14) 10 with binary encoding (or in base 2). (b) iven k binary digits, what is the largest number you can express? 3. Boolean Formulae And Natural Numbers (a) Express an integer, (1) 10, with a Boolean formula f, which includes only one Boolean variable B 0. (b) Express an integer (0) 10 with a Boolean formula g, which includes only one Boolean variable B 0. (c) Express an integer (19) 10, with a Boolean formula h, with 5 Boolean variables, B 0,B 1,B 2,B 3 and B 4. (d) iven a natural number (N) 10, how many Boolean variables do we need? How do we express it in terms of a Boolean formula? 4. e Morgan s Laws (a) Write the truth table for C = A B. EEC 16B, pring 2018, iscussion 1A 4

(b) Flip all the Boolean values in the truth table you just made. What is the resulting Boolean expression represented by the flipped truth table? o you need an AN to represent this? (c) Now, let s similarly convert = A B. First, write out A B using only NOTs, ORs, and ANs. (d) From the expression you just made, use the rule you learned in part (b) to remove the ANs. (e) Was there something special about OR vs. AN? Using only NOTs and ANs, rewrite the expression = A B. Contributors: iddharth Iyer. aavan Patel. eborah oung. EEC 16B, pring 2018, iscussion 1A 5