COMP3221 lec31-mem-bus-I.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lectures 31: Memory and Bus Organisation - I

Slides:



Advertisements
Similar presentations
COMP3221 lec29-io-examples-I.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lectures 29: I/O Interfacing Examples - I
Advertisements

Main MemoryCS510 Computer ArchitecturesLecture Lecture 15 Main Memory.
Parul Polytechnic Institute
Chapter 5 Internal Memory
Prith Banerjee ECE C03 Advanced Digital Design Spring 1998
5-1 Memory System. Logical Memory Map. Each location size is one byte (Byte Addressable) Logical Memory Map. Each location size is one byte (Byte Addressable)
COEN 180 DRAM. Dynamic Random Access Memory Dynamic: Periodically refresh information in a bit cell. Else it is lost. Small footprint: transistor + capacitor.
COMP3221: Microprocessors and Embedded Systems Lecture 17: Computer Buses and Parallel Input/Output (I) Lecturer: Hui.
1 DIGITAL DESIGN I DR. M. MAROUF MEMORY Read-only memories Static read/write memories Dynamic read/write memories Author: John Wakerly (CHAPTER 10.1 to.
The 8085 Microprocessor Architecture
The 8085 Microprocessor Architecture. Contents The 8085 and its Buses. The address and data bus ALU Flag Register Machine cycle Memory Interfacing The.
CS-334: Computer Architecture
The ARM7TDMI Hardware Architecture
Modified from notes by Saeid Nooshabadi COMP3221: Microprocessors and Embedded Systems Lecture 25: Cache - I Lecturer:
CS.305 Computer Architecture Memory: Structures Adapted from Computer Organization and Design, Patterson & Hennessy, © 2005, and from slides kindly made.
Modified from notes by Saeid Nooshabadi
COMP3221 lec33-Cache-I.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lectures 12: Cache Memory - I
Elec2041 lec-11-mem-I.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lecture 11: Memory Access - I
Memory Hierarchy.1 Review: Major Components of a Computer Processor Control Datapath Memory Devices Input Output.
ENEE350 Ankur Srivastava University of Maryland, College Park Based on Slides from Mary Jane Irwin ( )
University College Cork IRELAND Hardware Concepts An understanding of computer hardware is a vital prerequisite for the study of operating systems.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
CS 151 Digital Systems Design Lecture 30 Random Access Memory (RAM)
COMP3221 lec28-exception-II.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lectures 28: Exceptions & Interrupts - II
COMP3221 lec27-exception-I.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lectures 27: Exceptions & Interrupts - I
1 EE365 Read-only memories Static read/write memories Dynamic read/write memories.
Basic Computer Organization CH-4 Richard Gomez 6/14/01 Computer Science Quote: John Von Neumann If people do not believe that mathematics is simple, it.
COMP3221 lec31-mem-bus-II.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lectures 32: Memory and Bus Organisation - II
Overview Booth’s Algorithm revisited Computer Internal Memory Cache memory.
Prardiva Mangilipally
Microcomputer & Interfacing Lecture 2
Hardware Overview Net+ARM – Well Suited for Embedded Ethernet
ARM Processor Architecture
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Computer Processing of Data
Introduction to Computing: Lecture 4
CPE232 Memory Hierarchy1 CPE 232 Computer Organization Spring 2006 Memory Hierarchy Dr. Gheith Abandah [Adapted from the slides of Professor Mary Irwin.
CSIE30300 Computer Architecture Unit 07: Main Memory Hsin-Chou Chi [Adapted from material by and
Survey of Existing Memory Devices Renee Gayle M. Chua.
Samsung ARM S3C4510B Product overview System manager
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
NS7520.
Lecture 13 Main Memory Computer Architecture COE 501.
Main Memory CS448.
AT91 Memory Interface. 2 Features –Up to 8 programmable chip select lines –Remap Command allows dynamic exception vectors –Glue-less for both 8-bit and.
80386DX functional Block Diagram PIN Description Register set Flags Physical address space Data types.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
Different Microprocessors Tamanna Haque Nipa Lecturer Dept. of Computer Science Stamford University Bangladesh.
COMP541 Memories II: DRAMs
Capability of processor determine the capability of the computer system. Therefore, processor is the key element or heart of a computer system. Other.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
CS35101 Computer Architecture Spring 2006 Lecture 18: Memory Hierarchy Paul Durand ( ) [Adapted from M Irwin (
COMP 3221: Microprocessors and Embedded Systems Lectures 27: Cache Memory - III Lecturer: Hui Wu Session 2, 2005 Modified.
Operating Systems (CS 340 D)
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
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
Subject Name: Embedded system Design Subject Code: 10EC74
Introduction to Computing
May 2006 Saeid Nooshabadi ELEC2041 Microprocessors and Interfacing Lectures 30: Memory and Bus Organisation - I
Chapter 4 Introduction to Computer Organization
Modified from notes by Saeid Nooshabadi
Presentation transcript:

COMP3221 lec31-mem-bus-I.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lectures 31: Memory and Bus Organisation - I October, 2003 Saeid Nooshabadi

COMP3221 lec31-mem-bus-I.2 Saeid Nooshabadi Overview °Memory Interfacing Memory Type Memory Decoding D-RAM Access Making DRAM Access fast

COMP3221 lec31-mem-bus-I.3 Saeid Nooshabadi Review: Buses in a PC: Connect a few devices CPU Memory bus Memory SCSI: External I/O bus (1 to 15 disks) SCSI Interface Ethernet Interface Ethernet Local Area Network °Data rates Memory: 133 MHz, 8 bytes  1064 MB/s (peak) PCI: 33 MHz, 8 bytes wide  264 MB/s (peak) SCSI: “Ultra3” (80 MHz), “Wide” (2 bytes)  160 MB/s (peak) Ethernet: 12.5 MB/s (peak) PCI Interface PCI: Internal (Backplane) I/O bus

COMP3221 lec31-mem-bus-I.4 Saeid Nooshabadi Review: Computers with Memory Mapped I/O I/O devices Accessed like memory

COMP3221 lec31-mem-bus-I.5 Saeid Nooshabadi Big Picture: A System on a Chip °Integration of Core Processor and many sub- system micro- cells ARM7TDMI core Cache RAM Embedded Co- Processors External Mem Interface Low bandwidth I/O devices Timers I/O ports

COMP3221 lec31-mem-bus-I.6 Saeid Nooshabadi ARM System Architecture Need a Mechanism to access various memory units and I/O devices, uniquely, to avoid access conflicts

COMP3221 lec31-mem-bus-I.7 Saeid Nooshabadi ARM System Architecture with Multiple Masters Need a Mechanism to allow various Processing units to access the Memory Bus without causing conflict

COMP3221 lec31-mem-bus-I.8 Saeid Nooshabadi ARM Core Interface Signals Clock control Memory Interface

COMP3221 lec31-mem-bus-I.9 Saeid Nooshabadi ARM Core Memory Interface Signals °Internal clock is mclk AND wait °32 bit address A[31:0] °32 Bi-directional Data D[31:0] °Separate Data in and out Din[31:0] & Dout[31:0] °Bidirectional Data bus D[31:0] °nmreq and seq for requesting memory access °nr/w for read/ write indication °mas[1:0] for data size identification: word 10, half- word 01 and byte 00. °All activities controlled by mclk.

COMP3221 lec31-mem-bus-I.10 Saeid Nooshabadi Simple Memory Interface 4 SRAMs write enabled separately Read enabled together 4 ROMs No write enable Read enabled together SRAM Size: 2 n x 32 ROM Size: 2 m x 32

COMP3221 lec31-mem-bus-I.11 Saeid Nooshabadi Simple Memory Decoder Control °Controls the Activation of RAM and ROM °a[31]: 0  ROM a[31]: 1  RAM °It controls the byte write enables during write mas[1:0]: 00 Byte, 01 H-word, 10 Word °It ensures that data is ready before processor continues.

COMP3221 lec31-mem-bus-I.12 Saeid Nooshabadi SRAM/ROM Memory Timing °Address should be stable during the falling edge °SRAM is fast, ROM is slow ROM needs more time. Slows the system Solutions? -Slow down the MCLK clock; loose performance -Use Wait states; more complex control mclk A[31:0] RAMOe BAC

COMP3221 lec31-mem-bus-I.13 Saeid Nooshabadi ROM Wait Control State Transition °ROM access requires 4 clock cycles °RAM access is fast ROMRAM reset fast ROM2ROM3ROM1

COMP3221 lec31-mem-bus-I.14 Saeid Nooshabadi Timing Diagram for for ROM Wait States mclk A[31:0] wait ROM0e fastROM1ROM2ROM3

COMP3221 lec31-mem-bus-I.15 Saeid Nooshabadi Improving Performance °Processor internal operations cycles do not need access to memory Mem. Access is much slower than internal operations. Use wait states for mem Accesses °mreq = 1 internal operation °mreg = 0 memory access ROM reset RAM mreq ROM2ROM3ROM1 de code Internal Operations can run at max speed

COMP3221 lec31-mem-bus-I.16 Saeid Nooshabadi DRAM Interface °Dynamic RAM Features: much cheaper than SRAM more capacity than SRAM slower than SRAM °Widely used in Computer Systems

COMP3221 lec31-mem-bus-I.17 Saeid Nooshabadi DRAM Organisation °Two dimensional matrix °Bits are accesses by: Accepting row and column addresses down the same multiplexed address bus First Row address is presented and latched by ras signal Next column address is presented and latched by cas signal

COMP3221 lec31-mem-bus-I.18 Saeid Nooshabadi Making DRAM Access Fast °Accessing data in the same row using cas- only access is 2 – 3 times faster cas-only access does not activate the cell matrix If next accesses is within the same row, a new column address may be presented just by applying a cas-only access. °Fact: Most processor addresses are sequential (75%) °If we had a way of knowing that that the next address is sequential with respect with the current address (current address + 4), then we could only assert cas and make DRAM access fast °Difficulty? Detecting early in memory access cycle that the next address is in the same row.

COMP3221 lec31-mem-bus-I.19 Saeid Nooshabadi ARM Solution to cas-only Access °ARM address register Instruction: 75% of next addresses are current address +4. ldr r1, [r2] mov pc, lr swi Sequential addresses flagged by seq signal The external mem device checks previous address and row boundaries to issue cas only or ras-cas incrementer from/to PC in register bank from ALU exception vector address to memory seq signal (address + 4) address mux

COMP3221 lec31-mem-bus-I.20 Saeid Nooshabadi Revised State Transition Diagram °seq = 1: sequential address °seq = 0: non-sequential °mreq = 1 internal operation °mreg = 0 memory access ROM seq reset RAM mreq seq ROM2ROM3ROM1 de code

COMP3221 lec31-mem-bus-I.21 Saeid Nooshabadi DRAM Timing Diagram °Notice the pipelined memory access Address is presented 1/2 cycle earlier New Address Sequential Address

COMP3221 lec31-mem-bus-I.22 Saeid Nooshabadi DRAM Timing Diagram after an Internal Cycle °During internal operations cycles, a memory access cycle can be set up in advance. This eliminates the wait (New Cycle) state Internal or coprocessor cycle

COMP3221 lec31-mem-bus-I.23 Saeid Nooshabadi Memory Access Timing Summary °Notice the pipelined memory access Address is presented 1/2 cycle earlier

COMP3221 lec31-mem-bus-I.24 Saeid Nooshabadi Reading Material °Steve Furber: ARM System On-Chip; 2nd Ed, Addison-Wesley, 2000, ISBN: Chapter 8.

COMP3221 lec31-mem-bus-I.25 Saeid Nooshabadi Conclusion °Memory interfacing can degrade performance °Can improve performance by increasing the clock frequency and allocating differing clock cycles for each memory access type °cas-only accesses in DRAM are 2 to 3 times faster than ras – cas accesses.