Advanced Parallel Architecture Lesson 4 bis. Annalisa Massini /2015

Similar documents
Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

Semiconductor Memory Types. Computer & Microprocessor Architecture HCA103. Memory Cell Operation. Semiconductor Memory.

William Stallings Computer Organization and Architecture 8 th Edition. Chapter 6 External Memory

Magnetic Disk. Optical. Magnetic Tape. RAID Removable. CD-ROM CD-Recordable (CD-R) CD-R/W DVD

Advanced Parallel Architecture Lesson 4. Annalisa Massini /2015

External Memory. Types of External Memory. Magnetic Disk. Optical. Magnetic Tape. RAID Removable. CD-ROM CD-Recordable (CD-R) CD-R/W DVD

Computer Organization. 8th Edition. Chapter 5 Internal Memory

William Stallings Computer Organization and Architecture 6 th Edition. Chapter 6 External Memory

William Stallings Computer Organization and Architecture 6th Edition. Chapter 5 Internal Memory

Chapter 5 Internal Memory

Organization. 5.1 Semiconductor Main Memory. William Stallings Computer Organization and Architecture 6th Edition

Memory and Disk Systems

Chapter 6 External Memory

Computer Organization ECE514. Chapter 5 Input/Output (9hrs)

Internal Memory. Computer Architecture. Outline. Memory Hierarchy. Semiconductor Memory Types. Copyright 2000 N. AYDIN. All rights reserved.

Input/Output Problems. External Devices. Input/Output Module. I/O Steps. I/O Module Function Computer Architecture

External Memory. Computer Architecture. Magnetic Disk. Outline. Data Organization and Formatting. Write and Read Mechanisms

Chapter 4 Main Memory

William Stallings Computer Organization and Architecture 8th Edition. Chapter 5 Internal Memory

COSC 243. Memory and Storage Systems. Lecture 10 Memory and Storage Systems. COSC 243 (Computer Architecture)

Generic Model of I/O Module Interface to CPU and Memory Interface to one or more peripherals

Basic Organization Memory Cell Operation. CSCI 4717 Computer Architecture. ROM Uses. Random Access Memory. Semiconductor Memory Types

Chapter 5. Internal Memory. Yonsei University

Contents. Memory System Overview Cache Memory. Internal Memory. Virtual Memory. Memory Hierarchy. Registers In CPU Internal or Main memory

Computer Organization and Assembly Language (CS-506)

Organisasi Sistem Komputer

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

CS 320 February 2, 2018 Ch 5 Memory

(Advanced) Computer Organization & Architechture. Prof. Dr. Hasan Hüseyin BALIK (5 th Week)

Memory Pearson Education, Inc., Hoboken, NJ. All rights reserved.

UNIT 2 Data Center Environment

CS 261 Fall Mike Lam, Professor. Memory

MEMORY. Computer memory refers to the hardware device that are used to store and access data or programs on a temporary or permanent basis.

CO212 Lecture 6: Memory Organization III

Concept of Memory. The memory of computer is broadly categories into two categories:

k -bit address bus n-bit data bus Control lines ( R W, MFC, etc.)

Computer Organization

UNIT-V MEMORY ORGANIZATION

Module 5a: Introduction To Memory System (MAIN MEMORY)

1.1 Bits and Bit Patterns. Boolean Operations. Figure 2.1 CPU and main memory connected via a bus. CS11102 Introduction to Computer Science

CS429: Computer Organization and Architecture

COMPUTER ARCHITECTURE

Computer Organization

CS429: Computer Organization and Architecture

CS 33. Memory Hierarchy I. CS33 Intro to Computer Systems XVI 1 Copyright 2016 Thomas W. Doeppner. All rights reserved.

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

Computer Organization

5 Computer Organization

Computers in Business: Concepts in Hardware and Software

Lecture 18: Memory Systems. Spring 2018 Jason Tang

A track on a magnetic disk is a concentric rings where data is stored.

CS24: INTRODUCTION TO COMPUTING SYSTEMS. Spring 2017 Lecture 13

