Lecture # 36 Computer Architecture and Organization.

Slides:



Advertisements
Similar presentations
Calera High School Dawn Bone
Advertisements

Computer Hardware What goes on inside?. Deeper.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
Chapter 3 – Computer Hardware Computer Components – Hardware (cont.) Lecture 3.
Computer Fundamentals. A Computer Is a System Input Processing Output Data is entered into the computer Becomes useful information The data is processed.
How Computers Work. A computer is a machine f or the storage and processing of information. Computers consist of hardware (what you can touch) and software.
The Internal Components of a Personal Computer (PC)
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
Computer Processing of Data
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
Practical PC, 7th Edition Chapter 17: Looking Under the Hood
Understanding Computers, Ch.31 Chapter 3 The System Unit: Processing and Memory.
 Design model for a computer  Named after John von Neuman  Instructions that tell the computer what to do are stored in memory  Stored program Memory.
D75P 34R HNC Computer Architecture 1 Week 9 The Processor, Busses and Peripherals © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College.
Lesson 2 — How Does A Computer Process Data?
CPU Computer Hardware Organization (How does the computer look from inside?) Register file ALU PC System bus Memory bus Main memory Bus interface I/O bridge.
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
© Paradigm Publishing Inc. 2-1 Chapter 2 Input and Processing.
CS 342 – Operating Systems Spring 2003 © Ibrahim Korpeoglu Bilkent University1 Input/Output CS 342 – Operating Systems Ibrahim Korpeoglu Bilkent University.
Computer Basic Vocabulary
Parts of the computer.
INSIDE THE COMPUTER. What is Computer ? Computer is Electronic device which work on electricity. OR An electronic device for storing and processing data,
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
10 Internal parts of a PC Created by Federica Proietti Cesaretti.
CSCI-100 Introduction to Computing Hardware Part I.
Computer Hardware. Lally School of M&T- Microcomputing and Info Systems Lecture Topics 1. Data Representation 2. Data Metrics 3. Central processing Unit.
Electronic Analog Computer Dr. Amin Danial Asham by.
Motherboard A motherboard allows all the parts of your computer to receive power and communicate with one another.
The Computer System CS 103: Computers and Application Software.
Computer Architecture2  Computers are comprised of three things  The physical computer  The operating system  The user and programs running on the.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 5A Transforming Data Into Information.
Unit 1: Computing Fundamentals. Computer Tour-There are 7 major components inside a computer  Write down each major component as it is discussed.  Watch.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Digital Literacy: Computer Basics
Computer Hardware & Processing Inside the Box CSC September 16, 2010.
 A computer is an electronic device that receives data (input), processes data, stores data, and produces a result (output).  It performs only three.
COMPUTER COMPONENTS Ms Jennifer Computer Components.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 1 Looking Inside the Computer System.
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
**Input devices** 1- you communicate with the computer via an input device. 2- Input devices allow us to send information to the CPU to tell the computer.
Computer Hardware Introduction What’s inside that box?
A+ Guide to Managing and Maintaining Your PC, 7e Chapter 1 Introducing Hardware.
Inside a Computer. Computer Hardware/Software What is the difference? Computer Hardware.
Computer Architecture and Number Systems
Computer Science.
Introduction to Programming Part 2
Computer Parts - Internal
UNIT 9 Computer architecture
A+ Guide to Managing and Maintaining Your PC, 7e
CS111 Computer Programming
Technology Literacy Hardware.
TexPREP Summer Camp Computer Science
Microcomputer Architecture
Computer Parts - Internal
Computer Architecture
Introduction to Computers
Introduction to Computers
Computer Basics.
Introduction to Computing Lecture # 1
Introduction to Computers
Topics Introduction Hardware and Software How Computers Store Data
Machine Architecture and Number Systems
Introduction to Programming Part 2
Year 9 Entry Level Computing
Machine Architecture and Number Systems
Introduction to Computer Systems
The System Unit By: Cole and Mariah.
Presentation transcript:

Lecture # 36 Computer Architecture and Organization

Computer Hardware What goes on inside?

A Computer

