1 EE40 Summer 2010 Hug EE40 Lecture 14 Josh Hug 7/26/2010.

Slides:



Advertisements
Similar presentations
L14: Boolean Logic and Basic Gates
Advertisements

Differential Amplifiers and Integrated Circuit (IC) Amplifiers
Foundations of Physics
ECE 3336 Introduction to Circuits & Electronics
1 EE40 Summer 2010 Hug EE40 Lecture 10 Josh Hug 7/17/2010.
EECC341 - Shaaban #1 Lec # 1 Winter Introduction to Digital Systems Analog devices and systems process time-varying signals that can take.
Lecture 2 Dr Richard Reilly Dept. of Electronic & Electrical Engineering Room 153, Engineering Building To insert your company logo on this slide From.
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
1 EE40 Summer 2010 Hug EE40 Lecture 17 Josh Hug 8/04/2010.
Chapter 4 Gates and Circuits.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
1 EE40 Summer 2010 Hug EE40 Lecture 6 Josh Hug 7/2/2010.
Computer ArchitectureFall 2008 © August 20 th, Introduction to Computer Architecture Lecture 2 – Digital Logic Design.
EGR 2201 Unit 7 Operational Amplifiers
1 EE40 Summer 2010 Hug EE40 Lecture 11 Josh Hug 7/19/2010.
Lecture 3. Boolean Algebra, Logic Gates
Digital Design Copyright © 2006 Frank Vahid 1 Digital Design Slides to accompany the textbook Digital Design, First Edition, by Frank Vahid, John Wiley.
W. G. Oldham EECS 40 Fall 2001 Lecture 2 Copyright Regents of University of California The CMOS Inverter: Current Flow during Switching V IN V OUT V DD.
Slide 1EE100 Summer 2008Bharathwaj Muthuswamy EE100Su08 Lecture #16 (August 1 st 2008) OUTLINE –Project next week: Pick up kits in your first lab section,
Logic Gate A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs. The output signal appears only.
Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits Hakim Weatherspoon CS 3410, Spring 2013 Computer Science Cornell University.
Audio Players 1 Audio Players. Audio Players 2 Introductory Question Audio players record sound in digital form but play it in analog form. The transformation.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lab 2P. 1Winter Quarter Digital Electronics Lab 2.
CS231 Fundamentals1 Fundamentals What kind of data do computers work with? – Deep down inside, it’s all 1s and 0s What can you do with 1s and 0s? – Boolean.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 4 Gates and Circuits.
The Transistor A transistor is an automatic switch. It can only be on or off. base emitter collector 0.7 V When the transistor is on, current flows from.
Computer Science 1000 Digital Circuits. Digital Information computers store and process information using binary as we’ve seen, binary affords us similar.
Lecture 17: Digital Design Today’s topic –Intro to Boolean functions Reminders –HW 4 due Wednesday 10/8/2014 (extended) –HW 5 due Wednesday 10/15/2014.
Digital Electronics. Introduction to Number Systems & Codes Digital & Analog systems, Numerical representation, Digital number systems, Binary to Decimal.
Conductors Metals and graphite are electrical conductors. Electrons are free to move in conductors. Electrons are negatively charged. The electrons carry.
School of Computer Science G51CSA 1 Computer Systems Architecture Fundamentals Of Digital Logic.
Class 34 Today we will: learn about inductors and inductance
Fall 2012: FCM 708 Foundation I Lecture 2 Prof. Shamik Sengupta
Advanced Design Applications Power and Energy © 2014 International Technology and Engineering Educators Association STEM  Center for Teaching and Learning™
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Chapter 3: Digital Logic Dr Mohamed Menacer Taibah University
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
Unit 8 Phasors.
October 2004Computer Hardware Lecture 5 Slide1 / 29 Lecture 5 Physical Realisation of Logic Gates.
June 10, 2002© Howard Huang1 Number systems To get started, we’ll discuss one of the fundamental concepts underlying digital computer design:
Electronic. Analog Vs. Digital Analog –Continuous –Can take on any values in a given range –Very susceptible to noise Digital –Discrete –Can only take.
CS151 Introduction to Digital Design Chapter 2: Combinational Logic Circuits Lecture 5: Binary Logic and Gates.
Boolean Functions and Boolean Algebra Laxmikant Kale.
Logic Simplification-Using Boolean Laws Logic Design Laboratory EE 2121 Lectures By Manesh T EE2121-In Charge
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
Minute Paper 4/4/04 Z=50+j86.7=100
Chapter 13 The Basic Elements and Phasors. Objectives Be able to add and subtract sinusoidal voltages or currents Use phasor format to add and subtract.
Logic gates.
Boolean Algebra & Logic Gates
Basics of Logic gates - Part 1
INDUSTRIAL ELECTRONICS/ELECTRICITY
EE40 Lecture 15 Josh Hug 7/30/2010.
CHAPTER 2 Boolean Algebra
TRIODE TUBES.
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Computer Science 210 Computer Organization
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Digital Electronics Lab 2 Instructor:
Bipolar Transistors AIM:
Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: We can represent.
SOLIDS AND SEMICONDUCTOR DEVICES - IV
#3 How to Read the Schematic
ELECTRONIC SYSTEMS Note: There is no compulsory question set on Section 25 of the syllabus. Questions set on topics within Section 25 are always set as.
MOSFETs AIM: To understand how MOSFETs can be used as transducer drivers PRIOR KNOWLEDGE: Output transducers, Current in circuits, Calculating resistor.
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Presentation transcript:

