Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Computer Organization and Architecture Lecture 7 By Juthawut Chantharamalee wut_cha/home.htm.

Similar presentations


Presentation on theme: "Introduction to Computer Organization and Architecture Lecture 7 By Juthawut Chantharamalee wut_cha/home.htm."— Presentation transcript:

1 Introduction to Computer Organization and Architecture Lecture 7 By Juthawut Chantharamalee http://dusithost.dusit.ac.th/~jutha wut_cha/home.htm

2 Outline  Memory Arrays and Hierarchy  SRAM Architecture SRAM Cell Decoders Column Circuitry Multiple Ports  Serial Access Memories  Flash  DRAM 2Introduction to Computer Organization and Architecture

3 Memory Arrays 3Introduction to Computer Organization and Architecture

4 Levels of the Memory Hierarchy Introduction to Computer Organization and Architecture4 Part of The On-chip CPU Datapath ISA 16-128 Registers One or more levels (Static RAM): Level 1: On-chip 16-64K Level 2: On-chip 256K-2M Level 3: On or Off-chip 1M-16M Registers Cache Level(s) Main Memory Magnetic Disc Optical Disk or Magnetic Tape Farther away from the CPU: Lower Cost/Bit Higher Capacity Increased Access Time/Latency Lower Throughput/ Bandwidth Dynamic RAM (DRAM) 256M-16G Interface: SCSI, RAID, IDE, 1394 80G-300G CPU

5 Memory Hierarchy Comparisons Introduction to Computer Organization and Architecture5 CPU Registers 100s Bytes <10s ns Cache K Bytes 10-100 ns 1-0.1 cents/bit Main Memory M Bytes 200ns- 500ns $.0001-.00001 cents /bit Disk G Bytes, 10 ms (10,000,000 ns) 10 - 10 cents/bit -5-6 Capacity Access Time Cost Tape infinite sec-min 10 -8 Registers Cache Memory Disk Tape Instr. Operands Blocks Pages Files Staging Xfer Unit prog./compiler 1-8 bytes cache cntl 8-128 bytes OS 4K-16K bytes user/operator Mbytes faster Larger

6 Connecting Memory Introduction to Computer Organization and Architecture6 Up to 2 k addressable MDR MAR k-bit address bus n-bit data bus Control lines (, MFC, etc.) Processor Memory locations Word length =n bits WR/

7 Array Architecture 2 n words of 2 m bits each If n >> m, fold by 2 k into fewer rows of more columns Good regularity – easy to design Very high density if good cells are used 7Introduction to Computer Organization and Architecture

8 6T SRAM Cell Cell size accounts for most of array size  Reduce cell size at expense of complexity 6T SRAM Cell  Used in most commercial chips  Data stored in cross-coupled inverters Read:  Precharge bit, bit_b  Raise wordline Write:  Drive data onto bit, bit_b  Raise wordline 8Introduction to Computer Organization and Architecture

9 SRAM Read Precharge both bitlines high Then turn on wordline One of the two bitlines will be pulled down by the cell Ex: A = 0, A_b = 1  bit discharges, bit_b stays high 9Introduction to Computer Organization and Architecture

10 SRAM Write Drive one bitline high, the other low Then turn on wordline Bitlines overpower cell with new value Ex: A = 0, A_b = 1, bit = 1, bit_b = 0  Force A_b low 10Introduction to Computer Organization and Architecture

11 SRAM Column Example ReadWrite 11Introduction to Computer Organization and Architecture

12 Decoders n:2 n decoder consists of 2 n n-input AND gates  One needed for each row of memory  Build AND from NAND or NOR gates 12Introduction to Computer Organization and Architecture

13 Large Decoders For n > 4, NAND gates become slow  Break large gates into multiple smaller gates 13Introduction to Computer Organization and Architecture

14 Column Circuitry  Some circuitry is required for each column Bitline conditioning Sense amplifiers Column multiplexing 14Introduction to Computer Organization and Architecture

15 Bitline Conditioning  Precharge bitlines high before reads  Equalize bitlines to minimize voltage difference when using sense amplifiers 15Introduction to Computer Organization and Architecture

16 Differential Pair Amp Differential pair requires no clock But always dissipates static power 16Introduction to Computer Organization and Architecture

17 Column Multiplexing Recall that array may be folded for good aspect ratio Ex: 2 kword x 16 folded into 256 rows x 128 columns  Must select 16 output bits from the 128 columns  Requires 16 8:1 column multiplexers 17Introduction to Computer Organization and Architecture