Parts of a Computer 1.Monitor 2.Motherboard 3.CPU 4.Main Memory (RAM) 5.Expansion Cards 6.Power supply 7.CD/DVD/Blu-ray 8.Hard drive 9.Keyboard 10.Mouse

Inside a Computer

The Motherboard

CPU and Memory Communication Central Processing Unit CPU Memory Address Data What is the maximum amount of memory? What is bandwidth?

New Intel Architecture

I/O Connections Graphics USB – anything Keyboard Mouse USB drive PCI slots Network card Hard Disk (SATA)

Persistent Storage Unplug your machine – the information is gone How do we keep it then? –Magnetic storage Hard Disk Mag tape –USB drive –Optical drive

Magnetic Storage

How It Works Moving a magnet past a wire creates electricity Sending electricity through a wire creates a magnet

Magnetic storage Hi How do we know where one character ends and the next begins? Count to 8

Magnetic storage Hi S

Magnetic storage Hi S N

Magnetic storage Hi S N S

Magnetic storage Hi S N S S

Magnetic storage Hi S N S S N

Magnetic storage Hi S N S

Magnetic storage Hi S N S S N S S

Magnetic storage Hi S N S S N S S N

Magnetic storage Hi S N S S N S S N S

Magnetic storage Hi S N S S N S S N S N

Magnetic storage Hi S N S S N S S N S N N

Magnetic storage Hi S N S S N S S N S N N S

Magnetic storage Hi S N S S N S S N S N N S N

Magnetic storage Hi S N S S N S S N S N N S N S

Magnetic storage Hi S N S S N S S N S N N S N S S

Magnetic storage Hi S N S S N S S N S N N S N S S N

Magnetic Storage Reading Hi S N S S N S S N S N N S N S S N - do the opposite direction

Magnetic Disks Spin disk instead of move tape Multiple tracks on the disk Move the head in and out Track Sector

Magnetic Disks How long to read or write? How fast does it spin –5400, 7200, 10000, RPM How many bits on a track How long to move the head

Magnetic Disks How much can it hold? Make the disk bigger Make the bits smaller –Less area = less magnetism Put the heads closer –Disk vibration –Make it hard instead of flexible –Vacuum seal it to keep out dust Make the head move less distance

CD-ROM Laser Sensor 1

CD-ROM How fast can it spin How big are the pits –Scratches Laser Sensor 0

Keyboard Key code = 52Key code = 131 How do you translate key codes into ASCII? Use an array indexed by key code What about the shift key? Use two arrays How do you translate key codes into Unicode? Use a different array

Keyboard What about Cyrillic, Hebrew or Arabic? Change the key caps Change the keycode->Unicode array

Mouse Software maintains –X and Y Optical sensor (IR, LED, Laser) –Up - subtract 1 from Y –Down - add 1 to Y –Left - add 1 to X –Right - subtract 1 from X

Display Numbers tell display how bright each spot should be Controller lets CPU change the number for each spot Controller

Toy Computer Show several of the built in programs Show simple command –Load Load Immediate –Store –Add/Sub –Mult/Div –Print –Skip –JMP

Deeper

Not that deep

A simple Computer Central Processing Unit CPU Performs all calculations and decisions Add, Subtract, … >, <, == decide what to do next

A simple Computer Central Processing Unit CPU Memory Stores most information Memory is a large array of integers

Memory - array of integers How does it store text? How does it store images? How does it store audio? How does it store a program?

A simple Computer Central Processing Unit CPU Memory Address Wires that pass the index of the location in memory that the CPU wants to get or change

A simple Computer Central Processing Unit CPU Memory Address Wires that pass the index of the location in memory that the CPU wants to get or change

A simple Computer Central Processing Unit CPU Memory Address Number of wires = number of bits Number of bits = range of possible indexes = total possible memory

A simple Computer Central Processing Unit CPU Memory Address Twice as much memory adds how many more address wires? 1 more

A simple Computer Central Processing Unit CPU Memory Address Data Wires that pass numbers from CPU to Memory or from Memory to CPU

