Asynchronous vs. Synchronous Counters Ripple Counters Deceptively attractive alternative to synchronous design style State transitions are not sharp! Can.

Slides:



Advertisements
Similar presentations
Outline Memory characteristics SRAM Content-addressable memory details DRAM © Derek Chiou & Mattan Erez 1.
Advertisements

Chapter 5 Internal Memory
Computer Organization and Architecture
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)
LOGO.  Concept:  Is read-only memory.  Do not lose data when power is lost.  ROM memory is used to produce chips with integrated.
Anshul Kumar, CSE IITD CSL718 : Main Memory 6th Mar, 2006.
COEN 180 DRAM. Dynamic Random Access Memory Dynamic: Periodically refresh information in a bit cell. Else it is lost. Small footprint: transistor + capacitor.
EECC341 - Shaaban #1 Lec # 19 Winter Read Only Memory (ROM) –Structure of diode ROM –Types of ROMs. –ROM with 2-Dimensional Decoding. –Using.
Sequential Logic Case Studies
Chapter 9 Memory Basics Henry Hexmoor1. 2 Memory Definitions  Memory ─ A collection of storage cells together with the necessary circuits to transfer.
1 The Basic Memory Element - The Flip-Flop Up until know we have looked upon memory elements as black boxes. The basic memory element is called the flip-flop.
DRAM. Any read or write cycle starts with the falling edge of the RAS signal. –As a result the address applied in the address lines will be latched.
Registers –Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
Chapter 3 Continued Logic Gates Logic Chips Combinational Logic Sequential Logic Flip Flops Registers Memory Timing State Machines.
Registers  Flip-flops are available in a variety of configurations. A simple one with two independent D flip-flops with clear and preset signals is illustrated.
1 COMP 206: Computer Architecture and Implementation Montek Singh Mon., Nov. 18, 2002 Topic: Main Memory (DRAM) Organization – contd.
Contemporary Logic Design Sequential Case Studies © R.H. Katz Transparency No Chapter #7: Sequential Logic Case Studies 7.6 Random Access Memories.
CSCI 4717/5717 Computer Architecture
F1020/F1031 COMPUTER HARDWARE MEMORY. Read-only Memory (ROM) Basic instructions for booting the computer and loading the operating system are stored in.
PC Maintenance: Preparing for A+ Certification
CSIT 301 (Blum)1 Memory. CSIT 301 (Blum)2 Types of DRAM Asynchronous –The processor timing and the memory timing (refreshing schedule) were independent.
CompE 460 Real-Time and Embedded Systems Lecture 5 – Memory Technologies.
Memory Technology “Non-so-random” Access Technology:
5.1 Semiconductor main memory  Organization The basic element of a semiconductor memory is the memory cell. Semiconductor memory cells properties: 1.
Computer Architecture Part III-A: Memory. A Quote on Memory “With 1 MB RAM, we had a memory capacity which will NEVER be fully utilized” - Bill Gates.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 5 Internal Memory.
10-1 Introduction Chapter #7: Sequential Logic Case Studies.
1 Random-Access Memory (RAM) Note: We’re skipping Sec 7.5 Today: First Hour: Static RAM –Section 7.6 of Katz’s Textbook –In-class Activity #1 Second Hour:
Survey of Existing Memory Devices Renee Gayle M. Chua.
No. 7-1 Chapter #7: Sequential Logic Case Studies.
9/26: Memory ROM vs. RAM ROM –BIOS RAM –changeable –different kinds & uses inc. VRAM, SRAM –how it works image courtesy of How Computers Work CD.
Chapter 5 Internal Memory. Semiconductor Memory Types.
Systems Overview Computer is composed of three main components: CPU Main memory IO devices Refers to page
Chapter 3 Internal Memory. Objectives  To describe the types of memory used for the main memory  To discuss about errors and error corrections in the.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
University of Tehran 1 Interface Design DRAM Modules Omid Fatemi
Chapter 4: MEMORY Internal Memory.
Memory Cell Operation.
Computer Architecture Lecture 24 Fasih ur Rehman.
Semiconductor Memory Types
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
COMP541 Memories II: DRAMs
1 Memory Hierarchy (I). 2 Outline Random-Access Memory (RAM) Nonvolatile Memory Disk Storage Suggested Reading: 6.1.
Chapter 5 Internal Memory. contents  Semiconductor main memory - organisation - organisation - DRAM and SRAM - DRAM and SRAM - types of ROM - types of.
Computer Architecture Chapter (5): Internal Memory
“With 1 MB RAM, we had a memory capacity which will NEVER be fully utilized” - Bill Gates.
COMP541 Memories II: DRAMs
Chapter 5 Internal Memory
William Stallings Computer Organization and Architecture 7th Edition
Registers and Counters
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
Computer Architecture
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
CSE 370 – Winter Sequential Logic-2 - 1
Chapter 4: MEMORY.
William Stallings Computer Organization and Architecture 8th Edition
Bob Reese Micro II ECE, MSU
Presentation transcript:

Asynchronous vs. Synchronous Counters Ripple Counters Deceptively attractive alternative to synchronous design style State transitions are not sharp! Can lead to "spiked outputs" from combinational logic decoding the counter's state Can lead to "spiked outputs" from combinational logic decoding the counter's state Count signal ripples from left to right

Lect 15-2 Asynchronous vs. Synchronous Counters Cascaded Synchronous Counters with Ripple Carry Outputs First stage RCO enables second stage for counting RCO asserted soon after stage enters state 1111 also a function of the T Enable Downstream stages lag in their 1111 to 0000 transitions Affects Count period and decoding logic (1) Low order 4-bits = 1111 (2) RCO goes high (3) High order 4-bits are incremented + + PTPT PTPT DCBADCBA count clk DCBADCBA DCBADCBA QD QC QB QA QD QC QB QA LOAD HGFEHGFE CLR RCO

Lect 15-3 The Power of Synchronous Clear and Load Starting Offset Counters: e.g., 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 1111, 0110,... Use RCO signal to trigger Load of a new state Since Load is synchronous, state changes only on the next rising clock edge 0110 is the state to be loaded D C B A L O A D C L R R C O PT Q A Q B Q C Q D Load D C B A Asynchronous vs. Synchronous Counters CLKCLK

Offset Counters Continued Ending Offset Counter: e.g., 0000, 0001, 0010,..., 1100, 1101, 0000 Decode state to determine when to reset to 0000 Clear signal takes effect on the rising count edge Replace '163 with '161, Counter with Async Clear Clear takes effect immediately! Asynchronous vs. Synchronous Counters

Lect 15-5 Memory technology types  Read-Only Memory (ROM)  Non-volatile storage  ROM, PROM, EPROM, EEPROM  Random Access Memory (RAM)  Static RAM (SRAM)  Dynamic RAM (DRAM)

Lect 15-6 ROM types  OT-PROM (one time programmable)  Mask ROM  Fuse ROM  PROM  EPROM  EEPROM Word Line Bit Line Mask ROM Fuse ROM Word Line Bit Line Word Line Bit Line EPROM EEPROM Flash Memory Floating gate

Lect 15-7 SRAM  Hold data without external refresh  Simplicity : don ’ t require external refresh circuitry  Speed: SRAM is faster than DRAM  Cost: several times more expensive than DRAMs  Size: take up much more space than DRAMs  Power: consume more power than DRAMs  Usage: level 1 or level 2 cache Word Line Bit Line Word Line Bit Line

Lect 15-8 Random Access Memories Static RAM Transistor efficient methods for implementing storage elements Small RAM: 256 words by 4-bit Large RAM: 4 million words by 1-bit We will discuss a 1024 x 4 organization Static RAM Cell Words = Rows Columns = Bits (Double Rail Encoded)

Lect 15-9 Random Access Memories Static RAM Organization Chip Select Line (active lo) Write Enable Line (active lo) 10 Address Lines 4 Bidirectional Data Lines

Lect Random Access Memories RAM Organization Long thin layouts are not the best organization for a RAM 64 x 64 Square Array Amplifers & Mux/Demux Some Addr bits select row Some Addr bits select within row

Lect Random Access Memories RAM Timing Simplified Read Timing Simplified Write Timing