1 EE40 Summer 2010 Hug EE40 Lecture 14 Josh Hug 7/26/2010

2 EE40 Summer 2010 Hug Logisticals Midterm Wednesday –Study guide online –Study room on Monday Cory 531, 2:00 –Cooper, Tony, and I will be there 3:00-5:10 –Study room on Tuesday Cory 521, 2:30 and on Completed homeworks that have not been picked up have been moved into the lab cabinet If you have custom Project 2 parts, I’ve ed you with details about how to pick them up

3 EE40 Summer 2010 Hug Lab Lab will be open on Tuesday if you want to work on Project 2 or the Booster Lab or something else –Not required to start Project 2 tomorrow No lab on Wednesday (won’t be open)

4 EE40 Summer 2010 Hug Power in AC Circuits One last thing to discuss for Unit 2 is power in AC circuits Let’s start by considering the power dissipated in a resistor: +-+-

5 EE40 Summer 2010 Hug Or graphically +-+-

6 EE40 Summer 2010 Hug Average Power +-+- Peak Power: Min Power: Avg Power: 20W 0W 10W

7 EE40 Summer 2010 Hug Capacitor example +-+- Find p(t)

8 EE40 Summer 2010 Hug Graphically +-+- Peak Power: Min Power: Avg Power: 0W

9 EE40 Summer 2010 Hug Is there some easier way of calculating power? +-+-

10 EE40 Summer 2010 Hug Is there some easier way of measuring power?

11 EE40 Summer 2010 Hug It gets worse For the resistor, there is no phasor which represents the power (never goes negative)

12 EE40 Summer 2010 Hug Average Power Tracking the time function of power with some sort of phasor-like quantity is annoying –Frequency changes –Sometimes have an offset (e.g. with resistor) Often, the thing we care about is the average power, useful for e.g. –Battery drain –Heat dissipation Useful to define a measure of “average” other than the handwavy thing we did before Average power given periodic power is: T is time for 1 period

13 EE40 Summer 2010 Hug Power in terms of phasors We’ve seen that we cannot use phasors to find an expression for p(t) Average power given periodic power is: We’ll use this definition of average power to derive an expression for average power in terms of phasors T is time for 1 period

14 EE40 Summer 2010 Hug Average Power zero 10

15 EE40 Summer 2010 Hug Power from Phasors

16 EE40 Summer 2010 Hug Power from Phasors

17 EE40 Summer 2010 Hug Capacitor Example +-+-

18 EE40 Summer 2010 Hug Resistor Example +-+- Find avg power across resistor A.0 Watts B.10 Watts C.20 Watts

19 EE40 Summer 2010 Hug Resistor Example +-+- Find avg power from source

20 EE40 Summer 2010 Hug Reactive Power

21 EE40 Summer 2010 Hug Capacitor Reactive Power Example +-+-

22 EE40 Summer 2010 Hug Graphically +-+- Peak Power: Min Power: Avg Power: 0W Avg Reactive Power: -5/2W Like a frictionless car with perfect regenerative brakes, starting and stopping again and again and again

23 EE40 Summer 2010 Hug Note on Reactive Power

24 EE40 Summer 2010 Hug And that rounds out Unit 2 We’ve covered all that needs to be covered on capacitors and inductors, so it’s time to (continue) moving on to the next big thing

