Fall 2006 1 EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Computer Organization Lecture 14 Memory hierarchy, locality Memory.

Slides:



Advertisements
Similar presentations
MEMORY popo.
Advertisements

55:035 Computer Architecture and Organization Lecture 7 155:035 Computer Architecture and Organization.
Fall EE 333 Lillevik480f05-a2 University of Portland School of Engineering EE 333 Exam 2 November 10, 2005 Instructions 1.Print your name, student.
Fall EE 333 Lillevik 333f06-s3 University of Portland School of Engineering Computer Organization Final Exam Study Final Exam Tuesday, December.
Fall EE 333 Lillevik333f06-e2 University of Portland School of Engineering EE 333 Exam 2 November 9, 2006 Instructions 1.Print your name, student.
Fall EE 333 Lillevik333f06-a1 University of Portland School of Engineering EE 333 Exam 1 September 28, 2006 Instructions 1.Print your name, student.
Department of Computer Engineering
CENTRAL PROCESSING UNIT
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Chapter 9 Memory Basics Henry Hexmoor1. 2 Memory Definitions  Memory ─ A collection of storage cells together with the necessary circuits to transfer.
1 Foundations of Software Design Fall 2002 Marti Hearst Lecture 4: Operating Systems.
1 Lecture 16B Memories. 2 Memories in General Computers have mostly RAM ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
1 COMP 206: Computer Architecture and Implementation Montek Singh Mon, Oct 31, 2005 Topic: Memory Hierarchy Design (HP3 Ch. 5) (Caches, Main Memory and.
1 COMP 206: Computer Architecture and Implementation Montek Singh Mon., Nov. 3, 2003 Topic: Memory Hierarchy Design (HP3 Ch. 5) (Caches, Main Memory and.
Levels in Processor Design
1 Lecture 16B Memories. 2 Memories in General RAM - the predominant memory ROM (or equivalent) needed to boot ROM is in same class as Programmable Logic.
CS1104-8Memory1 CS1104: Computer Organisation Lecture 8: Memory
What’s on the Motherboard? The two main parts of the CPU are the control unit and the arithmetic logic unit. The control unit retrieves instructions from.
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
COMPONENTS OF THE SYSTEM UNIT
Processing Devices.
Lesson 3 — How a Computer Processes Data
Chapter 4 The System Unit: Processing and Memory Prepared by : Mrs. Sara salih.
Lecture#14. Last Lecture Summary Memory Address, size What memory stores OS, Application programs, Data, Instructions Types of Memory Non Volatile and.
Computer Processing of Data
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
Spring EE 437 Lillevik 437s06-l8 University of Portland School of Engineering Advanced Computer Architecture Lecture 8 Project 3: memory agent Programmed.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
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.
1 Embedded Systems Computer Architecture. Embedded Systems2 Memory Hierarchy Registers Cache RAM Disk L2 Cache Speed (faster) Cost (cheaper per-byte)
Memory Systems Embedded Systems Design and Implementation Witawas Srisa-an.
Fall EE 333 Lillevik 333f06-l7 University of Portland School of Engineering Computer Organization Lecture 7 ALU design MIPS data path.
1Copyright © Prentice Hall 2000 The Central Processing Unit Chapter 3 What Goes on Inside the Computer.
EEE-445 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output Cache Main Memory Secondary Memory (Disk)
Memory and Storage Dr. Rebhi S. Baraka
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.
Fall EE 333 Lillevik 333f06-l8 University of Portland School of Engineering Computer Organization Lecture 8 Detailed MIPS datapath Timing overview.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
+ CS 325: CS Hardware and Software Organization and Architecture Memory Organization.
Fall EE 333 Lillevik 333f06-l21 University of Portland School of Engineering Computer Organization Lecture 21 Subroutines, stack Interrupts, service.
Spring EE 437 Lillevik 437s06-l9 University of Portland School of Engineering Advanced Computer Architecture Lecture 9 DMA controller design.
Computer System Internal components - The processor - Main memory - I / O controllers - Buses External components (peripherals). These include: - keyboard.
Fall EE 333 Lillevik 333f06-l23 University of Portland School of Engineering Computer Organization Lecture 23 RAID Input/output design RS232 serial.
Fall EE 333 Lillevik 333f06-l13 University of Portland School of Engineering Computer Organization Lecture 13 Controller implementations Register.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
THE MICROPROCESSOR A microprocessor is a single chip of silicon that performs all of the essential functions of a computer central processor unit (CPU)
The Computer System.
Computer operation is of how the different parts of a computer system work together to perform a task.
Memory Characteristics Location Capacity Unit of transfer Access method Performance Physical type Physical characteristics Organisation.
Wnopp Memory device Introduction n Memory Cell n Memory Word n Byte n Capacity n Address n Read Operation n Write Operation n Access Time n Volatile.
Spring EE 437 Lillevik 437s06-l5 University of Portland School of Engineering Advanced Computer Architecture Lecture 5 Slave bus agent ROM example.
1 Computer Memory System Overview. Objectives  Discuss the overview of the memory elements of a computer  Describe the characteristics of the computer.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 22 Memory Definitions Memory ─ A collection of storage cells together with the necessary.
Fall EE 333 Lillevik 333f06-l22 University of Portland School of Engineering Computer Organization Lecture 22 Project 6 Hard disk drive Bus arbitration.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Overview of microcomputer structure and operation
Computers Are Your Future Eleventh Edition Chapter 2: Inside the System Unit Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall1.
Information Technology INT1001 Lecture 2 1. Computers Are Your Future Tenth Edition Chapter 6: Inside the System Unit Copyright © 2009 Pearson Education,
Main Memory Main memory – –a collection of storage locations, –each with a unique identifier called the address. Word- –Data are transferred to and from.
Fall EE 333 Lillevik 333f06-l16 University of Portland School of Engineering Computer Organization Lecture 16 Write-through, write-back cache Memory.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
The Central Processing Unit
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.
Chapter 5: Computer Systems Organization
Presentation transcript:

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Computer Organization Lecture 14 Memory hierarchy, locality Memory design

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Correction: machine instruction InstructionTypeOp rsrtrdimmed /adr functMachine (hex) add $0, $0, $1 R0x1010na0x00x1400 andi $0, $1, 10f I0xc01na0x10fna0xa90f sll $0, $1 I0x201na 0x2400 lw $0, 323 ($1) I0x410na0x323na0x4b23 beq $0, $1, 17a I0x601na0x17ana0x657a j a64 J0x7na 0xa64na0x7a64 Correction

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Any questions on Project 4? Two, 16-bit registers ($0, $1) Two read ports One write port Equal output Due: Nov. 3

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Major computer components Five classic computer components

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Computer components Input: receives information from external world Output: transmits information to external world Memory: holds programs and data Data path: physical route that carries info Control: coordinates overall flow of info

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Memory design goals Unlimited memory size –No upper bound on memory addresses –Not practical or possible: cost, implementation Infinite memory bandwidth –Zero latency memory accesses –Not practical or possible: cost, laws of physics Memory hierarchy can approximate goals

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Memory hierarchy Memory closest to CPU is most expensive (fast) but smallest On-chip On-board In-system

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Main and cache memory Each memory may contain a subset of the others Cache Main

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Storage hierarchy Information flows between layers Less costly Faster Directly accessed Indirectly accessed

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Principle of locality Programs access a relatively small portion of their address space at any instant of time Temporal locality: once memory is accessed, its likely to be accessed again (locality in time) Spatial locality: once a memory address is selected, its neighbors are likely to be selected (locality in space)

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Memory devices RAM: random access memory –Random access memory (versus sequential) –Read and write –Usually loose contents with power (volatile) ROM: read-only memory –Read only memory –Also random access –Usually non-volatile, or OS protects it

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Inputs –Address –Data in (RAM only) –Read/write control (RAM only) –Enable Outputs –Data out –Usually tri-state drivers (on & off, pull-ups) Memory components A D Q E R/W

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Tri-state drivers You may connect tri- state outputs together Must assure only one driver enabled at-a- time Common in memory designs, results in MUX function

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering General memory design A D Q E R/W A D Q E In 0 E 1 n Address Data R/W Qout (lower bits) (upper bits) decoder memory

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Memory design guide Bus lower addresses to all devices Use upper addresses and decoder for device enables (only one active component) Data bus and other control signals sent to all devices No read-write signal for ROM Bus outputs together because they are tri- stated

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering ROM design: 64 x 8 Use 32x8 First ROM Second ROM

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering ROM 64x8 trace First ROM selected Second ROM selected Float ROM file data is the address

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering ROM design: 64 x 16 ? Use 32x8

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering ROM 64x16 trace First ROMs selected Second ROMs selected Float

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Memory capacity and components c 00 c 0n c 01 c 10 c 1n c 11 c 20 c 2n c 21 c 30 c 3n c 31 c m0 c mn c m1 Greater length (bytes) Greater width (bits) m rows, n columns

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering Find the array of components? MemoryComponentLengthWidth 4K x 82K x 4 16M x 321M x 8 4G x 64500M x16

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering General memory design A D Q E R/W A D Q E In 0 E 1 n Address Data R/W Qout (lower bits) (upper bits) decoder memory

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering RAM design: 16x8 Use 16x4

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering RAM 16x8 trace Writing Reading

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering RAM design: 32x8 ? Use 16x4

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering RAM 32x8 trace Writing Reading

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering

Fall EE 333 Lillevik 333f06-l14 University of Portland School of Engineering ROM design: 64 x 16 ? Use 32x8