Computer Hardware 2. Type of Computers. User Point of View. The Motherboard. Inside. Content

Similar documents
Where Have We Been? Ch. 6 Memory Technology

Computers Are Your Future

Memory Technology March 15, 2001

FUNCTIONS OF COMPONENTS OF A PERSONAL COMPUTER

About the Presentations

Homeschool Enrichment. The System Unit: Processing & Memory

Introduction To Computer Hardware. Hafijur Rahman

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 1 Introducing Hardware

MSc-IT 1st Semester Fall 2016, Course Instructor M. Imran khalil 1

Memory hierarchy Outline

Components of a personal computer

CS429: Computer Organization and Architecture

CS429: Computer Organization and Architecture

Computers Are Your Future

Introduction to the Personal Computer

Storage Technologies and the Memory Hierarchy

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.

Computer Organization

Lecture 23. Finish-up buses Storage

Large and Fast: Exploiting Memory Hierarchy

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

UNIT 2 Data Center Environment

Computer Organization

CS 33. Memory Hierarchy I. CS33 Intro to Computer Systems XVI 1 Copyright 2016 Thomas W. Doeppner. All rights reserved.

CMSC 1513 Lecture 1.2

CS 201 The Memory Hierarchy. Gerson Robboy Portland State University

Memory Study Material

Chapter 6 Part 1 Understanding Hardware

Full file at

Chapter 4 The Components of the System Unit

Computer Overview. A computer item you can physically see or touch. A computer program that tells computer hardware how to operate.

A Review of Chapter 5 and. CSc 2010 Spring 2012 Instructor: Qian Hu

The Components of the System Unit

CSC1201 Computer Applications. Budditha Hettige Department of Computer Science

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

Technology in Action

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

Assembling Computers Summer Academy Presented by the Petters Research Institute (PRI) in cooperation with the Belize Defense Force

Chapter 4 The Components of the System Unit

HARDWARE AND OPERATING SYSTEMS

7/28/ Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc.

INTRODUCTION TO COMPUTERS

What is the typical configuration of a computer sold today? 1-1

Electricity: Voltage. Gate: A signal enters the gate at a certain voltage. The gate performs operations on it, and sends it out was a new signal.

Random-Access Memory (RAM) CS429: Computer Organization and Architecture. SRAM and DRAM. Flash / RAM Summary. Storage Technologies

CS 261 Fall Mike Lam, Professor. Memory

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

Computer Organization

Chapter One. Introduction to Computer System

Computer Organization: A Programmer's Perspective

5 Computer Organization

Technology in Action. Chapter Topics. Participation Question. Participation Question. Participation Question 8/8/11

CS24: INTRODUCTION TO COMPUTING SYSTEMS. Spring 2017 Lecture 13

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

Chapter I The System Unit

Chapter Two. Hardware Basics: Inside the Box

Terminology, Types of Computers & Computer Hardware

Personal computer hardware From Wikipedia, the free encyclopedia (Redirected from Computer hardware)

Components of a Computer System

lesson 3 Transforming Data into Information

Introduction To Computer Hardware

Performance & Technology. Performance expressed as a time. Todd C. Mowry CS 740. Sept 12, Performance expressed as a rate(cont)

Introduction To Computers: Hardware and Software

Foundations of Computer Systems

So computers can't think in the same way that people do. But what they do, they do excellently well and very, very fast.

TUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design.

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

BUYING A COMPUTER TERM 2 AIT

Lectures More I/O

True/False Indicate whether the statement is true or false. Bubble A for True and B for False

True/False Indicate whether the statement is true or false. Bubble A for True and B for False

Data rate - The data rate is the number of bytes per second that the drive can deliver to the CPU.

Random Access Memory (RAM)

Topic 4: Storage Devices

15/09/15. Introduction to Computers & The Internet. Contents. Computer hardware and software. Input and output devices CPU. Memory.

Quiz on Ch.4 is at the end of Ch.4 slides

PC I/O. May 7, Howard Huang 1