25 EE40 Summer 2010 Hug Back to Unit 3 – Integrated Circuits Last Friday, we started talking about integrated circuits Analog integrated circuits –Behave mostly like our discrete circuits in lab, can reuse old analysis Digital integrated circuits –We haven’t discussed discrete digital circuits, so in order to understand digital ICs, we will first have to do a bunch of new definitions

26 EE40 Summer 2010 Hug Digital Representations of Logical Functions Digital signals offer an easy way to perform logical functions, using Boolean algebra Example: Hot tub controller with the following algorithm –Turn on heating element if A: Temperature is less than desired (T < Tset) and B: The motor is on and C: The hot tub key is turned to “on” –OR T: Test heater button is pressed

27 EE40 Summer 2010 Hug 110V Heater C B A T Hot Tub Controller Example Example: Hot tub controller with the following algorithm –Turn on heating element if A: Temperature is less than desired (T < Tset) and B: The motor is on and C: The hot tub key is turned to “on” –OR T: Test heater button is pressed

28 EE40 Summer 2010 Hug 110V Heater C B A T Hot Tub Controller Example Example: Hot tub controller with the following algorithm –A: Temperature is less than desired (T < Tset) –B: The motor is on –C: The hot tub key is turned to “on” –T: Test heater button is pressed Or more briefly: ON=(A and B and C) or T

29 EE40 Summer 2010 Hug Boolean Algebra and Truth Tables We’ll next formalize some useful mathematical expressions for dealing with logical functions These will be useful in understanding the function of digital circuits

30 EE40 Summer 2010 Hug Boolean Logic Functions Example: ON=(A and B and C) or T Boolean logic functions are like algebraic equations –Domain of variables is 0 and 1 –Operations are “AND”, “OR”, and “NOT” In contrast to our usual algebra on real numbers –Domain of variables is the real numbers –Operations are addition, multiplication, exponentiation, etc

31 EE40 Summer 2010 Hug Examples In normal algebra, we can have –3+5=8 –A+B=C In Boolean algebra, we’ll have –1 and 0=0 –A and B=C

32 EE40 Summer 2010 Hug Have you seen boolean algebra before? A. Yes B. No

33 EE40 Summer 2010 Hug Formal Definitions

34 EE40 Summer 2010 Hug Formal Definitions ABZ

35 EE40 Summer 2010 Hug Formal Definitions ABZ

36 EE40 Summer 2010 Hug Boolean Algebra and Truth Tables Just as in normal algebra, boolean algebra operations can be applied recursively, giving rise to complex boolean functions Z=AB+C ABCZ Any boolean function can be represented by one of these tables, called a truth table

37 EE40 Summer 2010 Hug Boolean Algebra Originally developed by George Boole as a way to write logical propositions as equations Now, a very handy tool for specification and simplification of logical systems

38 EE40 Summer 2010 Hug Simplification Example CBTZ

39 EE40 Summer 2010 Hug Logic Simplification In CS61C and optionally CS150, you will learn a more thorough systematic way to simplify logic expression All digital arithmetic can be expressed in terms of logical functions Logic simplification is crucial to making such functions efficient You will also learn how to make logical adders, multipliers, and all the other good stuff inside of CPUs

40 EE40 Summer 2010 Hug Quick Arithmetic-as-Logic Example

41 EE40 Summer 2010 Hug Logic Gates Logic gates are the schematic equivalent of our boolean logic functions Example, the AND gate: If we’re thinking about real circuits, this is a device where the output voltage is high if and only if both of the input voltages are high F A B ABF F = AB

42 EE40 Summer 2010 Hug Logic Functions, Symbols, & Notation “NOT” F = A TRUTH NAME SYMBOL NOTATIONTABLE FA ABF “OR” F = A+B F A B AF ABF “AND” F = AB F A B

43 EE40 Summer 2010 Hug Multi Input Gates AND and OR gates can also have many inputs, e.g. Can also define new gates which are composites of basic boolean operations, for example NAND: F = ABC A B C F A B C F

44 EE40 Summer 2010 Hug Logic Gates Can think of logic gates as a technology independent way of representing logical circuits The exact voltages that we’ll get will depend on what types of components we use to implement our gates Useful when designing logical systems –Better to think in terms of logical operations instead of circuit elements and all the accompanying messy math

