1 CS 106 Computing Fundamentals II Chapter 21 “Computer Organization” Herbert G. Mayer, PSU CS Status 7/9/2013 Initial content copied verbatim from CS.

Slides:



Advertisements
Similar presentations
Hardware Lesson 3 Inside your computer.
Advertisements

Computer Organization. The Nature of Data Spreadsheets give us a way to create processes that manipulate data We can think of a piece of data as a quantity.
 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
Computer Components.
Chapter 5 Computing Components. The (META) BIG IDEA Cool, idea but maybe too big DATA – Must be stored somewhere in a storage device PROCESSING – Data.
Using Computers CS French Chapter 1.
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Computer Systems CS208. Major Components of a Computer System Processor (CPU) Runs program instructions Main Memory Storage for running programs and current.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
COMPONENTS OF THE SYSTEM UNIT
WHAT IS A COMPUTER??? An electronic device that accepts: n Input n Processes the input n Stores the results of the processing n provides Output Computers.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Lesson 3 — How a Computer Processes Data
The Components of the system unit Created By: N.AlJaffan Modified By:S.Abudawood Chapter 4.
Computer Organization Hardware and Software. Computing Systems Computers have two kinds of components: Hardware, consisting of its physical devices (CPU,
Explore the Parts of a Computer
Computer Processing of Data
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
Practical PC, 7th Edition Chapter 17: Looking Under the Hood
Random access memory.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Translate the following message:
Discovering Computers 2012: Chapter 4
CS 1308 Computer Literacy and the Internet. Introduction  Von Neumann computer  “Naked machine”  Hardware without any helpful user-oriented features.
Introduction to Computers
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
1 Introduction to Computers Lect 1 Won’t tell you much you don’t know. (Misleading– the course gets more conceptual as we create webpages.) Will go into.
Created By: N.AlJaffan Modified By:S.Abudawood & Tr.Asma Aleisa Chapter 4.
Computer Parts. Two Basic Parts Hardware & Software.
Chapter 1 Intro to Computer Department of Computer Engineering Khon Kaen University.
I/O (Input and Output) An I/O device acts as an interface between a computer and a user Without I/O devices, a computer is nothing but a box full of.
GCSE Information Technology Computer Systems 2 Hardware is the name that is given to any part of a computer that you can actually touch. An individual.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
CPU Inside Maria Gabriela Yobal de Anda L#32 9B. CPU Called also the processor Performs the transformation of input into output Executes the instructions.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Lecture on Central Process Unit (CPU)
PARTS OF A COMPUTER 2 Hardware Computer Hardware is any of the physical parts of the computer you can touch. There are 4 categories: 1. Input Devices.
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.
Computer Basics Just How Does a Computer Work?
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
Introduction To Computer Programming – 1A Computer Parts, Words, and Definition Herriman High School.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 1 Looking Inside the Computer System.
ICT COMPUTER FUNDAMENTALS
Unit 2 Technology Systems
Computer Components ICS 3U0.
Activity 1 6 minutes Research Activity: What is RAM? What is ROM?
An Overview of the Computer System
Principles of Information Technology
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Computer Organization
Technology Literacy Hardware.
ICT COMPUTER FUNDAMENTALS
COMPUTER MEMORY & DATA STORAGE
Introduction to Computers
COMPUTER MEMORY & DATA STORAGE
Looking Inside the machine (Types of hardware, CPU, Memory)
An Overview of the Computer System
McGraw-Hill Technology Education
Introduction to Computers
McGraw-Hill Technology Education
McGraw-Hill Technology Education
Presentation transcript:

1 CS 106 Computing Fundamentals II Chapter 21 “Computer Organization” Herbert G. Mayer, PSU CS Status 7/9/2013 Initial content copied verbatim from CS 106 material developed by CS professors: Cynthia Brown & Robert Martin

2 Syllabus Nature of Data Nature of Data Computer Organization Computer Organization What Makes a Computer? What Makes a Computer? Computer Modules Computer Modules Instruction Set Architecture Instruction Set Architecture Bits, Moving Bits Bits, Moving Bits OS OS Applications Applications

3 Nature of Data Spreadsheets give us a way to create processes that manipulate dataSpreadsheets give us a way to create processes that manipulate data We can think of a piece of data as a quantity that can be stored in a cell of a worksheetWe can think of a piece of data as a quantity that can be stored in a cell of a worksheet That cell represents an identifiable, physical location where the data residesThat cell represents an identifiable, physical location where the data resides What happens when you work on a spreadsheet or other programWhat happens when you work on a spreadsheet or other program

4 Computer Organization (1) A typical computer is made up of a few basic parts:A typical computer is made up of a few basic parts: Processor. This is the “chip” where the work gets doneProcessor. This is the “chip” where the work gets done Might be an Intel chip or AMD or some other kind. Modern chips have multiple processors (“cores”) on them that can share the workMight be an Intel chip or AMD or some other kind. Modern chips have multiple processors (“cores”) on them that can share the work Modern computers have yet another processor for graphics processingModern computers have yet another processor for graphics processing A measure of chip quality is the speed, measured in Gigaherz. The bigger number means faster work! Does it matter? We wait anyway A measure of chip quality is the speed, measured in Gigaherz. The bigger number means faster work! Does it matter? We wait anyway  Amount of heat (in Watts) generated is criticalAmount of heat (in Watts) generated is critical

5 Computer Organization (2) Memory. This memory is like the memory on a microwave; when the computer is off or loses power, the memory loses its contents (the way your microwave forgets what time it is when you have a power outage)Memory. This memory is like the memory on a microwave; when the computer is off or loses power, the memory loses its contents (the way your microwave forgets what time it is when you have a power outage) Memory is fast and is connected closely with the processor. Yet memory speed is slow in relation to the CPUMemory is fast and is connected closely with the processor. Yet memory speed is slow in relation to the CPU Memory speed is often measured in Megaherz; faster is better. The size of memory is measured in Gigabytes; 4 on 32-bit computersMemory speed is often measured in Megaherz; faster is better. The size of memory is measured in Gigabytes; 4 on 32-bit computers Storage, implemented as: disks, SSDs, or flash drivesStorage, implemented as: disks, SSDs, or flash drives Flash storage holds its value when the power is off, but is slower than regular memory. Size could be GigabytesFlash storage holds its value when the power is off, but is slower than regular memory. Size could be Gigabytes

6 Computer Organization (3) Cache. This is a special-purpose memory that mediates between working memory and the processor. Having a good-size cache can make the computer faster. Caches are fast, yet expensive, consume more powerCache. This is a special-purpose memory that mediates between working memory and the processor. Having a good-size cache can make the computer faster. Caches are fast, yet expensive, consume more power Input devices. Keyboard, mouse, and microphone but also game controllers, laboratory instruments, etc.Input devices. Keyboard, mouse, and microphone but also game controllers, laboratory instruments, etc. Output devices, such as screen, printer, speaker, and others, like robot arms or a car’s brake systemOutput devices, such as screen, printer, speaker, and others, like robot arms or a car’s brake system

7 What Makes a Computer? Many modern appliances have built-in chips; e.g. cars, televisions, washing machines, etc.Many modern appliances have built-in chips; e.g. cars, televisions, washing machines, etc. What makes a computer special is that it stores its program in memory, just like data, and can accept and execute new programsWhat makes a computer special is that it stores its program in memory, just like data, and can accept and execute new programs It can also potentially modify its own programs (“learn”)It can also potentially modify its own programs (“learn”)

8 Computer Modules

9 Instruction Set Architecture

10 Bits Bit: Short for BInary digiTBit: Short for BInary digiT Everything in the computer, whether it is text, numerical data, music, videos, programs like Excel, macros or other code you write, or the operating system (Windows, MacOS, OSX, Linux) is stored digitally in these bits, tiny devices that have two distinct physical statesEverything in the computer, whether it is text, numerical data, music, videos, programs like Excel, macros or other code you write, or the operating system (Windows, MacOS, OSX, Linux) is stored digitally in these bits, tiny devices that have two distinct physical states Abstractly these states are represented by the numbers 0 and 1. Such an individual 0 or 1 container is the bitAbstractly these states are represented by the numbers 0 and 1. Such an individual 0 or 1 container is the bit

11 Moving bits, Simplistic Model It would be too inefficient for the computer to access and move bits individually, though bit-based computers have been designed, e.g. NCR successor of Century seriesIt would be too inefficient for the computer to access and move bits individually, though bit-based computers have been designed, e.g. NCR successor of Century series Bits are grouped into chunks that are moved around the computer, from the disk to the memory to the CPU, as a groupBits are grouped into chunks that are moved around the computer, from the disk to the memory to the CPU, as a group The bigger the chunk is, the faster the computer can move data. A “32 bit” computer moves data in 32 bit chunks. A “64 bit” computer moves data in bigger 64-bit chunks and can conveniently handle a bigger working memoryThe bigger the chunk is, the faster the computer can move data. A “32 bit” computer moves data in 32 bit chunks. A “64 bit” computer moves data in bigger 64-bit chunks and can conveniently handle a bigger working memory The original chunk was typically a byte (8 bits)The original chunk was typically a byte (8 bits) Note that bus width and natural data width are orthogonalNote that bus width and natural data width are orthogonal

12 Operating System The operating system is the key system SW on your computer: it controls what happens, and manages resources. If you have multiple programs open, for example, and you type something, it figures out where the characters should goThe operating system is the key system SW on your computer: it controls what happens, and manages resources. If you have multiple programs open, for example, and you type something, it figures out where the characters should go While the computer is up and running, the operating system is resident in working memory, to be fastWhile the computer is up and running, the operating system is resident in working memory, to be fast But when the computer is turned off… the memory is wiped outBut when the computer is turned off… the memory is wiped out So when you turn your computer on, how does it get started with no operating system?So when you turn your computer on, how does it get started with no operating system?

13 “Booting” A special, dedicated device = chip that retains its data when power is off, has a small program built inA special, dedicated device = chip that retains its data when power is off, has a small program built in When you turn on your computer this program loads the actual operating system from the external memory into the working memoryWhen you turn on your computer this program loads the actual operating system from the external memory into the working memory This is called “booting” because it is supposedly like picking yourself up by your own bootstrapsThis is called “booting” because it is supposedly like picking yourself up by your own bootstraps This is what is going on during the minutes (on Windows) after you turn on the computer before your operating system shows upThis is what is going on during the minutes (on Windows) after you turn on the computer before your operating system shows up

14 Applications Besides your operating system and some associated programs, your computer also has application programs that actually do the things you want to do: word processing, games, spreadsheets, play music, etc.Besides your operating system and some associated programs, your computer also has application programs that actually do the things you want to do: word processing, games, spreadsheets, play music, etc. The typical computer user just uses applications. In this class we will be creating some applications inside of ExcelThe typical computer user just uses applications. In this class we will be creating some applications inside of Excel

Cray 2 Supercomputer