Memory classification:- Topics covered:- types,organization and working

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Overview. EE 4504 Computer Organization. Historically, the limiting factor in a computer s performance has been memory access time

External Memory. Patrick Happ Raul Queiroz Feitosa. Parts of these slides are from the support material provided by W. Stallings

Storage Technologies and the Memory Hierarchy


COMP3221: Microprocessors and. and Embedded Systems. Overview. Lecture 23: Memory Systems (I)

Computer System Architecture

EXTERNAL MEMORY (Part 1)

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

Input output and memory devices

FUNCTIONS OF COMPONENTS OF A PERSONAL COMPUTER

CS 261 Fall Mike Lam, Professor. Memory

I/O CANNOT BE IGNORED

CSC1201 Computer Applications. Budditha Hettige Department of Computer Science

Digital Design Laboratory Lecture 6 I/O

Computer Organization and Structure. Bing-Yu Chen National Taiwan University

chapter 8 The Memory System Chapter Objectives

CENG3420 Lecture 08: Memory Organization

PRATHYUSHA INSTITUTE OF TECHNOLOGY AND MANAGEMENT

Chapter One. Introduction to Computer System

BTEC Level 3 Unit 2. Computer Components

Large and Fast: Exploiting Memory Hierarchy

Memory Study Material

COMPUTER ARCHITECTURE AND ORGANIZATION

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

Computer Architecture and System Software Lecture 08: Assembly Language Programming + Memory Hierarchy

ECE 341. Lecture # 16

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah

Chapter 6 - External Memory

UC Santa Barbara. Operating Systems. Christopher Kruegel Department of Computer Science UC Santa Barbara

COS Computer Organization. Review Questions Ref. Chap Title Page Introduction Computer Evolution & Performance 4

MEMORY BHARAT SCHOOL OF BANKING- VELLORE

Semiconductor Memories: RAMs and ROMs

Read and Write Cycles

SAE5C Computer Organization and Architecture. Unit : I - V

Foundations of Computer Systems

Where Have We Been? Ch. 6 Memory Technology

Sir Sadiq s computer notes for class IX. Chapter no 4. Storage Devices

Computer Organization and Technology External Memory

a) Memory management unit b) CPU c) PCI d) None of the mentioned

FACTFILE: GCE DIGITAL TECHNOLOGY

Random-Access Memory (RAM) CS429: Computer Organization and Architecture. SRAM and DRAM. Flash / RAM Summary. Storage Technologies

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 26, SPRING 2013

Instruction Register. Instruction Decoder. Control Unit (Combinational Circuit) Control Signals (These signals go to register) The bus and the ALU

Introduction Disks RAID Tertiary storage. Mass Storage. CMSC 420, York College. November 21, 2006

Unit 5: Memory Organizations

UNIT:4 MEMORY ORGANIZATION

Transcription:

Advanced Parallel Architecture Lesson 4 bis Annalisa Massini - 2014/2015

Internal Memory

RAM Many memory types are random access individual words of memory are directly accessed through wired-in addressing logic The most common is referred to as random-access memory (RAM) misuse of the term, because also other types of memory are random access One distinguishing characteristic of RAM is that it is possible both to read data from the memory and to write new data into the memory easily and rapidly Both the reading and writing are accomplished through the use of electrical signals 3

Semiconductor Memory Types Memory Type Category Erasure Write Mechanism Volatility Random-access memory (RAM) Read-write memory Electrically, bytelevel Electrically Volatile Read-only memory (ROM) Programmable ROM (PROM) Read-only memory Not possible Masks Erasable PROM (EPROM) UV light, chiplevel Nonvolatile Electrically Erasable PROM (EEPROM) Read-mostly memory Electrically, bytelevel Electrically Flash memory Electrically, blocklevel 4

RAM RAM technology is divided into two technologies: Dynamic Static A dynamic RAM (DRAM) is made with cells that store data as charge on capacitors The presence or absence of charge in a capacitor is interpreted as a binary 1 or 0 Because capacitors have a natural tendency to discharge, dynamic RAMs require periodic charge refreshing to maintain data storage the term dynamic 5

