Digital Circuits and Systems

Similar documents
RAM & ROM Based Digital Design. ECE 152A Winter 2012

Memory Basics. SRAM/DRAM Basics

A N. O N Output/Input-output connection

Module 2. Embedded Processors and Memory. Version 2 EE IIT, Kharagpur 1

Memory. The memory types currently in common usage are:

Chapter 7 Memory and Programmable Logic

Semiconductor Memories

Handout 17. by Dr Sheikh Sharif Iqbal. Memory Unit and Read Only Memories

Computer Architecture

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

CHAPTER 16 MEMORY CIRCUITS

Homework # 2. Solutions. 4.1 What are the differences among sequential access, direct access, and random access?

Chapter 5 :: Memory and Logic Arrays

Read-only memory Implementing logic with ROM Programmable logic devices Implementing logic with PLDs Static hazards

With respect to the way of data access we can classify memories as:

Chapter 9 Semiconductor Memories. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

1. Memory technology & Hierarchy

GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

Algorithms and Methods for Distributed Storage Networks 3. Solid State Disks Christian Schindelhauer

Memory unit. 2 k words. n bits per word

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

Computers. Hardware. The Central Processing Unit (CPU) CMPT 125: Lecture 1: Understanding the Computer

Sequential Circuit Design

Upon completion of unit 1.1, students will be able to

Objectives. Units of Memory Capacity. CMPE328 Microprocessors (Spring ) Memory and I/O address Decoders. By Dr.

Computer Systems Structure Main Memory Organization

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

The components. E3: Digital electronics. Goals:

1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.

Chapter 2 Logic Gates and Introduction to Computer Architecture

Layout of Multiple Cells

CHAPTER 11: Flip Flops

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

1 / 25. CS 137: File Systems. Persistent Solid-State Storage

DM Segment Decoder/Driver/Latch with Constant Current Source Outputs

Table 1: Address Table

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Interfacing To Alphanumeric Displays

Allows the user to protect against inadvertent write operations. Device select and address bytes are Acknowledged Data Bytes are not Acknowledged

MICROPROCESSOR AND MICROCOMPUTER BASICS

Random-Access Memory (RAM) The Memory Hierarchy. SRAM vs DRAM Summary. Conventional DRAM Organization. Page 1

Fairchild Solutions for 133MHz Buffered Memory Modules

Memory Systems. Static Random Access Memory (SRAM) Cell

Lecture-3 MEMORY: Development of Memory:

NAND Flash FAQ. Eureka Technology. apn5_87. NAND Flash FAQ

DS1225Y 64k Nonvolatile SRAM

Flash Memories. João Pela (52270), João Santos (55295) December 22, 2008 IST

Chapter 10 Advanced CMOS Circuits

Introduction to Programmable Logic Devices. John Coughlan RAL Technology Department Detector & Electronics Division

Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview

Gates, Circuits, and Boolean Algebra

CHAPTER 3 Boolean Algebra and Digital Logic

Class 18: Memories-DRAMs

AN1837. Non-Volatile Memory Technology Overview By Stephen Ledford Non-Volatile Memory Technology Center Austin, Texas.

DS1220Y 16k Nonvolatile SRAM

HD61202U. (Dot Matrix Liquid Crystal GraphicDisplay Column Driver)

Features INSTRUCTION DECODER CONTROL LOGIC AND CLOCK GENERATORS COMPARATOR AND WRITE ENABLE EEPROM ARRAY READ/WRITE AMPS 16

Programming NAND devices

Low Power AMD Athlon 64 and AMD Opteron Processors

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

GR2DR4B-EXXX/YYY/LP 1GB & 2GB DDR2 REGISTERED DIMMs (LOW PROFILE)

SOLVING HIGH-SPEED MEMORY INTERFACE CHALLENGES WITH LOW-COST FPGAS

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

8741A UNIVERSAL PERIPHERAL INTERFACE 8-BIT MICROCOMPUTER

DS12885, DS12885Q, DS12885T. Real Time Clock FEATURES PIN ASSIGNMENT

Digital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell

Memory Testing. Memory testing.1

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

MM74C150 MM82C19 16-Line to 1-Line Multiplexer 3-STATE 16-Line to 1-Line Multiplexer