The Memory Component

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 26, SPRING 2013

CSE 153 Design of Operating Systems Fall 2018

Advanced Parallel Architecture Lesson 4 bis. Annalisa Massini /2015

Intentionally Blank 0

The personal computer system uses the following hardware device types -

(Computer Hardware, System Unit & its parts.) Lecture # By: M.Nadeem Akhtar. Lecturer. Department of CS & IT.

Chapter 9: Peripheral Devices. By: Derek Hildreth Chad Davis

Chapter 8. A Typical collection of I/O devices. Interrupts. Processor. Cache. Memory I/O bus. I/O controller I/O I/O. Main memory.

The Central Processing Unit

Semiconductor Memory Types. Computer & Microprocessor Architecture HCA103. Memory Cell Operation. Semiconductor Memory.

VISUAL SUMMARY. The System Unit

System Unit Components Chapter2

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

BTEC Level 3 Unit 2. Computer Components

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

Chapter 2. Prepared By: Humeyra Saracoglu

Technical Specifications: Dell OptiPlex GX150 System

Defining Computers. Defining Computers. Understanding Essential Computer Concepts

The Memory Hierarchy /18-213/15-513: Introduction to Computer Systems 11 th Lecture, October 3, Today s Instructor: Phil Gibbons

computer case. Various form factors exist for motherboards, as shown in this chart.

Module 1. Introduction. Version 2 EE IIT, Kharagpur 1

Transcription:

Content 2 Computer Hardware Computer Systems CPU Memory Input/Output Secondary Storage Devices Copyleft 2005, Binnur Kurt 33 Type of Computers User Point of View Desktop Notebook Input Storage Process Output Personal Digital Assistant 34 35 Inside The Motherboard 1. Motherboard (mainboard) Large printed circuit board with thousands of electrical circuits 2. Power supply Transforms alternating current (AC) from wall outlets to direct current (DC) needed by the computer 3. Extension Slots 4. Cooling fan Keeps the system unit cool 5. Drive bays Housing for the computer s hard drive, floppy drive, and CD-ROM / DVD-ROM drives Keyboard / Mouse Ports USB Port Parallel Port Video Port PCI Slots Microprocessor Memory Slots AGP Slot Chipset 36 37

CPU: Central Processing Unit Control unit CPU is the heart of a computer. Control unit Control and coordinate the computer s operations. Arithmetic/Logic Unit (ALU) performs all arithmetic computations and logic operations. Program execution 1. Each computer has a unique instruction set determined by the designers of its architecture. Each instruction includes a code that specifies the operation to be performed, and the memory address of the data value to be acted on. 38 39 Control unit Control unit Program execution 2. All the operations of a computer are directed by a set of instructions, known as a program, which is loaded in the computer s main memory during execution. Program execution 3. The control unit locates the appropriate instructions, controls their sequencing, and executes them by activating appropriate circuitry. 40 41 Control unit (cont.) Control unit (cont.) Program Counter (PC) contains the memory address of the instruction that is currently being executed. Instruction counter (IC) contains the instruction currently being processed. Hardware characteristics CPU synchronizes its operations by the regular pulses emitted by an electronic device called a clock. The speed of a computer can be quoted as: Clock speed, e.g. 100MHz means 100 million cycles per second. MIPS, a million instructions per second, or the unit of time it takes to execute one instruction. 42 43

Arithmetic/Logical Unit ALU performs all arithmetic computations and logical operations. Arithmetic - Add, subtract, multiply, divide, exponentiation etc. Logical -Testing for relationships. A<B; name == ali ; c>=10; possible Answers? True or False The ALU contains special memory cells, known as registers, in which the arithmetic is carried out. CPU reads the individual program instructions from main memory. Executes one instruction at a time until completion Machine Cycle Fetch - Decode - Execute The machine cycle algorithm is continuously repeated until program termination. 44 45 Fetch: Retrieve the next instruction from memory [where the command is located (address) in program counter] Update the program counter to the address of the next instruction. The instruction just Fetched is placed in register. Decode: Execute: Decode the Bit pattern in the register Having decoded the instruction, the control unit enters the execute phase. It activates the correct circuitry to perform the requested task. 46 47 If the instruction is a load from memory, the Control Unit causes the load to occur. If the instruction is for an arithmetic operation, the control unit activates the appropriate circuitry in the ALU with the correct input stored in registers. When the instruction has been executed, the control unit again begins the machine cycle with the Fetch cmd (the address of the next cmd is in the program counter). The Processing Cycle Control unit Memory ALU 48 49

