Computer Organization. and Instruction Execution. August 22



Similar documents
Central Processing Unit (CPU)

Learning Outcomes. Simple CPU Operation and Buses. Composition of a CPU. A simple CPU design

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Let s put together a Manual Processor

CHAPTER 7: The CPU and Memory

Computer-System Architecture

Central Processing Unit

Microprocessor & Assembly Language

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

The Central Processing Unit:

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

Chapter 2 Logic Gates and Introduction to Computer Architecture

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

CS101 Lecture 26: Low Level Programming. John Magee 30 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

The Bus (PCI and PCI-Express)

MICROPROCESSOR AND MICROCOMPUTER BASICS

MACHINE ARCHITECTURE & LANGUAGE

Communicating with devices

Block diagram of typical laptop/desktop

PROBLEMS. which was discussed in Section

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

Basic Computer Organization

LSN 2 Computer Processors

CHAPTER 4 MARIE: An Introduction to a Simple Computer

Computer Systems Structure Input/Output

CPU Organisation and Operation

Read this before starting!

(Refer Slide Time: 00:01:16 min)

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

Levels of Programming Languages. Gerald Penn CSC 324

Chapter 1: Introduction. What is an Operating System?

What's in a computer?

Pentium vs. Power PC Computer Architecture and PCI Bus Interface

TIMING DIAGRAM O 8085

The Motherboard Chapter #5

Chapter 13. PIC Family Microcontroller

1 PERSONAL COMPUTERS

Introduction to Operating Systems. Perspective of the Computer. System Software. Indiana University Chen Yu

COMPUTER ARCHITECTURE. Input/Output

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

on an system with an infinite number of processors. Calculate the speedup of

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Discovering Computers Living in a Digital World

EC 362 Problem Set #2

Computer organization

Building a computer. Electronic Numerical Integrator and Computer (ENIAC)

Technical Product Specifications Dell Dimension 2400 Created by: Scott Puckett

Have both hardware and software. Want to hide the details from the programmer (user).

Unit A451: Computer systems and programming. Section 2: Computing Hardware 1/5: Central Processing Unit

CISC, RISC, and DSP Microprocessors

Buffer Management 5. Buffer Management

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-12: ARM

Quiz for Chapter 6 Storage and Other I/O Topics 3.10

Computer Architecture

An Introduction to Computer Science and Computer Organization Comp 150 Fall 2008

An Introduction to High-Frequency Circuits and Signal Integrity

Hello, and welcome to this presentation of the STM32 SDMMC controller module. It covers the main features of the controller which is used to connect

Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

Chapter 3: Operating-System Structures. Common System Components

Addressing The problem. When & Where do we encounter Data? The concept of addressing data' in computations. The implications for our machine design(s)

TYPES OF COMPUTERS AND THEIR PARTS MULTIPLE CHOICE QUESTIONS

İSTANBUL AYDIN UNIVERSITY

Serial Communications

1. Memory technology & Hierarchy

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

Traditional IBM Mainframe Operating Principles

Lesson-16: Real time clock DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK

Lizy Kurian John Electrical and Computer Engineering Department, The University of Texas as Austin

Computer System: User s View. Computer System Components: High Level View. Input. Output. Computer. Computer System: Motherboard Level

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Types Of Operating Systems

Chapter 5 Busses, Ports and Connecting Peripherals

CHAPTER 6: Computer System Organisation 1. The Computer System's Primary Functions

Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Introduction To Computers: Hardware and Software

OVERVIEW OF MICROPROCESSORS

UMBC. ISA is the oldest of all these and today s computers still have a ISA bus interface. in form of an ISA slot (connection) on the main board.

1. Convert the following base 10 numbers into 8-bit 2 s complement notation 0, -1, -12

Data Cables. Schmitt TTL LABORATORY ELECTRONICS II

A3 Computer Architecture

Instruction Set Architecture. or How to talk to computers if you aren t in Star Trek

Chapter 2: Computer-System Structures. Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General System Architecture

Computer Organization and Components

Chapter 01: Introduction. Lesson 02 Evolution of Computers Part 2 First generation Computers

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

Input / Ouput devices. I/O Chapter 8. Goals & Constraints. Measures of Performance. Anatomy of a Disk Drive. Introduction - 8.1

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

Performance evaluation

21152 PCI-to-PCI Bridge

Chapter Introduction. Storage and Other I/O Topics. p. 570( 頁 585) Fig I/O devices can be characterized by. I/O bus connections

Transcription:

Computer Organization and Instruction Execution August 22 CSC201 Section 002 Fall, 2000

The Main Parts of a Computer CSC201 Section Copyright 2000, Douglas Reeves 2