Features. DDR SODIMM Product Datasheet. Rev. 1.0 Oct. 2011

Lesson 12 Sequential Circuits: Flip-Flops

Lecture 5: Gate Logic Logic Optimization

Clocking. Figure by MIT OCW Spring /18/05 L06 Clocks 1

Logical Operations. Control Unit. Contents. Arithmetic Operations. Objectives. The Central Processing Unit: Arithmetic / Logic Unit.

Evaluating Embedded Non-Volatile Memory for 65nm and Beyond

Microprocessor & Assembly Language

Introduction to Digital System Design

Static-Noise-Margin Analysis of Conventional 6T SRAM Cell at 45nm Technology

DS1220Y 16k Nonvolatile SRAM

The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Design of a High Speed Communications Link Using Field Programmable Gate Arrays

Module 7 : I/O PADs Lecture 33 : I/O PADs

Chapter 9 Latches, Flip-Flops, and Timers

MM74C150 MM82C19 16-Line to 1-Line Multiplexer 3-STATE 16-Line to 1-Line Multiplexer

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

CHAPTER 7: The CPU and Memory

The Programming Interface

HD44780U (LCD-II) (Dot Matrix Liquid Crystal Display Controller/Driver)

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

3.Basic Gate Combinations

Decimal Number (base 10) Binary Number (base 2)

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

Introduction to CMOS VLSI Design

Lecture 10 Sequential Circuit Design Zhuo Feng. Z. Feng MTU EE4800 CMOS Digital IC Design & Analysis 2010

Combinational Logic Design

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

Memory ICS 233. Computer Architecture and Assembly Language Prof. Muhamed Mudawar

Transcription:

EE201: Digital Circuits and Systems 5 Digital Circuitry page 1 of 21 EE201: Digital Circuits and Systems Section 6 Memory Data memory types: 1. Random Access Memory which can be read & written Static & Dynamic RAM 2. Read Only Memory which retains data PROM, EPROM, EEPROM, Flash Programmable Logic: 1. Programmable Arrays PLDs, PALs, GALs 2. Complex Programmable Devices CPLD, FPGA technology

EE201: Digital Circuits and Systems 5 Digital Circuitry page 2 of 21 6.1 Static RAM (SRAM) Static Random Access Memory Static: Data value is retained as long as V DD is present. Random Access: Any location can read at a point in time.(doesn t need sequential addresses) SRAM can be built using either: D-type latch 6-transistor CMOS RAM cell 6.1.1 D-type Latch Used for building CPU registers, etc Derived from inverted S-R flipflop Inverted S-R flip-flop: /S /R Q 0 0 X 0 1 1 1 0 0 1 1 Q D-type latch E D /S /R Q 0 0 1 1 No Change 0 1 1 1 No Change 1 0 1 0 0 1 1 0 1 1 When the Enable line is zero (En=0) /S = /R = 1 and the inverting SR flipflop retains its previous value. When the enable line is high (En=1) The value of data line D is latched into the flipflop.

EE201: Digital Circuits and Systems 5 Digital Circuitry page 3 of 21 Each BIT would need 16 transistors (NAND gate = 4 transistors) For large SRAM modules not very efficient. o 1-MB SRAM -> 8-Mb -> 128 Million transistors 6.1.2 Edge Triggered D-type Register For use with a combinational circuit it is more important to have devices respond to clock edges. o D-type Latch works when En=1 or En=0 o D-type Register works when En is rising or falling. Edge triggered flip-flop for use in synchronous circuits. Uses 2 D-type transparent latches(red Boxes) and 2 NOT gates When the clock is low (Clk=0) The first D-type latch is ON, The value of D latched into first flipflop. When clock goes high (Clk=1) The first D-type latch switches OFF and the second D-type latch is enabled. The output of latch 1 propagates through the second flipflop to the output. Value of output is retained until next rising edge Falling clock edges: Remove leftmost inverter from the circuit.

