Computers Rev3

Embed Size (px)

Citation preview

  • 7/28/2019 Computers Rev3

    1/60

    Computers: How They Work1. What is a Computer

    2. Components of Computer3. Worlds First Computers4. 4004 First single chip Microprocessor5. Transistors in integrated circuits (ICs)6. Review of MOSFET transistors (how they work and how they are made)7. Basic building blocks from transistors8. NANDS, NORS, Latches, Adders9. Simple components using basic building blocks10. Integrating the components to create a 4-bit Microprocessor11. Scaling up and Moores Law12. Machine Code and the processors Instruction Set Software13. Memory types (ROM, DRAM, SRAM, FLASH)14. Mother Board

    15. Hard Drive16. Keyboard17. Monitor18. The Mousehttp://www.labsanywhere.net/SlideManager/slides/Computers_rev3.ppt

    http://www.labsanywhere.net/SlideManager/slides/Computers_rev3.ppthttp://www.labsanywhere.net/SlideManager/slides/Computers_rev3.ppt
  • 7/28/2019 Computers Rev3

    2/60

    Demonstrations

    PC Mother Boards

    Plain and Etched Wafers Silicon Ingot ICs with lids removed Masks

    Memory Hard Drive Magnetic Tape Punch Cards CDs

    Cathode Ray Tube Monitor LCDs Keyboard CCD chips

  • 7/28/2019 Computers Rev3

    3/60

    What is a Computer?

    A machine that storesinstructions and operateson information/data.

    A calculator that executesa stored program(sequence of instructions)

    http://www.sscnet.ucla.edu

  • 7/28/2019 Computers Rev3

    4/60

    Jacquards Loom

    Circa 1804

  • 7/28/2019 Computers Rev3

    5/60

    Charles Babbages first attempt ata Computer

    The Analytical Engine, c. 1822 Designed to use Jacquard

    punch cards to store and runa program

    Mathematician,

    Augusta Ada Lovelace,created programs

    Steam Powered 25,000 parts

    15 tons and 8 feet high

    Never completedhttp://concise.britannica.com

  • 7/28/2019 Computers Rev3

    6/60

    Difference Engine II

    Designed tocalculatepolynomials and

    compute trigand logfunctions

    C. 1847Crank operated

    http://www.computerhistory.org/babbage/Now on Display at the

    Computer History Museum!

    http://www.computerhistory.org/babbage/http://www.computerhistory.org/babbage/
  • 7/28/2019 Computers Rev3

    7/60

    Herman Holleriths Census Tabulatorc. 1890

    Census recording performed in six weeks in 1890 Census recording took 7 years in 1880

    Also on Display at theComputer History Museum!

  • 7/28/2019 Computers Rev3

    8/60

    Data entered onpunch cards

    Card reader usedmercury to close acircuit whichwould advance adial by one tick

    http://www.columbia.edu/acis/history/census-tabulator.html

    Holeriths Tabulator

  • 7/28/2019 Computers Rev3

    9/60

    ENIAC in 1946

    First electroniccomputer

    Designed for theArmy

    $500,000 >17,000 VacuumTubes

    150 KW of power Filled multiple

    rooms (700 sq. ft) Soldered and

    constructed byhand by theUniversity of Penn.

  • 7/28/2019 Computers Rev3

    10/60

    IBMs Accounting Machine

    Introduced in 1949

    Punch cards used to store Fortran

    programs up until about 1980.

  • 7/28/2019 Computers Rev3

    11/60

    Individual Parts

    Manual hand wiring

    IBM 402

  • 7/28/2019 Computers Rev3

    12/60

    The birth of the integrated circuit(IC)

    1947- using silicon as a transistor is discovered

    1960- TI put 10 transistors on one piece of silicon

    Used in Apollo Space Program lower power and weight

  • 7/28/2019 Computers Rev3

    13/60

    Intel 4004

    The Worlds firstMicroprocessor, made in

    1971

    Computer on a chip!

    It had 2300 transistors and

    ran at 740 KHz.

    It could execute 45

    instructions.Could execute 96,000

    instructions per second

    As powerful as the ENIAC

  • 7/28/2019 Computers Rev3

    14/60

    Wheres the chip?

  • 7/28/2019 Computers Rev3

    15/60

    Microprocessor

    Alogic machine thatcan execute acomputer program.

    A Central ProcessingUnit (CPU) integratedinto a single chip

    (i.e. constructed as an

    integrated circuit or ICon a single piece ofSilicon) http://en.wikipedia.org/wiki/Central_processing_unit

  • 7/28/2019 Computers Rev3

    16/60

    Busicom

  • 7/28/2019 Computers Rev3

    17/60

    Moores LawIn 1965 Gordon Moore predicted thatthe number of transistors on a chipwould double every two years.

  • 7/28/2019 Computers Rev3

    18/60

    http://www.computerhistory.org/semiconductor/

    Wiki di

  • 7/28/2019 Computers Rev3

    19/60

    Wikipedia

    micron = 10-6 meters

    The feature size of an integrated circuit is indicated by the width

    of a "wire," measured in microns (one micron is one millionth of ameter).Analysis and Design of Analog Integrated Circuits (4th Edition)

  • 7/28/2019 Computers Rev3

    20/60

    Components of a Computer

    Processor Memory

    Input/Output

    Processor

    Input

    (Keyboard, MouseUSB Drive, DSL,

    Touchscreen, Microphone,

    Hard Drive)

    Output

    (Monitor, speakers,

    USB Drive, Printer,

    DSL, Hard Drive)

    Memory(ROM, RAM,

    Registers, Cache)

    USB Universal Serial Bus DSL Digital Subscriber Line

  • 7/28/2019 Computers Rev3

    21/60

    4004 Processor

    http://en.wikipedia.org

  • 7/28/2019 Computers Rev3

    22/60

    Whats Inside a basic CPU?(Central Processing Unit)

    ALU (Arithmetic Logic Unit)

    Instruction Decoder

    Program Counter

    Instruction Register

    Data Registers

    Accumulator (place for storing a sum)

    Clock for sequencing operations

  • 7/28/2019 Computers Rev3

    23/60

    CPUs are made from Transistors

    Transistors are tinyswitches that canopen and closevery quickly.

    A negative voltagewill turn thistransistor on.

    http://www.answers.com

  • 7/28/2019 Computers Rev3

    24/60

    http://www.ugrad.cs.ubc.ca

    nMOS Transistor (n-channel)

    A positive voltage willturn this transistor on.

  • 7/28/2019 Computers Rev3

    25/60

    http://www.britannica.com

    Chips can have millionsof transistors built on a

    small piece of silicon.

    CMOS stands for Complimentary

    Metal Oxide Semiconductor. This

    means CMOS chips contain both

    pMOS and nMOS transistors.

  • 7/28/2019 Computers Rev3

    26/60

    Transistors are used tomake logic gates

    http://www.iclayoutonline.com

  • 7/28/2019 Computers Rev3

    27/60

    Making the Inverter Logic Gate

  • 7/28/2019 Computers Rev3

    28/60

    http://www.ibiblio.org/obp/electricCircuits

    Making the Exclusive OR gate (XOR)

    N h t b d ith

  • 7/28/2019 Computers Rev3

    29/60

    Now what can be made withNAND, NOR, & XOR gates?

    1-bit adder(Full Adder)

    A multiplexer selects

  • 7/28/2019 Computers Rev3

    30/60

    Multiplexer

    A multiplexer selectsone of many sourcesto send to the output.

    http://users.ece.gatech.edu

  • 7/28/2019 Computers Rev3

    31/60

    1-Bit ALU (Arithmetic Logic Unit)

    http://www.cs.umd.edu/

    Comingfrom theInstructions

  • 7/28/2019 Computers Rev3

    32/60

    4004 Processor

    http://en.wikipedia.org

  • 7/28/2019 Computers Rev3

    33/60

    Cascading 1-bit ALU to get a 3-bit ALU

    http://www.cs.umd.edu/class/spring2003/cmsc311

  • 7/28/2019 Computers Rev3

    34/60

    Memory A Device thatremembers a previous input.

    Registers are the high speed memory onthe CPU chip. These registers are used

    for storing data that is frequently needed.

    Instructions are pre-fetched and stored in

    registers too so that they are ready whenneeded.

  • 7/28/2019 Computers Rev3

    35/60

    Registers

  • 7/28/2019 Computers Rev3

    36/60

    1-bit Latch (Flip Flop)

    Static Ram and registers are constructed with this logic.

    The state of Q is retained as long as power is on.

  • 7/28/2019 Computers Rev3

    37/60

    Clocked LatchAlso known as a D-Flip Flop

    http://www.cise.ufl.edu

  • 7/28/2019 Computers Rev3

    38/60

    Cascading Flip Flops to buildan N-bit register

    k h dd b

  • 7/28/2019 Computers Rev3

    39/60

    Now we know how to add binarynumbers and store binary data

    Use Flip Flops to store instructions whichare coded as binary (base-2) numbers

    Use an ALU to add numbers together

    Scale this concept up to accommodate

    larger numbersAdd more functionality to the ALU

  • 7/28/2019 Computers Rev3

    40/60

    Microinstructions are coded andstored as binary data

    Microinstructions are the controls that

    make the hardware operateMicroinstructions are coded in 1s and 0s

    Microinstructions are unique to the

    processor (each processor has its owninstruction set)

    The clock sequences operations and keeps

    operations in lock step

    00011011 Add C #1

  • 7/28/2019 Computers Rev3

    41/60

    00011011 Add C, #1

    To avoid large decodercircuits, the codes are

    broken up into fields.

    In this example there

    are three fields, each

    field has dedicateddecoding circuitry:

    1. The command

    2. The data to be used

    To Registers A, B, C, and D

    http://webster.cs.ucr.edu

  • 7/28/2019 Computers Rev3

    42/60

    2 to 4 decoders

    http://users.ece.gatech.edu

  • 7/28/2019 Computers Rev3

    43/60

    Software commands Hardware

    while (amt2

  • 7/28/2019 Computers Rev3

    44/60

    Fetch-Decode-Execute Cycle

    Fetch an Instruction:

    Fetch instruction at address stored in addressregister

    Increment Program Counter

    Load the Instruction Register with thisInstruction

  • 7/28/2019 Computers Rev3

    45/60

    Decode

    Decode the Instruction

    Fetch the operands

    Execute

    ALU or other logic performs the operation

    The result is then written to memory or to a

    register.

    M Hi h

  • 7/28/2019 Computers Rev3

    46/60

    Memory Hierarchy

    http://www.surriel.com/lectures/hierarchy.gif

    Cache Memory

  • 7/28/2019 Computers Rev3

    47/60

    Cache Memory

    http://content.answers.com

  • 7/28/2019 Computers Rev3

    48/60

    SRAM

    Static Random Access Memory

    Retains data in memory as long as power is on

    Uses flip flops (4-6 transistors each)

    Fast but more expensive due to more chip real-estate needed for each memory location comparedto DRAM

    Used for cache memoryAccess time 10 nanoseconds

    DRAM d SDRAM

  • 7/28/2019 Computers Rev3

    49/60

    DRAM and SDRAM

    Dynamic RAM

    Dynamic refers to the need torefresh the data

    Synchronous DRAM (Timing of memory chip is

    synchronized with CPU clock)

    Data is stored as electricalcharge in a capacitors

    Capacitors will dischargerequiring that memory berefreshed every fewmilliseconds. This slows downthe DRAM

    Dense therefore leastexpensive form of memory

    http://www.electronics.dit.ie/staff/tscarff/memory/ram.htm

    10 byte DRAM

  • 7/28/2019 Computers Rev3

    50/60

    The word random means bytes can be accessed randomly.

    Data access is not sequential like a magnetic tape.

    http://www.cse.scu.edu

  • 7/28/2019 Computers Rev3

    51/60

    SIMM & DIMM

    Single In-linememory module

    Dual In-line

    memory module

    These cards areDRAMS

    http://en.wikipedia.org/wiki/DIMM

    ROM of three memory locations

  • 7/28/2019 Computers Rev3

    52/60

    ROM of three memory locations,each word of memory is 3 bits

    Read Only Memory Data contents can not

    be changed Data retained even

    when power is off Manufactured with the

    data Used for booting up

    computer and loadingOperating System Device Driver software

    http://www.compeng.dit.ie

    Diodes

    http://www.compeng.dit.ie/http://www.compeng.dit.ie/
  • 7/28/2019 Computers Rev3

    53/60

    htt : tams-www.informatik.uni-hambur .de

  • 7/28/2019 Computers Rev3

    54/60

    Flash Memory

    Type of EEPROM(Electrically EraseableProgrammable ReadOnly Memory)

    Using Floating Gate

    Transistors to store bits Non-volatile (power not

    needed to maintaindata)

    MP3 Players are flash

    drives with extracircuitry to decode datato analog music signals

    http://electronicdesign.com/Articles/ArticleID/16383/16383.html

  • 7/28/2019 Computers Rev3

    55/60

    Hard Drive50-80 GBytes

    Data stored magnetically

    Permanent Storage, Non-volatile memory

    Fast - Spins 4,500 to 12,000 rpm

    Dense and Inexpensive

    Data easily erased and rewritten

    Iron Oxide or very thin magnetic film applied with

    a sputtering process stores magnetic data

    http://www.metallurgy.utah.edu/

  • 7/28/2019 Computers Rev3

    56/60

    Actuator

    Actuator Arm Spindle

    Read/Write head

    Platter

    Multiple Platters

  • 7/28/2019 Computers Rev3

    57/60

    Read-Write Head

    wikipedia

    Multiple Platters

    How Stuff Works

    www.hddtech.co.uk

    Head 20-50 nm from platter surface

    A human hair is 100 nm

    The voice-coil actuator controls the movement

  • 7/28/2019 Computers Rev3

    58/60

    The voice coil actuator controls the movementof the actuator arm

    Positions theread/write heads

    Similar to a speaker! Uses a coil and

    permanent magnet

    Converts electricalsignals into mechanicalmovement

    In this picture, magnethas been moved to theleft during disassembly

    to expose the coil Coil moves freely

    under the magnet

    http://www.storagereview.com/guide2000/ref/hdd/op/over.html

    Small Tolerances

  • 7/28/2019 Computers Rev3

    59/60

    Small Tolerances

    5-80 Mbytes/sec media transfer rateScaled up to size of Boeing, tolerances are

    equivalent to traveling at 65 mph at an

    altitude of 1.5 mm

    As an analogy, a magnetic head slider flying over adisk surface with a flying height of 25 nm with arelative speed of 20 meters/second is equivalent to

    an aircraft flying at a physical spacing of 0.2 m at900 kilometers/hour. This is what a disk driveexperiences during its operation.

    Magnetic Storage Systems Beyond 2000, George C. Hadjipanayis

    A C t i h th

  • 7/28/2019 Computers Rev3

    60/60

    A Computer is much more than a processor.

    Processor Intel Core2Q6600 Quad-Core (8MB L2cache,2.4GHz,1066FSB)

    Video Cards 768MB nVidiaGeForce 8800 GTX

    Memory 2GB* Dual ChannelDDR2 SDRAM at 667MHz - 2DIMMs

    Hard Drive: 500GB* -7200RPM, SATA 3.0Gb/s, 16MBCache

    Optical Drive Single Drive: Blu-ray Disc Drive (BD/DVD/CDburner w/double layer BD write

    Monitors 20 inch E207WFPWidescreen Digital Flat Panel