A simple Computer Central Processing Unit CPU Memory RAM Address Data RAM - Random Access Memory is the main memory of a computer. The size of RAM is the length of the array

How to represent a program in memory Program is a series of simple instructions –Each instruction is an integer CPU –Goes to a location in memory –Gets an instruction –Does what the instruction says –Moves to the next instruction Does this millions of times per second

A simple fake computer CPU

Program Counter - address (index) of the next instruction

Registers private memory for the CPU

Every instruction has a number OpCodes 0 - Halt 1 - Load 2 - Store 3 - Add 4 - Subtract 5 - Divide 6 - Multiply 7 - Is Greater Than 0? 8 - Goto 9 - Branch If Greater Than 0!

Instruction Format: Digit 1 OpCode Digit 2 Register Digit 3-4 Memory Address OpCodes 0 - Halt 1 - Load 2 - Store 3 - Add 4 - Subtract 5 - Divide 6 - Multiply 7 - Is Greater Than 0? 8 - Goto 9 - Branch If Greater Than 0!

Instruction Format: Digit 1 OpCode Digit 2 Register Digit 3-4 Memory Address OpCodes 0 - Halt 1 - Load 2 - Store 3 - Add 4 - Subtract 5 - Divide 6 - Multiply 7 - Is Greater Than 0? 8 - Goto 9 - Branch If Greater Than 0!

Instruction Format: Digit 1 OpCode Digit 2 Register Digit 3-4 Memory Address OpCodes 0 - Halt 1 - Load 2 - Store 3 - Add 4 - Subtract 5 - Divide 6 - Multiply 7 - Is Greater Than 0? 8 - Goto 9 - Branch If Greater Than 0!

Reg[1]=Reg[1]+Mem[10] Instruction Format: Digit 1 OpCode Digit 2 Register Digit 3-4 Memory Address OpCodes 0 - Halt 1 - Load 2 - Store 3 - Add 4 - Subtract 5 - Divide 6 - Multiply 7 - Is Greater Than 0? 8 - Goto 9 - Branch If Greater Than 0!

? Instruction Format: Digit 1 OpCode Digit 2 Register Digit 3-4 Memory Address OpCodes 0 - Halt 1 - Load 2 - Store 3 - Add 4 - Subtract 5 - Divide 6 - Multiply 7 - Is Greater Than 0? 8 - Goto 9 - Branch If Greater Than 0!

Reg[2]=Reg[2]-Mem[30] Instruction Format: Digit 1 OpCode Digit 2 Register Digit 3-4 Memory Address OpCodes 0 - Halt 1 - Load 2 - Store 3 - Add 4 - Subtract 5 - Divide 6 - Multiply 7 - Is Greater Than 0? 8 - Goto 9 - Branch If Greater Than 0!

A simple program Load location 7 into register 0 Reg[0]=Mem[7] PC = PC+1

A simple program Load location 8 into register 2 Reg[2]=Mem[8] PC = PC+1

A simple program Add location 7 to register 0 Reg[0]=Reg[0]+Mem[7] PC = PC+1

A simple program GOTO the address stored in register 2 PC = Reg[2]

A simple program Add location 7 to register 0 Reg[0]=Reg[0]+Mem[7] PC=PC+1

A simple program GOTO the address stored in register 2 PC = Reg[2]

A simple program Add location 7 to register 0 Reg[0]=Reg[0]+Mem[7] PC=PC+1

Clock speed of a processor Number of instructions per second that can be performed 100 MHz = 100 Million instructions per second 1.5 GHz = 1.5 Billion instructions per second

So what is a program? A file of bytes Operating system copies the file into memory –When select the program from Start menu –When you double click on the program Operating system sets PC to address of first byte of the program in memory Program begins to run

Programs and Data Program (instructions) Data What is the difference? If the PC points to it then it is an instruction

Review CPU - Central Processing Unit –Does calculating and deciding Memory - RAM –Stores data and programs –Array of integers –Size of RAM = the length of this array

Review Program –List of instructions –Each instruction is an integer that the CPU decodes –Program counter (PC) is the address of the next instruction Copy program from file into memory –Set PC to start of the program