Lect Random Access Memories Dynamic RAMs Word Line Bit Line 1 Transistor (+ capacitor) memory element Read: Assert Word Line, Sense Bit Line Write: Drive Bit Line, Assert Word Line Destructive Read-Out Need for Refresh Cycles: storage decay in ms Internal circuits read word and write back

Lect Random Access Memories Long rows to simplify refresh Two new signals: RAS, CAS Row Address Strobe Column Address Strobe replace Chip Select DRAM Organization

Random Access Memory RAS, CAS Addressing Even to read 1 bit, an entire 64-bit row is read! Separate addressing into two cycles: Row Address, Column Address Saves on package pins, speeds RAM access for sequential bits! Read Cycle Read Row Row Address Latched Read Bit Within Row Column Address Latched Tri-state Outputs

Lect Random Access Memory Write Cycle Timing (1) Latch Row Address Read Row (2) WE low (3) CAS low: replace data bit (4) RAS high: write back the modified row (5) CAS high to complete the memory cycle

Random Access Memory RAM Refresh Refresh Frequency: 4096 word RAM -- refresh each word once every 4 ms Assume 120ns memory access cycle This is one refresh cycle every 976 ns (1 in 8 DRAM accesses)! But RAM is really organized into 64 rows This is one refresh cycle every 62.5  s (1 in 500 DRAM accesses) Large capacity DRAMs have 256 rows, refresh once every 16  s RAS-only Refresh (RAS cycling, no CAS cycling) External controller remembers last refreshed row Some memory chips maintain refresh row pointer CAS before RAS refresh: if CAS goes low before RAS, then refresh

Lect DRAM Technologies  Conventional DRAM  Fast Page Mode (FPM) DRAM  Extended Data Out (EDO) DRAM  Synchronous DRAM (SDRAM)  Double Data Rate SDRAM (DDR SDRAM)  Direct Rambus DRAM (DRDRAM)  Synchronous-Link DRAM (SLDRAM)

Lect Fast Page Mode (FPM) DRAM  Sending the row address just once for many accesses to memory in locations near each other, improving access time  Page mode  Burst mode access  Memory is not read one byte at a time (32 or 64 bits at a time)  Several consecutive chunks of memory  “x-y-y-y” for four consecutive accesses

Lect Synchronous DRAM  Tied to the system clock  Burst mode  System timing :  Internal interleaving  New memory standard for modern PCs  Speed  Access time: 10ns, 12ns,…  MHz rating: 100 MHz, 133MHz

Lect Synchronous DRAM, cont’d  Latency  SDRAMs are still DRAMs  (10ns means the second, third and fourth access times)  2-clock and 4-clock Circuitry  2-clock: 2 different DRAM chips on the module  4-clock: 4 different DRAM chips  Packaging  Usually comes in DIMM packaging  Buffered and unbuffered, 3.3 V and 5.0V

Lect SDRAM DIMM  64Mx64 SDRAM DIMM based on 32Mx8, 4 banks 3.3v SDRAMs with SPD  SPD: serial presence detect chip: speed and design information about the module

Lect Direct Rambus DRAM (DRDRAM)  Direct Rambus channel  High speed 16-bit bus, 400MHz  Transfers at rising and falling edges, 1.6Gbytes/second  Rambus Inline Memory module (RIMM)

Lect Synchronous-Link DRAM (SLDRAM)  SLDRAM Consortium  Evolutionary design  64bit bus running at a 200 MHz clock speed (effective speed of 400 MHz)  3.2 Gbytes/second  Open standard

Lect Chapter Summary The Variety of Sequential Circuit Packages Registers, Shifters, Counters, RAMs Counters as Simple Finite State Machines Counter Design Procedure 1. Derive State Diagram 2. Derive State Transition Table 3. Determine Next State Functions 4. Remap Next State Functions for Target FF Types Using Excitation Tables; Implement Logic Different FF Types in Counters J-K best for reducing gate count in packaged logic D is easiest design plus best for reducing wiring and area in VLSI Asynchronous vs. Synchronous Counters Avoid Ripple Counters! State transitions are not sharp Beware of potential problems when cascading synchronous counters Offset counters: easy to design with synchronous load and clear Never use counters with asynchronous clear for this kind of application