RAM RAM technology is divided into two technologies: Dynamic Static A static RAM (SRAM) is a digital device that uses the same logic elements used in the processor Binary values are stored using traditional flip-flop logicgate configurations A static RAM will hold its data as long as power is supplied to it 6

SRAM v DRAM Both volatile Power needed to preserve data Dynamic cell Simpler to build, smaller More dense Less expensive Needs refresh circuitry Larger memory units Static Faster Cache (both on and off chip) 7

Example of chip organization A 16Mbit chip can be organised as: 1M of 16 bit words 1-bit-per-chip that is 16 lots of 1Mbit chip with bit 1 of each word in chip 1 and so on For example a 16Mbit chip can be organised as a 2048 x 2048 x 4bit array Reduces number of address pins Multiplex row address and column address 11 pins to address (2 11 =2048) Adding one more pin doubles range of values so x4 capacity 8

Typical 16 Mb DRAM (4M x 4) 11 address signals are passed to the chip as row address, then other 11 address signals as column address accompanied by control signals: row address select (RAS) and column address select (CAS) 9

Example How a memory module consisting of 256K 8-bit words could be organized 256K words 18-bit address supplied to the module from some external source (e.g., the address lines of a bus to which the module is attached) The address is presented to 8 256K 1-bit chips, each of which provides the input/output of 1 bit 10

1MByte Module Organisation Possible organization of a memory consisting of 1M word by 8 bits per word Four columns of chips, each column containing 256K words arranged as before 11

Interleaved Memory Main memory is composed of a collection of DRAM memory chips that can be grouped together to form a memory bank It is possible to organize the memory banks in a way known as interleaved memory Each bank is independently able to service a memory read or write request a system with K banks can service K requests simultaneously, increasing memory read or write rates by a factor of K If consecutive words of memory are stored in different banks, then the transfer of a block is speeded up 12

Advanced DRAM Organization Basic DRAM same since first RAM chips Enhanced DRAM Contains small SRAM as well SRAM holds last line read (c.f. Cache!) Cache DRAM Larger SRAM component Use as cache or serial buffer 13

Synchronous DRAM (SDRAM) Access is synchronized with an external clock Address is presented to RAM RAM finds data (CPU waits in conventional DRAM) Since SDRAM moves data in time with system clock, CPU knows when data will be ready CPU does not have to wait, it can do something else Burst mode allows SDRAM to set up stream of data and fire it out in block DDR-SDRAM sends data twice per clock cycle (leading & trailing edge) 14

SDRAM 15

DDR SDRAM SDRAM can only send data once per clock Double-data-rate SDRAM can send data twice per clock cycle Rising edge and falling edge 16