45 EE40 Summer 2010 Hug 110V Heater C B A T Hot Tub Controller Example Example: Hot tub controller with the following algorithm –A: Temperature is less than desired (T < Tset) –B: The motor is on –C: The hot tub key is turned to “on” –T: Test heater button is pressed Or more briefly: ON=(A and B and C) or T

46 EE40 Summer 2010 Hug 110V Heater Hot Tub Controller Example Example: Hot tub controller with the following algorithm –A: Temperature is less than desired (T < Tset) –B: The motor is on –C: The hot tub key is turned to “on” –T: Test heater button is pressed Or more briefly: ON=(A and B and C) or T A B C T ON

47 EE40 Summer 2010 Hug How does this all relate to circuits?

48 EE40 Summer 2010 Hug The “Static Discipline”

49 EE40 Summer 2010 Hug Many Possible Ways to Realize Logic Gates There are many ways to build logic gates, for example, we can build gates with op- amps Far from optimal –5 resistors –Dozens of transistors Is this a(n): A.AND gate B.OR gate C.NOT gate D.Something else A B Z 5V -5V 5V

50 EE40 Summer 2010 Hug 110V Heater C B A T Switches as Gates Example: Hot tub controller ON=(A and B and C) or T Switches are the most natural implementation for logic gates 110V Heater A B C T ON

51 EE40 Summer 2010 Hug Relays, Tubes, and Transistors as Switches Electromechnical relays are ways to make a controllable switch: –Zuse’s Z3 computer (1941) was entirely electromechnical Later vacuum tubes adopted: –Colossus (1943) – 1500 tubes –ENIAC (1946) – 17,468 tubes Then transistors: –IBM 608 was first commercially available (1957), 3000 transistors

52 EE40 Summer 2010 Hug Electromechanical Relay Inductor generates a magnetic field that physically pulls a switch down When current stops flowing through inductor, a spring resets the switch to the off position + –+ – C C Three Terminals: + : Plus – : Minus C : Control

53 EE40 Summer 2010 Hug Electromechnical Relay Summary “Switchiness” due to physically manipulation of a metal connector using a magnetic field Very large Moving parts No longer widely used in computational systems as logic gates –Occasional use in failsafe systems

54 EE40 Summer 2010 Hug Vacuum Tube Inside the glass, there is a hard vacuum –Current cannot flow If you apply a current to the minus terminal (filament), it gets hot This creates a gas of electrons that can travel to the positively charged plate from the hot filament When control port is used, grid becomes charged –Acts to increase or decrease ability of current to flow from – to + (Wikipedia) + – C

55 EE40 Summer 2010 Hug Vacuum Tube Demo

56 EE40 Summer 2010 Hug Vacuum Tube Summary “Switchiness” is due to a charged cage which can block the flow of free electrons from a central electron emitter and a receiving plate No moving parts Inherently power inefficient due to requirement for hot filament to release electrons No longer used in computational systems Still used in: –CRTs –Very high power applications –Audio amplification (due to nicer saturation behavior relative to transistors)

57 EE40 Summer 2010 Hug Field Effect Transistor + – C (Drain) (Source) (Gate) +-+-

58 EE40 Summer 2010 Hug Field Effect Transistor + – C When the channel is present, then effective resistance of P region dramatically decreases Thus: –When C is “off”, switch is open –When C is “on”, switch is closed (Drain) (Source) (Gate) +-+-

59 EE40 Summer 2010 Hug Field Effect Transistor + – C If we apply a positive voltage to the plus side –Current begins to flow from + to – –Channel on the + side is weakened If we applied a different positive voltage to both sides? (Drain) (Source) (Gate)

60 EE40 Summer 2010 Hug Field Effect Transistor Summary “Switchiness” is due to a controlling voltage which induces a channel of free electrons Extremely easy to make in unbelievable numbers Ubiquitous in all computational technology everywhere

61 EE40 Summer 2010 Hug MOSFET Model Schematically, we represent the MOSFET as a three terminal device Can represent all the voltages and currents between terminals as shown to the right

62 EE40 Summer 2010 Hug MOSFET Model + – C (Drain) (Source) (Gate)

63 EE40 Summer 2010 Hug S Model of the MOSFET

64 EE40 Summer 2010 Hug Building a NAND gate using MOSFETs

65 EE40 Summer 2010 Hug That’s it for today Next time, we’ll discuss: –Building arbitrarily complex logic functions –Sequential logic –The resistive model of a MOSFET Until then, study