Computer Organization

Slides:



Advertisements
Similar presentations
Computer Systems I’m ONLY a machine!.
Advertisements

COMPUTER ORGANIZATION CHAPTER SUBSYSTEM INTERCONNECTION.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
Chapter 5 Computing Components Nell Dale John Lewis.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
Chapter 5 Computing Components. 2 Chapter Goals Read an ad for a computer and understand the jargon List the components and their function in a von Neumann.
Chapter 5 Computer Organization ( 計算機組織 ). Distinguish between the three components of a computer hardware. List the functionality of each component.
5.1 Chaper 4 Central Processing Unit Foundations of Computer Science  Cengage Learning.
5 Computer Organization
TEE COURSE GRADE 10 MODULE 7 - PC HARDWARE Memory and Storage Devices
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Stuart Cunningham - Computer Platforms COMPUTER PLATFORMS Input, Output, and Storage & Introduction to Basic Computer Architecture Week 2.
1 HARDWARE INFRASTRUCTURE IS 340 BY CHANDRA S. AMARAVADI.
 Memory Memory  Types of Memory Types of Memory  Memory Representation Memory Representation  Random Access Memory Random Access Memory  Read Only.
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
Introduction to Computing: Lecture 4
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
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.
Hardware: The CPU & Storage Chapter 5 How to Buy a Multimedia Computer.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
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.
5-1 Computer Components Consider the following ad.
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.
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.1 This chapter focuses on key hardware layer components.
Chapter 5 Computer Organization. Distinguish between the three components of a computer hardware. List the functionality of each component. Understand.
1 Course Title: IT IN BUSINESS Course Instructor: ADEEL ANJUM Chapter No: 04 1 BY ADEEL ANJUM (MCS, CCNA,WEB DEVELOPER)
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Storage of Data Instructions and data are held in main memory which is divided into millions of addressable storage.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Chapter 5 Computing Components. 2 Computer Components Consider the following ad:
Computer Organization. The Five Hardware Units General purpose computers use the "Von Neumann" architecture Also referred to as "stored program" architecture.
©Brooks/Cole, 2003 Chapter 5 Computer Organization.
COMPURT ORGANAZTION CHAPTER 5. Computer Organization We can divide the parts that make up a computer into 3 subsystems : 1. Central processing unit (CPU).
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,
Overview von Neumann Architecture Computer component Computer function
Computer operation is of how the different parts of a computer system work together to perform a task.
Architectural Considerations A Review of Some Architectural Concepts.
Main Memory Main memory – –a collection of storage locations, –each with a unique identifier called the address. Word- –Data are transferred to and from.
CH (5) Computer Organization
Chapter 5 Computer Organization ( 計算機組織 ). Distinguish between the three components of a computer hardware. List the functionality of each component.
CPIT 201 King AbdulAziz University Faculty of Computing & Information Technology Information Technology Department CH (5) Computer Organization CPIT 201.
Computer Architecture Adapted from CS10051 originally by Professor: Johnnie Baker Computer Science Department Kent State University von Neuman model.
Chapter 2 content Basic organization of computer What is motherboard
Computer Architecture and Number Systems
Introduction to Computer Architecture
introduction to computer
Memory Units Memories store data in units from one to eight bits. The most common unit is the byte, which by definition is 8 bits. Computer memories are.
Basic Computer Organization
IT 0213: INTRODUCTION TO COMPTER ARCHITECTURE LECTURE 2
CHAPTER 4: THE SYSTEM UNIT.
Computer Hardware System
Chapter Three Computer Hardware Chapter 3- Computer Hardware.
Introduction to Computers
Secondary Storage Devices
Computer Organization
Chapter Three Computer Hardware Chapter 3- Computer Hardware.
Computer Organization
Introduction to Computers
Introduction to Computer Architecture
Chapter 2: Data Manipulation
Today’s agenda Hardware architecture and runtime system
Chapter 5: Computer Systems Organization
Standard Grade Revision
Chapter 2: Data Manipulation
Chapter 5 Computer Organization
Chapter 2: Data Manipulation
Presentation transcript:

Computer Organization Presented By: Mrs. Priyanka Choudhary, Programmer, Comp. Eng. Dept.

OBJECTIVES After reading this chapter, the reader should be able to: Distinguish between the three components of a computer hardware. List the functionality of each component. Understand memory addressing and calculate the number of bytes for a specified purpose. Distinguish between different types of memories. Understand how each input/output device works.

OBJECTIVES (continued) Understand the systems used to connect different components together. Understand the addressing system for input/output devices. Understand the program execution and machine cycles. Distinguish between programmed I/O, interrupt-driven I/O and direct memory access (DMA). Understand the two major architectures used to define the instruction sets of a computer: CISC and RISC.

Computer hardware (subsystems) Figure 5-1 Computer hardware (subsystems)

Figure 5-2 CPU

Central Processing Unit --Arithmetic logic unit Performs arithmetic and logical operations Arithmetic operation Unary: increment (+1) and decrement (-1) Binary: add, subtract, multiply, and divide Logical operation Unary: NOT Binary: AND, OR, XOR

Central Processing Unit --Registers Registers are fast storage locations that hold data temporarily. Data registers Input data and output data Instruction registers Program counter

Central Processing Unit --Control unit The control unit is like the part of the human brain that controls the operation of each part of the body. Controlling is achieved through wires (金屬線) that can be on (hot) or off (cold).

