Menu. word size # of words byte = 8 bits

Similar documents
A N. O N Output/Input-output connection

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

Memory. The memory types currently in common usage are:

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

Memory Basics. SRAM/DRAM Basics

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

Chapter 7 Memory and Programmable Logic

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

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

Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.

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

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

Computer Systems Structure Main Memory Organization

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

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

Memory is implemented as an array of electronic switches

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

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

Semiconductor Memories

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

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

Chapter 5 :: Memory and Logic Arrays

CSCA0102 IT & Business Applications. Foundation in Business Information Technology School of Engineering & Computing Sciences FTMS College Global

MICROPROCESSOR BCA IV Sem MULTIPLE CHOICE QUESTIONS

1. Memory technology & Hierarchy

EXERCISES OF FUNDAMENTALS OF COMPUTER TECHNOLOGY UNIT 5. MEMORY SYSTEM

DS1225Y 64k Nonvolatile SRAM

Computer Architecture

Chapter 4 System Unit Components. Discovering Computers Your Interactive Guide to the Digital World

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

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Discovering Computers Living in a Digital World

DS1220Y 16k Nonvolatile SRAM

DS1220Y 16k Nonvolatile SRAM

Lecture N -1- PHYS Microcontrollers

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

Computer Architecture

Memory Systems. Static Random Access Memory (SRAM) Cell

MICROPROCESSOR AND MICROCOMPUTER BASICS

CHAPTER 7: The CPU and Memory

Understanding Memory TYPES OF MEMORY

Memory Hierarchy. Arquitectura de Computadoras. Centro de Investigación n y de Estudios Avanzados del IPN. adiaz@cinvestav.mx. MemoryHierarchy- 1

Multiple Choice Questions(Computer)

Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance

The Central Processing Unit:

Table 1: Address Table

SDRAM and DRAM Memory Systems Overview

W25Q80, W25Q16, W25Q32 8M-BIT, 16M-BIT AND 32M-BIT SERIAL FLASH MEMORY WITH DUAL AND QUAD SPI

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

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

CHAPTER 16 MEMORY CIRCUITS

We r e going to play Final (exam) Jeopardy! "Answers:" "Questions:" - 1 -

CSE2102 Digital Design II - Topics CSE Digital Design II

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

Hardware: Input, Processing, and Output Devices. A PC in Every Home. Assembling a Computer System

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

Memory unit. 2 k words. n bits per word

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

Chapter 8 Memory Units

PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 TUTORIAL OUTCOME 2 Part 1

Microprocessor or Microcontroller?

Slide Set 8. for ENCM 369 Winter 2015 Lecture Section 01. Steve Norman, PhD, PEng

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

Using Altera MAX Series as Microcontroller I/O Expanders

Chapter 13. PIC Family Microcontroller

Byte Ordering of Multibyte Data Items

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

8741A UNIVERSAL PERIPHERAL INTERFACE 8-BIT MICROCOMPUTER

The components. E3: Digital electronics. Goals:


The Programming Interface

Introduction To Computers: Hardware and Software

Sequential Circuit Design

Management Challenge. Managing Hardware Assets. Central Processing Unit. What is a Computer System?

Binary, Hexadecimal, Octal, and BCD Numbers

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

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

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

User Manual. AS-Interface Programmer

Microprocessor & Assembly Language

Table 1 below is a complete list of MPTH commands with descriptions. Table 1 : MPTH Commands. Command Name Code Setting Value Description

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

Implementing a Digital Answering Machine with a High-Speed 8-Bit Microcontroller

CCNA 2 Chapter 5. Managing Cisco IOS Software

Base Conversion written by Cathy Saxton

Application Note [AN-029] Interfacing and set-up of Toshiba T6963C

SECTION C [short essay] [Not to exceed 120 words, Answer any SIX questions. Each question carries FOUR marks] 6 x 4=24 marks

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

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

Here is a diagram of a simple computer system: (this diagram will be the one needed for exams) CPU. cache

RealSSD Embedded USB Mass Storage Drive MTFDCAE001SAF, MTFDCAE002SAF, MTFDCAE004SAF, MTFDCAE008SAF

8051 MICROCONTROLLER COURSE

Combinational Logic Design

ADQYF1A08. DDR2-1066G(CL6) 240-Pin O.C. U-DIMM 1GB (128M x 64-bits)

COMBINATIONAL CIRCUITS

CPEN Digital Logic Design Binary Systems

LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER

Microcontrollers Figure 26-1 Objectives Key Words and Terms 26.1 OVERVIEW OF THE MICROCONTROLLER microcontroller

Main Memory & Backing Store. Main memory backing storage devices

Interfacing Analog to Digital Data Converters

Transcription:

Menu LSI Components >Random Access Memory (RAM) Static RAM (SRAM) Dynamic RAM (DRAM) Read-Only Memory (ROM) Look into my... See figures from Lam text on web: RAM_ROM_ch6.pdf 1 It can be thought of as 1 long vector of registers. Each register is given the name of its ordered index or location. We call this the address. Addresses are usually given in HEX. [Example] 1 k x RAM 000 001 002 3FD 3FE 3FF HEX word size # of words 7 0 0 1 2.. Location or Address. 1021 1022 1023 Decimal Static Random Access Memory(SRAM) 1 byte = bits 1K = 1024 bytes = 2 10 bytes bits = 1 byte, 4 bits = 1 nibble, 1k = 2 10 =1024, M=2 20 (mega-), G=2 30 (giga-), T=2 40 (tera-) 1k x bits = 1KB = 1 kilobyte = 2^10 bytes 2 1

Static RAM To address 1k = 2 10 bits, we need 10 address lines (A 9 ~A 0 ) The data needs lines designated as D 7 ~D 0 Since any of the 1k locations is usable, the address lines A 9 ~A 0 will range from 00 0000 0000B to 11 1111 1111B ( 0 0 0H) to ( 3 F FH) Postfix Abbr: H = Hexadecimal, B = Binary, O = Octal, and D = Decimal Any RAM chip will have n-address lines, m-data lines, and a few control lines. For RAM, control is usually a CE or CS (Chip Enable or Chip Select), a (Write Enable), a RD (Read) or OE (Output enable), etc. The data lines are usually bi-directional (time-multiplexed). To save pins, may indicate the direction of data travel. Prefix Abbr: $ = Hexadecimal, % = Binary, @ = Octal 3 RAM's are said to be volatile, i.e.., information remains while power is on. Typical access times for SRAM are 10 ~ 100ns in CMOS types. Faster (less capacity in bytes) IC 10 technology (TTL, etc.) are also available. A typical 1k x RAM looks like: RAM Timing See next page (Static) RAM Model n Address Bus A 9 ~ A 0 D 7 ~ D 0 RAM A n-1 ~ A 0 D m-1 ~ D 0,,... Control Bus m Data Bus Operation CE D Disable 0 - Hi-Z Read 1 0 Out Write 1 1 In 2114A: 1kx4 SRAM Access time: ~100 ns Address range: 0 - $3FF 4 2

SRAM Timing Diagrams Memory Read Cycle Memory Write Cycle Ref: Lam Fig 6.26 5 RAM Expansion Make a 1k x RAM from 1k x 4 RAMs A 10 9-0 D 7-0 CS(L) (L) 1k x RAM A 9 ~A 0 D 7 ~ D 0 1k x 4 RAM A 10 9-0 A 9 ~A 0 D 7-4 4 D 3 ~ D 0 CS(L) (L) 1k x 4 RAM A 10 9-0 A 9 ~A 0 D 3-0 CS(L) (L) 4 D 3 ~ D 0 6 3

RAM Expansion Make a 2k x 4 RAM from two 1k x 4 RAMs A 11 10-0 D 3-0 4 CS(L) (L) 2k x 4 RAM A 10 ~A 0 D 3 ~ D 0 1k x 4 RAM A 10 9-0 A 9 ~A 0 D 3-0 A 10 (L) 4 D 3 ~ D 0 1k x 4 RAM A 10 9-0 A 9 ~A 0 D 3-0 A 10 (L) (L) 4 D 3 ~ D 0 A 10 A 10 (L) Can you make a 2k x SRAM with only 1k x 4 SRAMs? 7 Example RAM 1: Add a 4-byte x RAM module to a hypothetical P with 3 address pins, data pins and control pins R, W and E P A 2 -A 0 D 7 -D 0 R W E 1st Byte A 1 -A 0 D 7 -D 0 RAM RD WR CS 54 16 F7 16 39 16 B 16 Last Byte RAM connected to Microprocessor D 7 -D 0 on the P connect to D 7 -D 0 on the RAM RD =E R WR =E W Two of the three address lines go to A 1 -A 0 on the RAM; CS = unused one 1. CS=A 2 ; A 1 =A 1 ;A 0 =A 0 2. CS=A 1 ; A 1 =A 2 ; A 0 =A 0 3. CS=A 0 ; A 1 =A 2 ;A 0 =A 1 4. CS=/A 2 ; A 1 =A 1 ; A 0 =A 0 4

RAM to implement Equations The behavior of the RAM can be thought of as if it were a 3-input output device (e.g., using Choice 4) A 2 A 1 A 0 D 7 D 6 D 5 D 4 D 3 D 2 D 1 D 0 0 0 0 0 1 0 1 0 1 0 0 = 54 16 0 0 1 1 1 1 1 0 1 1 1 = F7 16 0 1 0 0 0 1 1 1 0 0 1 = 39 16 0 1 1 1 0 1 1 1 0 0 0 = B 16 For example: D 5 = /A 2 (A 1 +A 0 ) D 4 = /A 2 1 D 1 = /A 2 /A 1 A 0 9 RAM connected to Microprocessor 1st Byte 0 A 1 A 0 E R E W /A 2 A 2 54 A 16 D 7 1 A D 6 0 F7 D 5 RAM 16 D 4 RD 39 D 16 3 WR D 2 D CS B 1 16 D 0 Last Byte 10 5

