Computer Architecture 2/26/01 Lecture #

Similar documents
Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

EE 3170 Microcontroller Applications

Microcomputer Architecture and Programming

A Review of Chapter 5 and. CSc 2010 Spring 2012 Instructor: Qian Hu

Computers and Microprocessors. Lecture 34 PHYS3360/AEP3630

Microprocessors/Microcontrollers

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

COSC 122 Computer Fluency. Computer Organization. Dr. Ramon Lawrence University of British Columbia Okanagan

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

Designing Computers. The Von Neumann Architecture. The Von Neumann Architecture. The Von Neumann Architecture

The Von Neumann Architecture. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

Computer Architecture (part 2)

CMPUT101 Introduction to Computing - Summer 2002

Chapter One. Introduction to Computer System

Computer Architecture

Introduction to Digital Logic

Lecture 01: Basic Structure of Computers

N.B. These pastpapers may rely on the knowledge gained from the previous chapters.

Unit 1. Chapter 3 Top Level View of Computer Function and Interconnection

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

General purpose registers These are memory units within the CPU designed to hold temporary data.

Q1. Describe C.P.U and its subunits with the help of diagram?

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit

Chapter 5: Computer Systems Organization. Invitation to Computer Science, C++ Version, Third Edition

Chapter 5: Computer Systems Organization

Information Science 1

Segment 1A. Introduction to Microcomputer and Microprocessor

Blog -

Computer Architecture and Assembly Language. Spring

Introduction to CPU architecture using the M6800 microprocessor

Computer Organization

EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER

CS 101, Mock Computer Architecture

Chapter Two. Hardware Basics: Inside the Box

THE MICROPROCESSOR Von Neumann s Architecture Model

Computer Systems. Binary Representation. Binary Representation. Logical Computation: Boolean Algebra

Machine Architecture. or what s in the box? Lectures 2 & 3. Prof Leslie Smith. ITNP23 - Autumn 2014 Lectures 2&3, Slide 1

machine cycle, the CPU: (a) Fetches an instruction, (b) Decodes the instruction, (c) Executes the instruction, and (d) Stores the result.

In 8086 Carry flag, Parity flag, Auxiliary carry flag, Zero flag, Overflow flag, Trace flag, Interrupt flag, Direction flag, and Sign flag.

Processing Unit CS206T

Memory General R0 Registers R1 R2. Input Register 1. Input Register 2. Program Counter. Instruction Register

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Computing Layers

CC312: Computer Organization

Chapter 4 The Von Neumann Model

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

Parallelism. Execution Cycle. Dual Bus Simple CPU. Pipelining COMP375 1

16.1. Unit 16. Computer Organization Design of a Simple Processor

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Lecture 2 Microcomputer Organization: Fig.1.1 Basic Components of Microcomputer

Computer Architecture Dr. Charles Kim Howard University

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

b. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:

Introduction to Computers - Chapter 4

TUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design.

Chapter 4 The Von Neumann Model

Computer Architecture

Summer 2003 Lecture 1 06/09/03

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control,

CPU Structure and Function


CMPUT101 Introduction to Computing - Summer 2002

THE MICROCOMPUTER SYSTEM CHAPTER - 2

Introduction to Computer Engineering. CS/ECE 252 Prof. Mark D. Hill Computer Sciences Department University of Wisconsin Madison

User. Application program. Interfaces. Operating system. Hardware