I/O and Storage Devices (lots of devices, we'll discuss later) I/O devices talk to the CPU via an interface transmits device status, operation to perform, data to be transferred CSC201 Section Copyright 2000, Douglas Reeves 3

Buses A bus = wires connecting the parts together There are lots of buses in a computer system CSC201 Section Copyright 2000, Douglas Reeves 4

Properties of Buses How many wires are dedicated to transferring data? called the "width" of the data bus How fast the bus can transfer data? What control and status signals does the bus have? How many address lines does the bus have? CSC201 Section Copyright 2000, Douglas Reeves 5

An Example: the PCI Bus Main high-speed bus standardized in PCs Speed up to 66 MHz Data width up to 64 bits Up to 200 wires total (data + address + control) CSC201 Section Copyright 2000, Douglas Reeves 6

Main Memory Purpose is to store programs that are executing, and the data they need Speed: 1-5ns (fast memory), 25-100ns (slow memory) Compared with speed of a disk: a million times faster! But, about a thousand times more expensive plus, data is lost when power is removed CSC201 Section Copyright 2000, Douglas Reeves 7

Memory as Post Office Mailboxes There are a fixed number of boxes Every box has a number, or address Every box has the same, fixed size Boxes have varying contents CSC201 Section Copyright 2000, Douglas Reeves 8

The Unit of Addressability In x86 (and most other) architectures, each memory location stores one byte (8 bits) CSC201 Section Copyright 2000, Douglas Reeves 9

Memory Addresses and Size A memory address is specified with n bits this means can be at most 2^n memory locations nowadays, 32-bit addresses are common N 2^N 16 64K 24 16M 32 4G 48 1.8*10^14 64 2.8*10^19 CSC201 Section Copyright 2000, Douglas Reeves 10

The Memory Interface CSC201 Section Copyright 2000, Douglas Reeves 11

The Memory Read Operation The CPU outputs a memory address, then issues the Read command The memory looks up the data at the requested location, while the CPU waits The memory sends the data to the CPU CSC201 Section Copyright 2000, Douglas Reeves 12

The Memory Write Operation The CPU outputs a memory address, outputs the data, then issues the Write command The memory receives the data, stores it in the specified location CSC201 Section Copyright 2000, Douglas Reeves 13

Read Only Memory (ROM) Can read the contents, but not change them (easily) Useful for storing boot-strap routines, constant-valued parameters CSC201 Section Copyright 2000, Douglas Reeves 14

Words Most data types are bigger than one byte The "word size" of a computer = the size of general-purpose registers a word consists of consecutive bytes in memory "word address" = address of first byte of the word Operand sizes in the Pentium # of bits Called 8 Byte 16 Word 32 Doubleword 64 quadword CSC201 Section Copyright 2000, Douglas Reeves 15

Interpreting Memory Contents You can't look at the value and tell what it means; everything is a bit string! it's up to the program to interpret the contents of memory Example: 01101000 01100101 01111001 00100001 CSC201 Section Copyright 2000, Douglas Reeves 16

The Central Processing Unit, or Processor The "brain" of a computer executes program instructions, controls all the parts of the computer Consists of registers, the ALU (arithmetic logic unit), and the control unit CSC201 Section Copyright 2000, Douglas Reeves 17

The CPU (cont( cont.) Registers are temporary storage locations advantages: speed and efficiency The Arithmetic-Logic Unit (ALU) is where data is manipulated (add, AND, compare, multiply, etc.) The control unit determines the sequence and timing of everything the CPU does CSC201 Section Copyright 2000, Douglas Reeves 18

How Does an Instruction Get Executed? A special register contains the address of the instruction The CPU "fetches" the instruction from memory at that address The CPU "decodes" the instruction to figure out what to do The CPU "fetches" any data (operands) needed by the instruction, from memory or registers The CPU "executes" the operation specified by the instruction on this data The CPU "stores" any results into a register or memory CSC201 Section Copyright 2000, Douglas Reeves 19

The Instruction Cycle CSC201 Section Copyright 2000, Douglas Reeves 20

How Does a Complete Program Get Executed? The "special register" is initialized to point to the first instruction of the program As part of the instruction fetch cycle, the "special register" is updated to point to the next instruction When one instruction is finished, the cycle is begun all over again the CPU never quits; it is always executing something CSC201 Section Copyright 2000, Douglas Reeves 21

CSC201 Section Copyright 2000, Douglas Reeves 22

Clocks and Timing The actions of a CPU are synchronized by an external clock The speed with which the clock ticks determines how fast the CPU runs MHz = one million clock ticks / second GHz = one billion clock ticks / second CSC201 Section Copyright 2000, Douglas Reeves 23