Main Memory kilobyte megabyte gigabyte terabyte petabyte exabyte Unit ------------ kilobyte megabyte gigabyte terabyte petabyte exabyte Exact Number of bytes ------------------------ 210 bytes 220 bytes 230 bytes 240 bytes 250 bytes 260 bytes Approximation ------------ 103 bytes 106 bytes 109 bytes 1012 bytes 1015 bytes 1018 bytes Table 5.1 Memory units

Main memory Address space: Figure 5-3 Main memory Address space: the total number of uniquely identifiable locations in memory

Memory addresses are defined using unsigned binary integers. Address as bit pattern Memory addresses are defined using unsigned binary integers.

Example 1 A computer has 32 MB (megabytes) of memory. How many bits are needed to address any single byte in memory? Solution The memory address space is 32 MB, or 225 (25 x 220). This means you need log2 225 or 25 bits, to address each byte.

Example 2 A computer has 128 MB of memory. Each word in this computer is 8 bytes. How many bits are needed to address any single word in memory? Solution The memory address space is 128 MB, which means 227. However, each word is 8 (23) bytes, which means that you have 224 words. This means you need log2 224 or 24 bits, to address each word.

Memory types-- RAM RAM: random access memory SRAM: static RAM flip-flop gats (正反器) No need to be refreshed Catch memory DRAM: dynamic RAM capacitors (電容) Need to be refreshed periodically Main memory

Memory types– ROM ROM: read-only memory PROM: programmable ROM Only written once EPROM: erasable PROM Use ultraviolet light (紫外光) to erase data EEPROM: electronically EPROM Can be erased using electronic impulses

Figure 5-4 Memory hierarchy

Figure 5-5 Cache memory

Catch memory Why is catch memory so efficient despite its small size? The answer is 80-20 rule. Most computers spend 80 percent of the time accessing only 20 percent of the data.

Input/Output devices Nonstorage devices Storage devices Keyboard and monitor Printer Storage devices Magnetic (磁性的) storage devices Optical (光學的) storage devices

Physical layout of a magnetic disk Figure 5-6 Physical layout of a magnetic disk

Surface organization of a disk Figure 5-7 Surface organization of a disk Intertrack gap Intersector gap

Magnetic Disk Surface organization Data access Performance Tracks and sectors Data access Random access, one sector a time Performance Rotational speed, seek time, and transfer time

Definitions Rotational speed Seek time Transfer time How fast the disk is spinning (旋轉) Seek time The time to move the read/write head to the desired track Transfer time The time to move data from the disk to the CPU/memory

Magnetic Tape Surface organization Data access Performance Nine tracks (8 bits for information and 1 bit for error detection) Data access Sequential access Performance Slower than a magnetic disk

Optical storage devices CD-ROM: compact disc (薄圓片) ROM Capacity: 650MB CD-R: compact disc recordable CD-RW: compact disc rewritable DVD: digital versatile (多種的)disc Capacity: 4.7GB – 17GB

DVD Differences between DVD and CD-ROM DVD: The pits are smaller DVD: The tracker are closer DVD: The beam is red laser DVD: uses one to two recording layers Single-sided or double-sided

DVD capacities single-sided, single-layer single-sided, dual-layer Feature --------------------------------- single-sided, single-layer single-sided, dual-layer double-sided, single-layer double-sided, dual-layer Capacity ------------ 4.7 GB 8.5 GB 9.4 GB 17 GB DVD uses MPEG for compression A single-sided single-layer DVD 133 minutes of video at high resolution

Connecting CPU and memory using three buses Figure 5-14 Connecting CPU and memory using three buses

Buses Data bus: Address bus: Control bus: The number of wires depends on the size of the word Address bus: The number of wires depends on the address space of memory Control bus: The number of wires depends on the total number of control commands a computer needs

Connecting I/O devices to the buses Figure 5-15 Connecting I/O devices to the buses

Controllers A controller can be a serial or parallel device. SCSI: small computer system interface Parallel interface FireWire: IEEE standard A high-speed serial interface (50MB/sec) USB: universal serial bys A serial controller (1.5 MB/sec – 500MB/sec (USB2.0))

Figure 5-16 SCSI controller

Figure 5-18 USB controller

Addressing I/O devices Isolated I/O Each input/output device has its own address. Memory-mapped I/O CPU treats each register in the input/output controller as a word in memory

Steps of a cycle

Machine cycle Fetch: Decode Execute To copy the next instruction into the instruction register in the CPU Decode Decode the instruction Execute Execute the instruction

An example Contents of memory and register before execution

Contents of memory and registers after each cycle

Contents of memory and registers after each cycle Figure 5-23.b Contents of memory and registers after each cycle

Contents of memory and registers after each cycle Figure 5-23.c Contents of memory and registers after each cycle

Contents of memory and registers after each cycle Figure 5-23.d Contents of memory and registers after each cycle

Input/Output operation Programmed I/O CPU waits for the I/O device Interrupt-driven I/O The device interrupts the CPU when it is ready Direct memory access (DMA) Use to transfer a large block of data CPU is idle for only a short time

Figure 5-24 Programmed I/O

Figure 5-25 Interrupt-driven I/O

DMA connection to the general bus Figure 5-26 DMA connection to the general bus

Figure 5-27 DMA input/output

Architectures CISC: complex instruction set computer Have a large set of instructions, including the complex ones Micro-operation, micro-memory, micro-programming i.e. Intel Pentium RISC: reduced instruction set computer Have a small set of instructions that do a minimum number of simple operations i.e. Apple PowerPC