Popular CPUs AMD s XP processors Intel P4 Advanced Micro Devices (AMD) Athlon Sempron Duron The flagship of the AMD line, the XP processor differs from the Intel processor in several ways: During a single clock cycle, AMD s processors have less instructions that an Intel machine, thereby making them more efficient. AMD s chips are generally less expensive than Intel s and are not sold by a megahertz rating, as are Intel chips. 50 51 Intel s Pentium Classes of Computers Intel s flagship line of processors has had the same name since its inception: the Pentium chip. The Pentium currently clocks in at 3.6 GHz, the fastest clock speed on the market. However, the clock cycle on a Pentium chip has many more steps than its competitors, so it is not as efficient as other chips on the market. Microcomputers (PC) Minicomputers Designed for specific tasks Distributed DP Workstations High speed performance Engineering tasks High End Graphics RISC Super Computers All work in the same way! 52 53 Example: Silicon Graphics Fuel Hot Cases and Cool Thinking The biggest challenge to making faster processors is keeping the case cool enough for the processor to operate safely. Processor Memory Key Applications Single 800 MHz or 700MHz MIPS R16000A processor with 4MB L2 cache; 200 MHz front-side bus 512MB-4GB synchronous double-data rate RAM (DDR SDRAM ) MCAD Medical Imaging Scientific Visualization 3D Animation Visual Simulation Geospatial imaging Traditionally, a heat sink is attached to the top of the processor and a fan blows hot air off the processor, which mixes with the air flow across the motherboard to vent. As any hardcore hardware nerd will tell you, though, a heat sink only goes so far. Liquid cooling is the new wave of cooling technology, lowering temperatures to a cool 35 degrees Celsius. 54 55

Secondary Storage User Input / Output Mass storage devices Sequential storage: tape. Random storage: floppy disk, zip disk, CD-ROM, etc. Indirect addressing. Static storage. Slower speed. Input Devices: keyboard, mouse, light pen, etc. Data translation: interfaces. Output Devices: computer screen, printer (dot matrix, ink jet or laser), etc. Data translation: buffers. 56 57 IPOS Cycle Main Memory I - Input Data/ Program P -Process CPU Memory O - Output Program Output Data/Program S -Secondary Storage Medium It is part of a computer s electronic circuitry which holds the binary data which the computer s program will process. Memory is divided into cells. Each cell is assigned a specific address, from 0 to the maximum size of the computer s memory capacity. 58 59 The size of a computer s memory is the number of the addressable cells it contains. Bit 1 Byte 8 bits Kilobyte 2 10 bytes Megabyte 2 10 kilobyte Gigabyte 2 10 megabyte Terabyte 2 10 gigabytes Main Memory A 256K bytes of memory have 256*1024=262,144 b Main Memory Random Access High-speed Read/Write Capability Volatility Memory loses its contents when the power is turned off. Nonvolatile memory Contents of memory are not erased when power is turned off. ROM Read-only memory provides the instructions to start the computer. Flash memory Memory that can be rewritten. 60 61