18 Multiple Ports We have considered single-ported SRAM  One read or one write on each cycle Multiported SRAM are needed for register files Examples:  Multicycle MIPS must read two sources or write a result on some cycles  Pipelined MIPS must read two sources and write a third result each cycle  Superscalar MIPS must read and write many sources and results each cycle 18Introduction to Computer Organization and Architecture

19 Dual-Ported SRAM Simple dual-ported SRAM  Two independent single-ended reads  Or one differential write Do two reads and one write by time multiplexing  Read during ph1, write during ph2 19Introduction to Computer Organization and Architecture

20 Multi-Ported SRAM Adding more access transistors hurts read stability Multiported SRAM isolates reads from state node Single-ended design minimizes number of bitlines 20Introduction to Computer Organization and Architecture

21 Serial Access Memories  Serial access memories do not use an address Shift Registers Tapped Delay Lines Serial In Parallel Out (SIPO) Parallel In Serial Out (PISO) Queues (FIFO, LIFO) 21Introduction to Computer Organization and Architecture

22 Shift Register  Shift registers store and delay data  Simple design: cascade of registers Watch your hold times! 22Introduction to Computer Organization and Architecture

23 Denser Shift Registers Flip-flops aren’t very area-efficient For large shift registers, keep data in SRAM instead Move read/write pointers to RAM rather than data  Initialize read address to first entry, write to last  Increment address on each cycle 23Introduction to Computer Organization and Architecture

24 Tapped Delay Line  A tapped delay line is a shift register with a programmable number of stages  Set number of stages with delay controls to mux Ex: 0 – 63 stages of delay 24Introduction to Computer Organization and Architecture

25 Serial In Parallel Out  1-bit shift register reads in serial data After N steps, presents N-bit parallel output 25Introduction to Computer Organization and Architecture

26 Parallel In Serial Out  Load all N bits in parallel when shift = 0 Then shift one bit out per cycle 26Introduction to Computer Organization and Architecture

27 Queues  Queues allow data to be read and written at different rates.  Read and write each use their own clock, data  Queue indicates whether it is full or empty  Build with SRAM and read/write counters (pointers) 27Introduction to Computer Organization and Architecture

28 FIFO, LIFO Queues First In First Out (FIFO)  Initialize read and write pointers to first element  Queue is EMPTY  On write, increment write pointer  If write almost catches read, Queue is FULL  On read, increment read pointer Last In First Out (LIFO)  Also called a stack  Use a single stack pointer for read and write 28Introduction to Computer Organization and Architecture

29 Memory Timing: Approaches DRAM Timing Multiplexed Adressing SRAM Timing Self-timed 29Introduction to Computer Organization and Architecture

30 Non-Volatile Memories  Floating-gate transistor Floating gate Source Substrate Gate Drain n + n +_ p t ox t Device cross-section Schematic symbol G S D 30Introduction to Computer Organization and Architecture

31 NOR Flash Operations ―Erase 31Introduction to Computer Organization and Architecture

32 NOR Flash Operations ―Program 32Introduction to Computer Organization and Architecture

33 NOR Flash Operations ―Read 33Introduction to Computer Organization and Architecture

34 NAND Flash Memory Unit Cell Word line(poly) Source line (Diff. Layer) Courtesy Toshiba 34 55:035 Computer Architecture and Organization

35 Read-Write Memories (RAM)  Static (SRAM) Data stored as long as supply is applied Large (6 transistors/cell) Fast Differential  Dynamic (DRAM) Periodic refresh required Small (1-3 transistors/cell) Slower Single Ended 35Introduction to Computer Organization and Architecture

36 1-Transistor DRAM Cell Write: Cs is charged or discharged by asserting WL and BL Read: Charge redistribution takes place between bit line and storage capacitance Voltage swing is small; typically around 250 mV 36Introduction to Computer Organization and Architecture

37 DRAM Cell Observations  1T DRAM requires a sense amplifier for each bit line, due to charge redistribution read-out.  DRAM memory cells are single ended in contrast to SRAM cells.  The read-out of the 1T DRAM cell is destructive; read and refresh operations are necessary for correct operation.  1T cell requires presence of an extra capacitance that must be explicitly included in the design.  When writing a “1” into a DRAM cell, a threshold voltage is lost. This charge loss can be circumvented by bootstrapping the word lines to a higher value than V DD 37Introduction to Computer Organization and Architecture

38 Sense Amp Operation Δ V(1) V V(0) t V PRE V BL Sense amp activated Word line activated 38Introduction to Computer Organization and Architecture

39 DRAM Timing 39Introduction to Computer Organization and Architecture

40 The End Lecture 7


Download ppt "Introduction to Computer Organization and Architecture Lecture 7 By Juthawut Chantharamalee wut_cha/home.htm."

Similar presentations


Ads by Google