© Jalal Kawash 2010 Introduction Peeking into Computer Science 1.

Slides:



Advertisements
Similar presentations
The Central Processing Unit: What Goes on Inside the Computer.
Advertisements

 2002 Prentice Hall Hardware Basics: Inside The Box Chapter 2.
INTRODUCTION OF COMPUTER
Computer Architecture. Central Processing Unit (CPU)- micro processor The Personal Computer.
What Is A Computer System?
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Category1 Computers Category2 CPU.
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
Chapter 0 Introduction to Computing
Elements of the Computer (How a processor works)
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.
MIS 175 Spring Learning Objectives When you finish this chapter, you will: –Recognize major components of an electronic computer. –Understand how.
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
CPU Describe the purpose of the CPU
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.
Aug CMSC 104, LECT-021 Machine Architecture and Number Systems Some material in this presentation is borrowed form Adrian Ilie From The UNIVERSITY.
Chapter 3 Computer Hard ware
Computer Hardware and Software Jinchang Wang. Hardware vs. Software Hardware is something tangible. Computer hardware includes electronic circuitry and.
UNIX Unbounded 5 th Edition Amir Afzal Chapter 1 First Things First.
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Georgia Institute of Technology Introduction to Programming Part 2 Barb Ericson Georgia Institute of Technology May 2006.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
1 Machine Architecture and Number Systems Topics Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Lesson 2 — How Does A Computer Process Data?
Introduction to Computers
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computer Parts. Two Basic Parts Hardware & Software.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
The Central Processing Unit: What Goes on Inside the Computer
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Chapter 5 Computing Components Nell Dale John Lewis.
1 Introduction to Computers By Masseta ICT Dept. Mzumbe University.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Section one revision:1. Computer Systems To be able to Identify and describe computer systems To demonstrate an understanding of the Central Processing.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
Computers Are Your Future Chapter 1 Slide 1 Introduction to the Computers & Internet Chapter 1 Concepts of Information Technology IT.
Computer Science 101 Computer Systems Organization.
Computer Organization & Assembly Language © by DR. M. Amer.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Computer Hardware.
CSCI-100 Introduction to Computing Hardware Part I.
Components of a Computer System
1 Course Title: IT IN BUSINESS Course Instructor: ADEEL ANJUM Chapter No: 04 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Machine Architecture CMSC 104, Section 4 Richard Chang 1.
Computer Organization. The Five Hardware Units General purpose computers use the "Von Neumann" architecture Also referred to as "stored program" architecture.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Von Neumann Machines. 3 The Von Neumann Architecture Model for designing and building computers, based on the following three characteristics: 1)The.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
Information Technology (IT). Information Technology – technology used to create, store, exchange, and use information in its various forms (business data,
Computing Science Computer Structure: Lesson 1: Processor Structure
Introduction to Computer Architecture
Computer Architecture
IB Computer Science Topic 2.1.1
Introduction to Computers
Introduction to Computers
Introduction to Computer Architecture
Chapter 5 Computer Organization
COMPUTER FUNDAMENTALS i
Presentation transcript:

© Jalal Kawash 2010 Introduction Peeking into Computer Science 1

© Jalal Kawash 2010Peeking into Computer Science Reading Assignment Mandatory: Chapter 1 Optional: None 2

Computers, Zeros, and Ones The big picture 3

© Jalal Kawash 2010Peeking into Computer Science Objectives At the end of this section, the student will be able to: 1. Name the 5 basic components of a computer & identify their functions 2. Explain how processor speed is measured 3. Understand Dual-Core architectures 4. Describe the operation of Hard disks and optical CDs 5. Describe the memory hierarchy 6. Understand how information is represented in a computer by 0s and 1s

© Jalal Kawash 2010Peeking into Computer Science Computers Computers are general purpose machines ◦Music/Movies ◦Communication ◦More complex operation 5

CPU Control Unit (CU) Arithmetic and Logic Unit (ALU) Registers Main Memory Hard Disk Other I/O devices bus

© Jalal Kawash 2010Peeking into Computer Science Central Processing Unit CPU is the brain of the computer Also called processor Has two components: ◦Arithmetic and Logic Unit (ALU)  Simple arithmetic and logic operations ◦Control Unit  Controls the operations of the rest of the machine Has a scratch pad ◦Collection of registers Connected to the rest of the system components CPU Control Unit (CU) Arithmetic and Logic Unit (ALU) Registers

© Jalal Kawash 2010Peeking into Computer Science The Bus 8 CPU Control Unit (CU) Arithmetic and Logic Unit (ALU) Registers Main Memory Hard Disk Other I/O devices bus

© Jalal Kawash 2010Peeking into Computer Science Signals No signal (0 bit) Signal (1 bit) Signal is absent An unlit lamp Represents a 0 Signal is present A lit lamp Represents a 1 9

© Jalal Kawash 2010Peeking into Computer Science Robot’s World 10

© Jalal Kawash 2010Peeking into Computer Science Robot’s World ooo1o1oo1 1ooo1o1oo1 1oo11o1oo1 1ooo1o1oo1 1ooo1oooo1 1oooooooo

© Jalal Kawash 2010Peeking into Computer Science Main Memory Random Access Memory Holds programs and Data for CPU Every thing the CPU operates on (executing a program, playing a song, working on a file) must be in RAM Volatile: do not hold data if power is lost Need non-volatile storage

© Jalal Kawash 2010Peeking into Computer Science Disks Non-volatile Storage Electro-magnetic signals that stay in the absence of power

© Jalal Kawash 2010Peeking into Computer Science Other Input/Output Devices Printer Keyboard Screen Mouse Etc …

© Jalal Kawash 2010Peeking into Computer Science Cache Memory Fast Memory that sits between main memory and CPU

© Jalal Kawash 2010Peeking into Computer Science CPU Operation

17 ALU A A+B B A B C Registers ALU input Registers Accumulator (ALU output register) CU signal to ADD Main Memory

© Jalal Kawash 2010Peeking into Computer Science Talking Gigahertz What does a 3.0 GHz CPU mean? CPU can perform about 3 billion micro- instructions per second

© Jalal Kawash 2010Peeking into Computer Science Dual Core? A Computer that contains two CPUs on the same chip

20 Main Memory Hard Disk Other I/O devices Cache Processor Chip CPU1 CU ALU Registers CPU2 CU ALU Registers

© Jalal Kawash 2010Peeking into Computer Science Storage Units Byte = 8 bits Kilobyte = 1024 bytes Megabyte = 1024 Kilobytes ◦1,048,576 bytes Gigabyte = 1024 Megabytes ◦1,073,741,824 bytes Terabyte = 1024 Gigabyte ◦1,099,511,627,776 bytes

© Jalal Kawash 2010Peeking into Computer Science Memory Hierarchy

© Jalal Kawash 2010Peeking into Computer Science Magnetic (Hard) Disk 23 spindle platter arm movement Read/write head

© Jalal Kawash 2010Peeking into Computer Science CD-ROMs Disk Label Protective Lacquer Layer Reflective Layer Dye Layer Plastic Layer 1.2 mm reflected laser beam pit A pit prevents a laser beam from being reflected

Information Coding Beyond images 25

© Jalal Kawash 2010Peeking into Computer Science Objectives At the end of this section, the student will be able to: 1. Understand how characters are represented by 0s and 1s 2. Understand the encoding and decoding process 3. Find the minimum number of bits needed to code character information

© Jalal Kawash 2010Peeking into Computer Science Fixed-Length Codes Symbols in a computer’s memory are stored as 0s and 1s Each symbol is given a fixed-length code ASCII codes: ◦A is ◦B is ◦C is ◦D is ◦E is ◦Etc.. 27

© Jalal Kawash 2010Peeking into Computer Science Fixed-Length Codes The Word ACE is stored in a computer as: ACE 28

© Jalal Kawash 2010Peeking into Computer Science More ASCII Codes 29

© Jalal Kawash 2010Peeking into Computer Science A Counting Problem If the alphabet has two letters only (say 0 and 1), how many one-letter words can be formed? Only two possibilities exist 0 1 So, two words 30

© Jalal Kawash 2010Peeking into Computer Science A Counting Problem Think of it this way: We have a box that can fit one ball only Balls have one of two colors How many distinct boxes can we produce? 31

© Jalal Kawash 2010Peeking into Computer Science A Counting Problem If the alphabet has two letters only (say 0 and 1), how many two-letter words can be formed? Bigger box Can hold 2 balls 32

© Jalal Kawash 2010Peeking into Computer Science A Counting Problem If the alphabet has two letters only (say 0 and 1), how many two-letter words can be formed? So, four words 33

© Jalal Kawash 2010Peeking into Computer Science A Counting Problem If the alphabet has two letters only (say 0 and 1), how many three-letter words can be formed? 000, 001, 010, 011, 100, 101, 110, 111 So, eight words 34

© Jalal Kawash 2010Peeking into Computer Science A Counting Problem If the alphabet has two letters only (say 0 and 1), how many n-letter words can be formed? 2 n words 35

© Jalal Kawash 2010Peeking into Computer Science A Counting Problem If the alphabet has β letters, how many n-letter words can be formed? β n words 36

© Jalal Kawash 2010Peeking into Computer Science Back to Coding Assume we have a file that contains data composed of 6 letters (symbols) only: A, I, C, D, E, and S (for space) ACE DICE AIDE CAID EAD DAICED … 37

© Jalal Kawash 2010Peeking into Computer Science Back to Coding Assume we have a file that contains data composed of 6 letters (symbols) only: A, I, C, D, E, and S (for space) ACESDICESAIDESCAID EADSDAICED … 38

© Jalal Kawash 2010Peeking into Computer Science Coding If the file has 1000 characters, how many bits (0s and 1s) are needed to code the file? 39

© Jalal Kawash 2010Peeking into Computer Science Coding The first question is How many symbols do we need to represent each character? The objective is to keep the size of the file as small as possible We have 6 characters (messages) and two alphabet symbols (0 and 1) 2 is not enough, since 2 2 is 4 40

© Jalal Kawash 2010Peeking into Computer Science 2 bits are not enough 00 for A 01 for S 10 for I 11 for E We cannot represent the rest C and D 3 works, since 2 3 is 8, so we can represent up to 8 characters and we only have 6 41

© Jalal Kawash 2010Peeking into Computer Science 3 bits are more than enough Say 000 for A 001 for S 010 for I 011 for E 100 for C 101 for D 110 not used 111 not used 42

© Jalal Kawash 2010Peeking into Computer Science Coding If the file has 1000 characters, how many bits (0s and 1s) are needed to code the file? Each character needs 3 bits Hence, we need 3x1000 = 3000 bits 43