Static RAM (SRAM) Dynamic RAM (DRAM) Fast ~4 nsec access time Persistent as long as power is supplied no refresh required Expensive ~$100/MByte 6 transistors/bit Stable High immunity to noise and environmental disturbances Technology for caches Slower than SRAM access time ~60 nsec Nonpersistant every row must be accessed every ~1 ms (refreshed) Cheaper than SRAM ~$1.50 / MByte 1 transistor/bit Fragile electrical noise, light, radiation Workhorse memory technology 62 63 Addressing Arrays with Bits Array Size R rows, R = 2 r C columns, C = 2 c N = R * C bits of memory Addressing Addresses are n bits, where N = 2 n row(address) = address / C leftmost r bits of address col(address) = address % C rightmost bits of address Example (R=2,C=4,address=6) address = row col 0 1 2 3 0 000 001 010 011 1 100 101 110 111 row 1 r n c col 2 64 Example Level Decode DRAM (64Kx1) A7-A0 row col Provide 16-bit address in two 8-bit chunks RAS Row Row address latch latch Column address latch latch CAS 8 \ 8 \ Row Row decoder 256 Rows 256x256 cell cell array array 256 Columns column column R/W sense/write amps amps column column latch latch and and decoder D out D in 65 DRAM Operation Observations About DRAMs Row Address (~50ns) Set Row address on address lines & strobe RAS Entire row read & stored in column latches Contents of row of memory cells destroyed Column Address (~10ns) Set Column address on address lines & strobe CAS Access selected bit READ: transfer from selected column latch to Dout WRITE: Set selected column latch to Din Rewrite (~30ns) Write back entire row Timing Access time (= 60ns) < cycle time (= 90ns) Need to rewrite row Must Refresh Periodically Perform complete memory cycle for each row Approximately once every 1ms Sqrt(n) cycles Handled in background by memory controller Inefficient Way to Get a Single Bit Effectively read entire row of Sqrt(n) bits 66 67

Type of RAMs Cache Memory Dynamic RAM A memory chip that needs to be refreshed periodically, or it will lose its data. Synchronous DRAM (SDRAM) Synchronized with the computer s system clock. Double Data Rate SDRAM (DDR SDRAM) A type of SDRAM that can send and receive data within one clock cycle. Primary cache (Level 1 or L1) Located within the CPU chip, it is the memory the microprocessor uses to store frequently used instructions and data. Secondary cache (Level 2 or L2; Backside Cache) Located near the CPU, it is the memory between the CPU and RAM. It is faster than RAM. 68 69 Expansion slots Input/Output Buses Expansion card I/O buses are pathways that enable the CPU to communicate with input/output devices. Typically the buses contain slots, called expansion slots, in which expansion cards are inserted. 70 Ports and Connectors Universal Serial Bus There are two types of USB technologies, traditional USB, or USB 1.1 and the newer technology of USB 2.0. USB is generally used for bursting chunks of data, but performs poorly for continuous data transfer. USB 1.1 can transfer data at a theoretical speed of 12 megabits per second. However, all USB devices draw on this speed, so the more devices using USB the less speed each device is allocated, although the minimum speed any device is allocated is 1.5 mbps. USB 2.0 reaches theoretical speeds of 480 mbps, yet is still subject to the sharing limitations of its predecessor. 71 High Speed Computer Ports and Connecters Telephony Computer Ports and Connecters IEEE 1394 FireWire port Used to transfer large amounts of data quickly. Usually camcorders and other video equipment use this port Up to 400 megabits per second. Unlike USB, FireWire is good for large, continuous transfer. IEEE 1394 connectors can be used to connect up to 63 external devices to a single machine. Recently, a new type of FireWire burst onto the scene, termed FireWire 800. Just like its name implies, FireWire 800 transfers data at twice the speed of its predecessor. Modem Port A modem port looks like a standard RJ14 North American telephone jack. Modern modems have a theoretical limitation of 56 kbps Ethernet Port Ethernet usually uses a standard RJ-45 connector. The most common forms of Ethernet can transmit between 10 and 100 mbps, with the fastest technology of today running at 1000 mbps. 72 73