EE201: Digital Circuits and Systems 5 Digital Circuitry page 4 of 21 6.1.3 6-Transistor Cell (Cross Coupled Inverter) For larger SRAM modules the above circuit is not very efficient o Transistor count per bit is too high TO READ: BIT lines are charged high Enable line WL is pulled high, switching access transistors M5 and M6 on` If value stored in /Q is 0, value is accessed through access transistor M5 on /BL. If value stored in Q is 1, charged value of Bit line BL is pulled up to V DD. Value is sensed on BL and /BL. TO WRITE: Apply value to be stored to Bit lines BL and /BL Enable line WL is triggered and input value is latched into storage cell BIT line drivers must be stronger than SRAM transistor cell to override previous values While Enable line is held low, the inverters retain the previous value Could use tri-state WE line on BIT to drive into specific state. Transistor count per bit is only 6 + (line drivers & sense logic)

EE201: Digital Circuits and Systems 5 Digital Circuitry page 5 of 21 6.1.4 Addressed SRAM Can view RAM as N-bit by M-word black box: o N input lines D IN o N output lines D OUT o A address lines (2 A = M) A o W E write enable line WE 6.1.4.1 Single SRAM Bit When A = 0, Latch Enable is off. o Data cannot be written into the D-type latch o D OUT = 0. When A = 1 Latch is Enabled o If W = 1 (Data-Write) Data at D IN can be written into the D-type latch Output gate is enabled o IF W = 0 New value on D IN is not stored. Output gate is enabled. Not very efficient since 1-bit address line can access 2 memory locations. This memory is 1-bit X 1-word RAM o Stores one 1-bit data value

EE201: Digital Circuits and Systems 5 Digital Circuitry page 6 of 21 A W DI FlipFlop Out DO 0 0 0 Q(t-1) 0 0 0 1 Q(t-1) 0 0 1 0 Q(t-1) 0 0 1 1 Q(t-1) 0 1 0 0 Q(t) Q(t) 1 0 1 Q(t) Q(t) 1 1 0 0 0 1 1 1 1 1 6.1.4.1 1-bit X 2-word SRAM DI W A 1-Bit Memory Cell 0 Data Out DI W A1 DI W A 1-Bit Memory Cell 1 When address bit AI = 0 Cell1 is disabled and Cell0 is enabled o IF W = 1 : Value of D IN is written to cell0 o IF W = 0 : Data out is Cell0 OR 0 When address bit AI = 1 Cell0 is disabled and Cell1 is enabled o IF W = 1 : Value of D IN is written to cell1 o IF W = 0 : Data out is Cell1 OR 0 Only 1 cell can be active at one time Output line is always driven by one cell o Important for shared bus

EE201: Digital Circuits and Systems 5 Digital Circuitry page 7 of 21 6.1.5 4-bit X 16-word SRAM DI1 DI2 DI3 DI4 A4 A3 A2 A1 a...... a 0 15 DI A DO CS Chip Select W => to all cells DO1 DO2 DO3 DO4 When CS = 1 AND A4 A3 A2 A1 = 0000 Address decoder decodes A4-A1 to o 1000000000000000 (a 0 = 1, a 1 -a 15 = 0 Data at DI1 DI2 DI3 DI4 is written to address 0 when W = 1 If W = 0, No new data is stored and address0 drives the output bus Contents of memory address 0 appear at output Address decoder maps input address bits to row control signals Should only set one bit for every possible input o 2 A states where A is the number of address lines The CS (chip select) line allows the memory to be doubled with only one inverter [+ OR gates].

EE201: Digital Circuits and Systems 5 Digital Circuitry page 8 of 21 6.1.5 Tri-State Outputs: In previous examples, one location is enabled during each operation which can drive the output bus. If RAM is on shared bus, the RAM cannot be allowed to drive the bus at all times Must have method of removing RAM from bus Solution is to use Tri-State logic A1 DI0....DI3 A2 A3 A4 CS DO0...DO3 A1 A2 A3 A4 A1 DI0... DI3 A2 A3 A4 A5 CS DO0... DO3 Outputs from each cell are tri-state outputs. Data Bus When not active the outputs are in high impedance. Can either use CS line to control when Hi-Z or another global memory signal which controls the output OE Allows both other RAM cells and other devices to control data bus

EE201: Digital Circuits and Systems 5 Digital Circuitry page 9 of 21 6.2 Dynamic RAM (DRAM) SRAM requires a number of transistors per bit o Difficult to cost-effectively scale for larger memories DRAM utilises MOSFET capacitance to store data bit o Transistor per bit cost is approx 1 Si0 2 insulates gate and substrate o Creating dielectric capacitor between gate and substrate Data bit is stored in this capacitance Each bit now only requires 1 MOSFET per bit. o However the charge stored in cell dissipates over time and must be recharged over time to avoid corruption DRAM Refresh o Must read data bit and write value back to cell. o JEDEC standardises DRAM row refreshes at least every 64 ms. All bits in row must be refreshed. o Dedicated hardware control DRAM refresh Refresh is transparent to user Above 64 Kbits, DRAM more economic than SRAM logic o Even with refresh.

EE201: Digital Circuits and Systems 5 Digital Circuitry page 10 of 21 Write Operation X Y Data I/O C 0 X X - X 0 X - 1 1 0 0 1 1 1 1 Read Operation X Y Data I/O C 0 X X C X 0 X C 1 1 0 0 1 1 1 1 6.2.1 DRAM Organisation DRAM is organised as row by column matrix. o Matrix stores n 1-bit words o N is determined by the number of address lines available Each matrix is parallelised to create word size memories o i.e : 8 parallel 4Kx1-bit DRAM matrices creates an 4K * 8-bit RAM module

EE201: Digital Circuits and Systems 5 Digital Circuitry page 11 of 21 Example An 8x8 array forms a 64 x 1 dynamic RAM The row and column select logic are comprised of address decoders. o 8-rows and 8-columns need 3-address bits each. Above block is 64x1-bit DRAM Diagram omits but matrix has 1 data I/O line. o Row and Column address control which bit is active

EE201: Digital Circuits and Systems 5 Digital Circuitry page 12 of 21 This block can be parallelised to create larger data word Each bit of data word is read/wrote in parallel Example 2 How to build 4k X 1 dynamic RAM? Step 1: How to arrange row & columns Step 2: 64 x 64 array provides 4096 (4K) bits Step 4: How many address lines needed for 64-line decoder? 2 6 = 64, Need 6 row lines and 6 column lines

EE201: Digital Circuits and Systems 5 Digital Circuitry page 13 of 21 Pin Requirements 12 Address Bits: 6-bit for row and 6-bits for column 3 Control Bits: WE, CS and OE 1 Data I/O bit bus V DD and GND Entire IC will require 18 pins 6.2.3 Multiplexed Address Lines To further reduce cost, DRAM uses multiplexed address o 4K x 1 = 12 Address lines o 16M x 1 = 24 Address lines Since column address is independent of row address o We can provide row address and then column address o If 12-bit address bus is multiplexed we can address 16M DRAM with only 2 additional lines (RAS and CAS) o RAS : Row Address Strobe o CAS : Column Address Strobe Multiplexed Address, Step by Step: Step 1: Latch out 12 row address bits Step 2: Strobe RAS line which causes DRAM to latch in row address Step 3: Wait until you are sure it has been registered and latch out column address bits Step 4: Strobe CAS line which causes DRAM to latch in column address Step 5: Wait some period of time and read/write to data bus

EE201: Digital Circuits and Systems 5 Digital Circuitry page 14 of 21 6.2.4 DRAM Timing DRAM module is asynchronous o Timing depends on how long it takes to respond to each operation. DRAM cannot be read as fast (or as easy) as SRAM

EE201: Digital Circuits and Systems 5 Digital Circuitry page 15 of 21 6.3 Read Only Memory (ROM) Disadvantage with RAM (static or dynamic) is that the contents of the memory are lost when power is removed. Volatile memory: Content lost when V DD is removed (RAM) Non-Volatile memory: Data is retained after V DD is gone. ROM Types: 1) ROM : Most basic memory 2) PROM : Additional functionality on ROM 3) (UV) EPROM : Can be reprogrammed 4) EEPROM : Can be reprogrammed (easier than EPROM) 5) Flash : Current technology (easier again) 6.3.1 ROM o Most basic type of ROM is factory-programmed diode matrix

EE201: Digital Circuits and Systems 5 Digital Circuitry page 16 of 21 The diode can be replaced by a multiple emitter transistor for each data word. o During manufacture, a diode is placed at those connections which are required by the customer. o Complete transistor array is programmed via fabrication mask o Those connections without diode cannot be changed later and vice-versa Memory is read-only ROM is economic when several thousand devices are needed. 6.3.2 Programmable ROM (PROM) ROM device is factory-programmed device o Need to tell fab plant which connections to make/skip More useful solution would be to allow customer to program device in the field. o Place diode at every junction with nichrome fusible link in series. o Any link can be blown by selecting its address and applying a high voltage to its data output o Once fuse has been blown it cannot be repaired. Memory is read-only Advantage over ROM Device is field-programmable : o Customer can buy a blank PROM to programme o Manufacturer can made identical PROM for every customer, reducing cost Disadvantages over ROM Need 2 voltages: o Operating voltage o Programming voltage

EE201: Digital Circuits and Systems 5 Digital Circuitry page 17 of 21 6.3.3 Erasable PROM (EPROM) An EPROM can be programmed in a similar manner to a PROM Each diode/fuse is replaced by 2-Gate MOS transistor High programming voltage injects electrons into transistor Process can be reversed by exposing device to UV light o UV lightwave reforms conductive channel Advantage over ROM/PROM Device is field programmable plus the code can be re-written at a later date Disadvantages over ROM/PROM Still need 2 voltages Quartz crystal is expensive. 6.3.4 Electrically Erasable PROM (EEPROM) Unlike EPROM, no UV light is required to erase memory. o Thin insulator layer allows voltage to erase Program/Erase voltage generated on-chip o Single V DD line required. Advantage over ROM/PROM/EPROM Can be reprogrammed easier Only single power supply needed Disadvantage over ROM/PROM/EPROM Thin gate insulator layer is damaged by erase/write operations o New EEPROM device has 1,000,000 cycles

EE201: Digital Circuits and Systems 5 Digital Circuitry page 18 of 21 6.3.5 Flash PROM (FLASH) [http://en.wikipedia.org/wiki/flash_memory] Flash memory stores information in an array of memory cells made from floatinggate transistors. The floating gate may be conductive (typically polysilicon in most kinds of flash memory) or non-conductive (as in SONOS flash memory) The ångström or angstrom (symbol Å) is equal to 0.1 nanometre or 1 10 10 metres.

EE201: Digital Circuits and Systems 5 Digital Circuitry page 19 of 21 Flash memory is improvement on EEPROM technology Lower operational voltage, program voltage Flash Disadvantages As gate insulator is thinned, the number of times it can be written is reduced. Flash might have 1,000,000 write cycles Entire block(or page) must be erased at one time in flash,(byte can be erased in EEPROM)

EE201: Digital Circuits and Systems 5 Digital Circuitry page 20 of 21 All ROM memory is quite slow compared to DRAM and SRAM Typically try to use it to store code/data but execute code and manipulate data in RAM 6.3.5 ROM s for Combinational Logic A suitably programmed ROM can generate any combinational logic function. Number of inputs Number of address lines Number of outputs Number of bits. Example Converter from 3-bit binary to 7-segment display code. (0 = on, 1 = off) C B A a b c d e f g 0 0 0 0 0 0 0 0 0 1 0 0 1 1 0 0 1 1 1 1 0 1 0 0 0 1 0 0 1 0 0 1 1 0 0 0 0 1 1 0 1 0 0 1 0 0 1 1 0 0 1 0 1 0 1 0 0 1 0 0 1 1 0 1 1 0 0 0 0 0 1 1 1 0 0 0 1 1 1 1 An 8-word by 7-bit ROM is needed.

EE201: Digital Circuits and Systems 5 Digital Circuitry page 21 of 21 Characteristics of the various memory types Type Volatile? Writeable? Erase Size Max Erase Cycles Cost (per Byte) Speed SRAM Yes Yes Byte Unlimited Expensive Fast DRAM Yes Yes Byte Unlimited Moderate Moderate Masked ROM PROM EPROM No No n/a n/a Inexpensive Fast No No Once, with a device programmer Yes, with a device programmer n/a n/a Moderate Fast Entire Chip EEPROM No Yes Byte Flash No Yes Sector Limited (consult datasheet) Limited (consult datasheet) Limited (consult datasheet) NVRAM No Yes Byte Unlimited Moderate Expensive Moderate Expensive (SRAM + battery) Fast Fast to read, slow to erase/write Fast to read, slow to erase/write Fast