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

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

COMP combinational logic 1 Jan. 18, 2016

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

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

Binary Values. CSE 410 Lecture 02

Digital Logic Design Exercises. Assignment 1

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

LAB #1 BASIC DIGITAL CIRCUIT

Combinational Circuits Digital Logic (Materials taken primarily from:

Propositional Calculus. Math Foundations of Computer Science

Microcomputers. Outline. Number Systems and Digital Logic Review

Memristive stateful logic

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

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

How Do We Figure Out the Voltages and Currents?

Binary Adders: Half Adders and Full Adders

EE292: Fundamentals of ECE

LECTURE 4. Logic Design

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

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

Reference Sheet for C112 Hardware

Combinational Circuits

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

Computer Organization and Levels of Abstraction

Lecture 10: Floating Point, Digital Design

Midterm Exam 2B Answer key

Combinational Devices and Boolean Algebra

Logic, Words, and Integers

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

Recitation Session 6

Chap-2 Boolean Algebra

Software and Hardware

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

1. Mark the correct statement(s)

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

Chapter 2. Boolean Expressions:

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

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

Logic Design: Part 2

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

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

MODULE 5 - COMBINATIONAL LOGIC

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

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

BOOLEAN ALGEBRA AND CIRCUITS

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

Read this before starting!

Read this before starting!

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

Introduction to Boolean logic and Logical Gates

Chapter 3 Arithmetic for Computers

CS 261 Fall Mike Lam, Professor. Combinational Circuits

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

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.

Lecture 10: Floating Point, Digital Design

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 ( )

Digital Fundamentals. Integrated Circuit Technologies

CS 261 Fall Mike Lam, Professor. Logic Gates

Combinational Logic Use the Boolean Algebra and the minimization techniques to design useful circuits No feedback, no memory Just n inputs, m outputs

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

Chapter Three. Digital Components

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

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

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

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

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

Basic Arithmetic (adding and subtracting)

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

T02 Tutorial Slides for Week 2

Combinational Logic Circuits

DIGITAL SYSTEM DESIGN

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

Boolean Algebra & Digital Logic

OCR H446 A-Level Computer Science

3. Implementing Logic in CMOS

Chapter 3: Operators, Expressions and Type Conversion

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

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

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

EECS 140/141 Introduction to Digital Logic Design Fall Semester 2016 Exam #1 Date: 3 October 2016

Transcription:

EEC 16B esigning Information evices and ystems II Fall 2017 Miki Lustig and Michel Maharbiz iscussion 1B 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 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. 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, 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, 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, Fall 2017, iscussion 1B 1

x y x + y 0 1 1 1 0 1 1 1 1 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 e Morgan s Law e Morgan s Law is stated as follows. Let x and y be two Boolean variables. Then, (x y) = x + ȳ (x + y) = x ȳ 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 Transistor Introduction Transistors (as presented in this course) are 3 terminal, voltage controlled switches. What this means is 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 ate () and ource () terminals, compared to a threshold EEC 16B, Fall 2017, iscussion 1B 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 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 the 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, Fall 2017, iscussion 1B 3

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 V V t p R p Figure 5: PMO Transistor Resistor-switch model 1. igit Bases (a) Express (14) 10 with binary encoding (or in base 2). (b) iven k binary digits, what is the biggest number you can express? 2. 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? 3. e Morgan s laws (a) Write the truth table for C = A B. (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. EEC 16B, Fall 2017, iscussion 1B 4

4. Transistor Introduction (a) Assume that the voltage range is from ground to V. If 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? Contributors: iddharth Iyer. aavan Patel. eborah oung. EEC 16B, Fall 2017, iscussion 1B 5