Solid-state drive (SSD) A solid-state drive is a solid-state storage device that uses integrated circuit assemblies as memory to store data persistently SSD technology primarily uses electronic interfaces compatible with traditional block input/output (I/O) hard disk drives (HDDs New I/O interfaces (like SATA Express) have been designed to address specific requirements of the SSD technology SSDs have no moving mechanical components This distinguishes them from traditional electromechanical magnetic disks such as hard disk drives (HDDs) or floppy disks, which contain spinning disks and ovable read/write heads 17

Solid-state drive (SSD) Compared with electromechanical disks, SSDs: Are more resistant to physical shock Are run silently Have lower access time Have lower latency Are more expensive per unit of storage than HDDs (even if price has continued to decline) 18

Solid-state drive (SSD) Since 2009 NAND flash non-volatile memory Every SSD includes a controller: that incorporates the electronics that bridge the NAND memory components to the host computer embedded processor that executes firmware-level code important factor of SSD performance 19

Read Only Memory (ROM) Permanent storage Nonvolatile Microprogramming Library subroutines Systems programs (BIOS) Function tables 20

Types of ROM Written during manufacture Very expensive for small runs Programmable (once) PROM Needs special equipment to program Read mostly Erasable Programmable (EPROM) Erased by UV Electrically Erasable (EEPROM) Takes much longer to write than read Flash memory Erase whole memory electrically 21

External Memory

Types of External Memory Magnetic Disk RAID Removable Optical CD-ROM CD-Recordable (CD-R) CD-R/W DVD Magnetic Tape 23

Magnetic Disk Disk substrate coated with magnetizable material Substrate used to be aluminium Now glass Improved surface uniformity Increases reliability Reduction in surface defects Reduced read/write errors Lower flight heights (See later) Better stiffness Better shock/damage resistance 24

Read and Write Mechanisms Recording & retrieval via conductive coil called a head May be single read/write head or separate ones During read/write, head is stationary, platter rotates Write Current through coil produces magnetic field Pulses sent to head Magnetic pattern recorded on surface below Higher storage density and speed 25

Read and Write Mechanisms Read (traditional) Magnetic field moving relative to coil produces current Coil is the same for read and write Read (contemporary) Separate read head, close to write head Partially shielded magneto resistive (MR) sensor Electrical resistance depends on direction of magnetic field High frequency operation Higher storage density and speed 26

Data Organization and Formatting Concentric rings or tracks Gaps between tracks Reduce gap to increase capacity Same number of bits per track (variable packing density) Constant angular velocity Tracks divided into sectors Minimum block size is one sector May have more than one sector per block 27

Disk Velocity Bit near centre of rotating disk passes fixed point slower than bit on outside of disk Increase spacing between bits in different tracks Rotate disk at constant angular velocity (CAV) Gives pie shaped sectors and concentric tracks Individual tracks and sectors addressable Move head to given track and wait for given sector Waste of space on outer tracks Lower data density Can use zones to increase capacity Each zone has fixed bits per track More complex circuitry 28

Disk Layout Methods Diagram Must be able to identify start of track and sector Format disk (Additional information not available to user) 29

Multiple Platter One head per side Heads are joined and aligned Aligned tracks on each platter form cylinders Data is striped by cylinder reduces head movement Increases speed (transfer rate) 30

Optical Storage CD-ROM Originally for audio 650Mbytes giving over 70 minutes audio Polycarbonate coated with highly reflective coat, usually aluminium Data stored as pits Read by reflecting laser Constant packing density Constant linear velocity 31

CD Operation 32

Other Optical Storage CD-Recordable (CD-R) WORM Now affordable Compatible with CD-ROM drives CD-RW Erasable Getting cheaper Mostly CD-ROM drive compatible Phase change Material has two different reflectivities in different phase states 33

DVD and High Definition Optical Disks DVD - Digital Versatile Disk Multi-layer with very high capacity (4.7G per layer) High Definition Optical Disk Much higher capacity than DVD Shorter wavelength laser (Blue-violet range) Smaller pits HD-DVD 15GB single side single layer Blue-ray Data layer closer to laser (Tighter focus, less distortion, smaller pits) 25GB on single layer 34

Optical Memory Characteristics 35

Magnetic Tape Serial access Slow Very cheap Backup and archive Linear Tape-Open (LTO) Tape Drives Developed late 1990s Open source alternative to proprietary tape systems 36

Input Output

Input/Output Problems Input/Output Problems Wide variety of peripherals Delivering different amounts of data At different speeds In different formats All slower than CPU and RAM Need I/O modules Input/Output module Interface to CPU and Memory Interface to one or more peripherals 38

Generic Model of I/O Module 39

External Devices Human readable Screen, printer, keyboard Machine readable Monitoring and control Communication Modem Network Interface Card (NIC) 40

External Device Block Diagram 41

I/O Module Function Control & Timing CPU Communication Device Communication Data Buffering Error Detection 42

I/O Steps CPU checks I/O module device status I/O module returns status If ready, CPU requests data transfer I/O module gets data from device I/O module transfers data to CPU Variations for output, DMA, etc. 43

I/O Module Diagram 44

I/O Module Decisions Hide or reveal device properties to CPU Support multiple or single device Control device functions or leave for CPU Also O/S decisions e.g. Unix treats everything it can as a file 45

Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA) 46