RAM connected to P What are the consequences of these choices? >Choice 1: CS=A2; A1=A1; A0=A0 When the mp issues address 000; the RAM does not respond since CS=A2=0; similarly for addresses 001, 010, 011 For address 100 the mp reads $54, for 101 the mp reads $F7, for 110 the mp reads $39, for 111 the mp reads $B The 4-byte RAM starts at address 100 11 Conclusions from Example RAM 1 The data in the RAM will not be accessed contiguously unless we connect the matching contiguous low order lines to the RAM A 1 =A 1 and A 0 =A 0 We have a choice of CS=/A 2 or CS=A 2 ; if we want the RAM in the low memory range choose CS=/A 2 ; if in the high memory range CS=A 2 For contiguous access we always connect the low order address pins to all the RAM address pins CS = f (unused high order address lines). If we have m unused address lines we will have 2 m starting addresses for the contiguous memory block 12 6

Data Arrangement in RAM Sometimes the RAM is organized internally as a matrix with a column address & a row address, e.g., x 512 x bit RAM ( x 512) x = 4k x RAM, but we use 9 bits as a row address and 3 bits for a column address. (512 = 2 9, = 2 3, 4k = 2 12 ) Total Storage = 2 12 words (word= bits) or 000 0 0000 0000 512 to 111 1 1111 1111 rows or $000 (=000H) to $FFF (=FFFH) columns We can think of lines A 11 ~A 9 as column selector and lines A ~A 0 as a row selector. Each selected element is eight bits deep. The user does not really care how the RAM is organized. He only sees the fact that it stores 4k x. 13 Dynamic RAM (DRAM) DRAM is also volatile RAM DRAM must be periodically rewritten (refreshed) else the info will be lost! DRAM s have higher density (more bits per unit area of silicon) and are faster (but since we have to refresh them, the net time may be slower than SRAM). Can get 16M x bits (16M= 4k x 4k = 2 24 ) and larger. For the details of refreshing and timing involve using lines RAS & CAS, see next slide. General DRAM Model n-bits for row Address Bus n-bits for column => 2*n address bits n A n-1 ~ A 0 D m-1 ~ D 0 m Data Bus RAS CAS 14 7

DRAM Memory Organization A typical 64k x 1bit DRAM is organized so that one supplies the 16-bit address as an -bit row & -bit column using the same input pins. You time multiplex the row & column address info. 64k x 1 64k = 2 16 = (2 ) (2 ) A 7 -A 0 First you supply the high order Control D bits (row address), then the low 0 1 order bits (column address) To interface this type IC, the digital designer must design a sequential circuit to receive the 16 bit address as a parallel input and feed it as 2 -bit numbers to the DRAM. This is called a DRAM controller. See timing diagram of a typical DRAM in on next pages. 15 DRAM Read Cycle Ref Lam Fig 6.31 16

DRAM Write Cycle Ref: Lam Fig 6.31 17 DRAM RAS-Only Refresh Cycle Ref: Lam Fig 6.31 1 9

Read Only Memory (ROM) It is non-volatile (no power required to hold the information). ROM (masked ROM) is manufactured with its content already supplied and is, therefore, non- reversible. PROM is programmable ROM, like PLA s & PAL s you blow fuses to program it. It retains data even after power is disconnected. EPROM (Erasable/Programmable ROM) is programmed with higher voltage pulses and is erasable by exposing the chip to ultraviolet light. (erase time: 5 ~ 15 minutes is typical); ex: 2764 (kx), 270 (1kx) EEPROM (Electrically Erasable/Programmable ROM) is electrically alterable via higher voltage pulses. Typical erase times are 1 ms per row (or bank) or per item. ex: 264 (kx) FLASH EEPROM is electrically alterable. Newer than regular EEPROM. ex: 2F256 (32kx) See http://mil.ufl.edu/3701/docs/umbc_06_memory1.html (originally located at http://www.csee.umbc.edu/~plusquel/310/slides/06_memory1.html) 19 See [Lam Fig 6.29] (2716-EPROM, 2kx), See (on web site) 264- EEPROM (kx) 2C64_EEPROM.pdf ROM Model n A n-1 ~ A 0 Address Bus D m-1 ~ D 0, OE, Control Bus m Data Bus A typical k x ROM: After programming, Data bus is output only A 12 ~ A 0 13 ROM D 7 ~ D 0 OE Function CE OE D ROM is ideal for storing non-changing Disable ROM 0 - Hi-Z software such as the bootstrap and Disable ROM - 0 Hi-Z diagnostic software on PC s. (e.g., BIOS [basic I/O system] in PCs) Read 1 1 Out 20 10

The End! 21 11