System Buses Type of Buses IDE featured a 40-pin parallel connector with a theoretical transfer speed of 100 or 133 mbps. This is the same connector used in most types of consumer PCs today. Serial ATA, a much smaller, compact connector featuring only 7 pins, running in serial transfer modes at up to 150 mbps, with future applications approaching 300 or even 600 mbps. Serial ATA also features the ability to hot-plug devices, which allows a device to be universally plug and play compatible. Personal Computer Interface (PCI) PCI Express Accelerated Graphics Port (AGP) designed for video adapters. Universal Serial Bus (USB) Allows up to 127 devices to be connected to the computer at one time. It supports plug and play. Firewire (IEEE 1394) Designed especially for digital video transmission 74 75 Secondary Storage Devices Magnetic Disks Since secondary storage is different from main memory we have to understand how it works in order to do good file designs. Two major types of storage devices Direct Access Storage Devices (DASDs) Magnetic Disks Hard Disks (high capacity, low cost per bit) Optical Disks CD-ROM,DVD-ROM (Read-only/write-once, holds a lot of data, cheap) Serial Devices Magnetic Tapes Magnetic disks support direct access to a desired location Simplified structure of a disk Disk blocks Tracks Platters Cylinder Sectors Disk heads Disk Controller Seek Time Rotational delay 76 77 Components of a Disk Looking at a Surface The platters spin (7200 rpm) The arm assembly is moved in or out to position a head on a desired track. Tracks under heads make a cylinder (imaginary!). Only one head reads/writes at any one time Block size is a multiple of sector size (which is fixed) Disk contains concentric tracks Tracks are divided into sectors A sector is the smallest addressable unit in disk 78 79

Cylinder Disk Capacity Cylinder: the set of tracks on a disk that are directly above/below each other All the information on a cylinder can be accessed without moving the read/write arm (seeking) Parameter 18GB Example Number Platters 12 Surfaces / Platter 2 Number of tracks 6962 Number sectors / track 213 Bytes / sector 512 Total Bytes 18,221,948,928 80 81 Disk Operation Disk Performance Operations: Read or write complete sector Seek Position head over proper track Typically 6-9ms Rotational Latency Wait until desired sector passes under head Worst case: complete rotation 10,025 RPM 6 ms Read or Write Bits Transfer rate depends on # bits per track and rotational speed e.g., 213 * 512 bytes @10,025RPM = 18 MB/sec. Modern disks have external transfer rates of up to 80 MB/sec DRAM caches on disk help sustain these higher rates Getting First Byte Seek + Rotational latency = 7,000 19,000 µsec Getting Successive Bytes ~ 0.06 µsec each roughly 100,000 times faster than getting the first byte! Optimizing Performance: Large block transfers are more efficient Try to do other things while waiting for first byte switch context to other computing task processor is interrupted when transfer completes 82 83 Disk/System Interface Magnetic Disk Technology Processor Signals Controller Read sector X and store starting at memory address Y Read Occurs Direct Memory Access (DMA) transfer Under control of I/O controller I / O Controller Signals Completion Interrupts processor Can resume suspended process (2) DMA Transfer Processor Reg Cache Cache Memory (1) Initiate Sector Read (3) Read Done Memory-I/O bus bus I/O I/O controller Disk Disk Seagate ST-12550N Barracuda 2 Disk Linear density 52,187. bits per inch (BPI) Bit spacing 0.5 microns Track density 3,047 tracks per inch (TPI) Track spacing 8.3 microns Total tracks 2,707 tracks Rotational Speed 7200 RPM Avg Linear Speed 86.4 kilometers / hour Head Floating Height 0.13 microns 84 85

CD Read Only Memory (CDROM) Optical recording technology developed for audio CDs 74 minutes playing time 44,100 samples / second 2 X 16-bits / sample (Stereo) Raw bit rate = 172 KB / second Add extra 288 bytes of error correction for every 2048 bytes of data, can not tolerate any errors in digital data Bit Rate 172 * 2048 / (288 + 2048) = 150 KB / second For 1X CDROM, N X CDROM gives bit rate of N * 150 E.g., 12X CDROM gives 1.76 MB / second Capacity 74 Minutes*150 KB/second*60 seconds/minute= 650 MB 86