Three Techniques for Input of a Block of Data 47

Programmed I/O CPU has direct control over I/O Sensing status Read/write commands Transferring data CPU waits for I/O module to complete operation Wastes CPU time 48

Programmed I/O - detail CPU requests I/O operation I/O module performs operation I/O module sets status bits CPU checks status bits periodically I/O module does not inform CPU directly I/O module does not interrupt CPU CPU may wait or come back later 49

I/O Commands CPU issues address Identifies module (& device if >1 per module) CPU issues command Control - telling module what to do e.g. spin up disk Test - check status e.g. power? Error? Read/Write Module transfers data via buffer from/to device 50

Addressing I/O Devices Under programmed I/O data transfer is very like memory access (CPU viewpoint) Each device given unique identifier CPU commands contain identifier (address) 51

I/O Mapping Memory mapped I/O Devices and memory share an address space I/O looks just like memory read/write No special commands for I/O Large selection of memory access commands available Isolated I/O Separate address spaces Need I/O or memory select lines Special commands for I/O Limited set 52

Interrupt Driven I/O Overcomes CPU waiting No repeated CPU checking of device I/O module interrupts when ready 53

Interrupt Driven I/O - Basic Operation CPU issues read command I/O module gets data from peripheral whilst CPU does other work I/O module interrupts CPU CPU requests data I/O module transfers data 54

Simple Interrupt Processing 55

CPU Viewpoint Issue read command Do other work Check for interrupt at end of each instruction cycle If interrupted:- Save context (registers) Process interrupt Fetch data & store See Operating Systems notes 56

Changes in Memory and Registers for an Interrupt 57

Design Issues How do you identify the module issuing the interrupt? How do you deal with multiple interrupts? i.e. an interrupt handler being interrupted 58

Identifying Interrupting Module Different line for each module PC Limits number of devices Software poll CPU asks each module in turn Slow 59

Identifying Interrupting Module Daisy Chain or Hardware poll Interrupt Acknowledge sent down a chain Module responsible places vector on bus CPU uses vector to identify handler routine Bus Master Module must claim the bus before it can raise interrupt e.g. PCI & SCSI 60

Multiple Interrupts Each interrupt line has a priority Higher priority lines can interrupt lower priority lines If bus mastering only current master can interrupt 61

Direct Memory Access Interrupt driven and programmed I/O require active CPU intervention Transfer rate is limited CPU is tied up DMA is the answer Additional Module (hardware) on bus DMA controller takes over from CPU for I/O 62

Typical DMA Module Diagram 63

DMA Operation CPU tells DMA controller: Read/Write Device address Starting address of memory block for data Amount of data to be transferred CPU carries on with other work DMA controller deals with transfer DMA controller sends interrupt when finished 64

DMA Transfer - Cycle Stealing DMA controller takes over bus for a cycle Transfer of one word of data Not an interrupt CPU does not switch context CPU suspended just before it accesses bus i.e. before an operand or data fetch or a data write Slows down CPU but not as much as CPU doing transfer 65

DMA and Interrupt Breakpoints During an Instruction Cycle 66

DMA Configurations (1) Single Bus, Detached DMA controller Each transfer uses bus twice I/O to DMA then DMA to memory CPU is suspended twice 67

DMA Configurations (2) Single Bus, Integrated DMA controller Controller may support >1 device Each transfer uses bus once DMA to memory CPU is suspended once 68

DMA Configurations (3) Separate I/O Bus Bus supports all DMA enabled devices Each transfer uses bus once DMA to memory CPU is suspended once 69

I/O Channels I/O devices getting more sophisticated e.g. 3D graphics cards CPU instructs I/O controller to do transfer I/O controller does entire transfer Improves speed Takes load off CPU Dedicated processor is faster 70

I/O Channel Architecture 71