Three-box Model: These three boxes need interconnecting (usually done by wiring known as a bus. 1. Processor CPU e.g. Pentium 4 2.

FACTFILE: GCE DIGITAL TECHNOLOGY

COMPUTER ORGANISATION CHAPTER 1 BASIC STRUCTURE OF COMPUTERS

von Neumann Architecture Basic Computer System Early Computers Microprocessor Reading Assignment An Introduction to Computer Architecture

Basic Computer System. von Neumann Architecture. Reading Assignment. An Introduction to Computer Architecture. EEL 4744C: Microprocessor Applications

Computer Architecture and Organization (CS-507)

Class Notes. Dr.C.N.Zhang. Department of Computer Science. University of Regina. Regina, SK, Canada, S4S 0A2

Computer Organization

Computer Architecture

The Von Neumann Architecture Odds and Ends. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

PESIT Bangalore South Campus

Chapter 2 Lecture 1 Computer Systems Organization

Chapter 3. Top Level View of Computer Function and Interconnection. Yonsei University

Data Manipulation. Chih-Wei Tang ( 唐之瑋 ) Department of Communication Engineering National Central University JhongLi, Taiwan

COA. Prepared By: Dhaval R. Patel Page 1. Q.1 Define MBR.

Fundamentals of Programming Session 1

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

Lecture 19: Computers. Pay no attention to the man behind the curtain.

1. Fundamental Concepts

Hardware and Software - Revision Summary

1. Internal Architecture of 8085 Microprocessor

Computer Fundamentals

Unit objective. Unit Introduction UNIT - I. In this unit you will be introduced to :

CPU Structure and Function. Chapter 12, William Stallings Computer Organization and Architecture 7 th Edition

EC-801 Advanced Computer Architecture

UC Berkeley CS61C : Machine Structures

Register-Level Design

Computer Systems Organization

Processor design - MIPS

SYSTEM BUS AND MOCROPROCESSORS HISTORY

SAE5C Computer Organization and Architecture. Unit : I - V

Chapter 4 The Von Neumann Model

Mark II Aiken Relay Calculator

COMPUTER BASICS LECTURER: ATHENA TOUMBOURI

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

Micro-programmed Control Ch 17

Transcription:

Computer Architecture 2/26/01 Lecture #9 16.070 On a previous lecture, we discussed the software development process and in particular, the development of a software architecture Recall the output of the Conceive phase: functions, concept and high level partition which collectively are known as the architecture Today's lecture discusses the architecture of the hardware underlying the software Fesq, 2/26/01 1 16.070

Computer Architecture An overview of how computers are organized A digital computer consists of an interconnected system of processors, memories and input/output devices A digital computer consists of three basic components! Central Processing Unit - "brain" to coordinate activities! Memory Unit CPU Memory! Input/Output Devices Clock Generator Control Unit PC Arithmetic Logical Unit Accumulator Registers.. IR Data, Address and Control buses Contains computer instructions, storage for data, etc. Consists of locations indexed by addresses 1 2 3 100 101 102 I/O Data, Address and Control buses (I: keyboard, mouse, scanner O: printers, terminals, disks) Fesq, 2/26/01 2 16.070

Central Processing Unit The Central Processing Unit (CPU) is the "brain" of the computer CPU consists of! Control unit which fetches instructions from main memory and determines type! Arithmetic and logical unit (ALU) which executes instructions! Registers which are high-speed memory to store temporary results Function: Execute programs stored in main memory! Fetch instructions! Examine instructions -- decode! Execute instructions Fesq, 2/26/01 3 16.070

Registers Program Counter! Holds the address of the memory cell to be fetched!"points" to memory location of next instruction to be executed! After Fetch operation, program counter is incremented to point to the next instruction Instruction Register! Holds the instruction currently being executed Accumulator Register! Stores result of functions performed by arithmetic logic unit Fesq, 2/26/01 4 16.070

Memory Memory: part of the computer where programs and data are stored Memory consists of a number of sequential storage locations Each memory location is capable of storing one data element or one computer instruction Computer memory Memory location 0 Memory location 1 Memory location 2 Memory location 3 Fesq, 2/26/01 5 16.070

Memory Structure The basic unit of memory is the binary digit, called a bit 0 1 Number of bits per memory location is computer-dependant! IBM 370: 8 bits per cell! Dec PDP-8: 12 bits per cell! Honeywell 6180: 36 bits per cell! CDC Cyber: 60 bits per cell A memory location that is 8 bits wide is referred to as a byte 00000000 11111111 00101011 A memory location that is 16 bits wide is referred to as a word 0000000000000000 1111010100001111 Fesq, 2/26/01 6 16.070

Memory Addresses The memory location is the smallest addressable unit Each memory location has a unique address, consecutive locations have addresses differing by 1 For byte-sized memory locations 0 00001111 1 1 0000001 2 0 0000000 3 0 0000000 " 8 bits # Fesq, 2/26/01 7 16.070

Computer Instructions Store in Memory Computer instructions are made up of two parts! Operation Code, or op-code Specifies action to be performed by the CPU! Operand Specifies source and/or destination of the data acted on by the op-code E.g., ADD 2 op-code = ADD operand = 2 function = add 2 to the contents of the accumulator, and store result back into accumulator A computer instruction set is list of valid op-codes that a CPU can execute Fesq, 2/26/01 8 16.070

Memory Types Most computer systems have two types of memory! Main memory, which contains two kinds of memory RAM - Random Access Memory Used for reading/writing Contents are lost when power is removed ROM - Read Only Memory Contents of ROM not lost when computer is turned off Useful for storing "boot" program Can contain firmware - software permanently stored in hardware! Secondary storage Used to save programs and data normally stored in RAM Contents not lost when unit is turned off E.g., Floppy disk drive Fesq, 2/26/01 9 16.070

Input/Output Devices Computer I/O devices are often referred to as Peripherals Examples: disk drives, video monitors, printers, keyboards Two general classes of I/O interface! Serial interface port Transmits/Receives data one bit at a time Can transmit over long distances! Parallel interface port High speed data transfer Limited by cable length Fesq, 2/26/01 10 16.070

Timing Basic timing is controlled by a clock generator circuit Clock signal is used to synchronize all activities within the computer Clock determines how fast instructions can be fetched from memory and executed! 16 MHz! 64 MHz! 800 MHz - Pentium 3! Fesq, 2/26/01 11 16.070

Bus Architecture A bus is a collection of electronic signal lines all dedicated to a particular task The CPU, memory, and I/O are separate electronic modules that are interconnected by buses In a computer, there typically are three buses! Address Bus! Data Bus! Control Bus Fesq, 2/26/01 12 16.070

Data Bus The width of the data bus in bits is used to classify the processor! 8-bit processor has an 8-bit data bus! 16-bit processor has a 16-bit data bus (Intel 8086 processor) The width of the data bus determines how much data the processor can read or write in one memory or I/O cycle If width of data exceeds capacity of data bus, reading/writing requires more than one read/write cycle -- less efficient The data bus is a bi-directional line Fesq, 2/26/01 13 16.070

Address Bus The address bus is used to identify the location that the CPU will communicate with The address bus can identify a memory location or an I/O device, also called an I/O port For the 8086, the address bus is 20 bits wide, which allows for output to 2 20 unique addresses The address bus is an output line Fesq, 2/26/01 14 16.070

Control Bus The control bus identifies if the address on the address bus is for a memory location or for an I/O port The control bus identifies the direction of data flow on the data bus The CPU activates a control bus signal! MEMORY READ - read data from memory into the CPU! MEMORY WRITE - write data from the CPU to memory! I/O READ - read data from an input device into the CPU! I/O WRITE - write data from the CPU to an output device The control bus is an output line Fesq, 2/26/01 15 16.070

Instruction Execution The CPU executes instructions in the following series of steps 1. Fetch next instruction from memory (PC points to memory location) 2. Move instruction into instruction register 3. Change program counter to point to next instruction 4. Determine type of instruction just fetched 5. If instruction uses data in memory, determine where they are 6. Fetch data, if any, into internal CPU registers 7. Execute instruction 8. Store result in proper place 9. Go to step 1 and begin executing the following instruction Fesq, 2/26/01 16 16.070

Fetch and Execute Cycle Example To monitor fetch/execution cycle, compile C code to Assembly code Fragment of C code: x = 0; while (x <= 2) x = x + 1; /* end while */ Compiles into Assembly Code: Addr instruction comments 10 LOAD R1,0 Load 0 into register 1 11 STORE R1,X Store contents of register 1 into mem location for x 12 LOAD R2,2 Load 2 into register 2 13 TEST R1,R2 Compare contents of reg 1 with contents of reg 2 14 JGT 17 If contents of reg 1 greater than reg 2, jump to line 17 15 ADD X,1,R1 Add 1 to contents of x and store in register 1 16 BRANCH 11 Unconditionally branch to step 11 17 continuation of program Fesq, 2/26/01 17 16.070

Fetch and Execute Cycle Example Trace execution: PC IR R1 R2 CCR X step 1 step 2 step 3 step 4 step 5 step 6 step 7 step 8 step 9 step 10 Fesq, 2/26/01 18 16.070

Review Computer architecture consists of CPU, Memory, and I/O, interconnected via busses Computers operate on a fetch, examine, execute cycle For Wed. and Fri, read Sections C5.9-5.13 Lab sessions today and tomorrow In-class exam next Monday, 3/5/01! Covers material up to and including lecture #8 (2/23)! Covers material up to and including Problem Set #3! Closed book Fesq, 2/26/01 19 16.070