Read Only Memory ROM

Similar documents
Address connections Data connections Selection connections

UMBC. Select. Read. Write. Output/Input-output connection. 1 (Feb. 25, 2002) Four commonly used memories: Address connection ... Dynamic RAM (DRAM)

Allmost all systems contain two main types of memory :

William Stallings Computer Organization and Architecture 6th Edition. Chapter 5 Internal Memory

Organization. 5.1 Semiconductor Main Memory. William Stallings Computer Organization and Architecture 6th Edition

Basic Organization Memory Cell Operation. CSCI 4717 Computer Architecture. ROM Uses. Random Access Memory. Semiconductor Memory Types

Microcontroller Systems. ELET 3232 Topic 11: General Memory Interfacing

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

Chapter 5 Internal Memory

Introduction read-only memory random access memory

Memory & Simple I/O Interfacing

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Computer Organization. 8th Edition. Chapter 5 Internal Memory

Computer Organization and Assembly Language (CS-506)

Overview. Memory Classification Read-Only Memory (ROM) Random Access Memory (RAM) Functional Behavior of RAM. Implementing Static RAM

Concept of Memory. The memory of computer is broadly categories into two categories:

Memory Expansion. Lecture Embedded Systems

Summer 2003 Lecture 18 07/09/03

Read and Write Cycles

Design and Implementation of an AHB SRAM Memory Controller

Semiconductor Memories: RAMs and ROMs

Memory and Programmable Logic

EE 308: Microcontrollers

ECSE-2610 Computer Components & Operations (COCO)

Internal Memory. Computer Architecture. Outline. Memory Hierarchy. Semiconductor Memory Types. Copyright 2000 N. AYDIN. All rights reserved.

William Stallings Computer Organization and Architecture 8th Edition. Chapter 5 Internal Memory

Embedded Systems Design: A Unified Hardware/Software Introduction. Outline. Chapter 5 Memory. Introduction. Memory: basic concepts

Embedded Systems Design: A Unified Hardware/Software Introduction. Chapter 5 Memory. Outline. Introduction

Logic and Computer Design Fundamentals. Chapter 8 Memory Basics

EECS150 - Digital Design Lecture 16 Memory 1

8051 INTERFACING TO EXTERNAL MEMORY

COMP3221: Microprocessors and. and Embedded Systems. Overview. Lecture 23: Memory Systems (I)

Lecture 13: Memory and Programmable Logic

Menu. word size # of words byte = 8 bits

Chapter 4 Main Memory

UNIT:4 MEMORY ORGANIZATION

Module 5a: Introduction To Memory System (MAIN MEMORY)

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Lecture Objectives. Introduction to Computing Chapter 0. Topics. Numbering Systems 04/09/2017

Memories. Design of Digital Circuits 2017 Srdjan Capkun Onur Mutlu.

Chapter 5. Internal Memory. Yonsei University

Memory. Outline. ECEN454 Digital Integrated Circuit Design. Memory Arrays. SRAM Architecture DRAM. Serial Access Memories ROM


Chapter TEN. Memory and Memory Interfacing

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422)

EECS150 - Digital Design Lecture 16 - Memory

7/28/ Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc Prentice-Hall, Inc.

Computer Memory. Textbook: Chapter 1

Memory and Programmable Logic

EE251: Thursday November 15

CSEE 3827: Fundamentals of Computer Systems. Storage

CS 320 February 2, 2018 Ch 5 Memory

MEMORY BHARAT SCHOOL OF BANKING- VELLORE

TSEA22, DIGITALTEKNIK LECTURE 7

Contents. Main Memory Memory access time Memory cycle time. Types of Memory Unit RAM ROM

ELCT 912: Advanced Embedded Systems

Chapter 6 (Lect 3) Counters Continued. Unused States Ring counter. Implementing with Registers Implementing with Counter and Decoder

(Advanced) Computer Organization & Architechture. Prof. Dr. Hasan Hüseyin BALIK (5 th Week)

PROGRAMMABLE MODULES SPECIFICATION OF PROGRAMMABLE COMBINATIONAL AND SEQUENTIAL MODULES

Memory & Logic Array. Lecture # 23 & 24 By : Ali Mustafa

CHAPTER X MEMORY SYSTEMS

Large and Fast: Exploiting Memory Hierarchy

CENG4480 Lecture 09: Memory 1

COA. Prepared By: Dhaval R. Patel Page 1. Q.1 Define MBR.

CS 261 Fall Mike Lam, Professor. Memory

CS 33. Memory Hierarchy I. CS33 Intro to Computer Systems XVI 1 Copyright 2016 Thomas W. Doeppner. All rights reserved.

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 3, 2015

Sistemas Digitais I LESI - 2º ano

Lecture-7 Characteristics of Memory: In the broad sense, a microcomputer memory system can be logically divided into three groups: 1) Processor

Chapter 8 Memory Basics

ECE 485/585 Microprocessor System Design

ECE 2300 Digital Logic & Computer Organization

Review: Timing. EECS Components and Design Techniques for Digital Systems. Lec 13 Storage: Regs, SRAM, ROM. Outline.

UNIT V (PROGRAMMABLE LOGIC DEVICES)

FIGURE Three EPROMs interfaced to the 8088 microprocessor.

COMP2121: Microprocessors and Interfacing. Introduction to Microprocessors

chapter 8 The Memory System Chapter Objectives

Memory Pearson Education, Inc., Hoboken, NJ. All rights reserved.

The Memory Hierarchy Part I

RTL Design (2) Memory Components (RAMs & ROMs)

Topic #6. Processor Design

THE MICROCOMPUTER SYSTEM CHAPTER - 2

Grundlagen Microcontroller Memory. Günther Gridling Bettina Weiss

a) Memory management unit b) CPU c) PCI d) None of the mentioned

Introduction to SRAM. Jasur Hanbaba

Semiconductor Memory Types Microprocessor Design & Organisation HCA2102

+1 (479)

CS429: Computer Organization and Architecture

Chapter 7: Processor and Memory

Contents. Memory System Overview Cache Memory. Internal Memory. Virtual Memory. Memory Hierarchy. Registers In CPU Internal or Main memory

CS429: Computer Organization and Architecture

CS311 Lecture 21: SRAM/DRAM/FLASH

UNIT - V MEMORY P.VIDYA SAGAR ( ASSOCIATE PROFESSOR) Department of Electronics and Communication Engineering, VBIT

CENG3420 Lecture 08: Memory Organization

Chapter One. Introduction to Computer System

Mark Redekopp, All rights reserved. EE 352 Unit 10. Memory System Overview SRAM vs. DRAM DMA & Endian-ness

CS 31: Intro to Systems Digital Logic. Kevin Webb Swarthmore College February 2, 2016

Memory classification:- Topics covered:- types,organization and working

Computer Structure. Unit 2: Memory and programmable devices

1. INTRODUCTION TO MICROPROCESSOR AND MICROCOMPUTER ARCHITECTURE:

Transcription:

Read Only Memory ROM A read only memory have address inputs and data outputs With m address lines you can access the 2 m different memory addresses At each address, there is one data word with n bits Usually, the ROM also has an Output Enable (OE) input A m-1 ROM Dn-1 A m-2 D n-2 A 1 A 0 2 m x n D 1 D 0

Read Only Memory ROM Exemple of a ROM Read only memory: ROM 4M 512k 8 bit CE OE Chip Enable activates the chip Output Enable connects memory to outputs (otherwise they are in the three-state mode)

A small ROM Possible memory content 8x4 ROM A 2 A 1 A 0 D 3 D 2 D 1 D 0 A 2 A 1 A 0 D 3 D 2 D 1 D 0 0 0 0 0 0 1 0 0 0 1 0 1 1 0 0 1 0 1 1 1 1 0 1 1 1 1 0 1 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 1 0 1 0 0 1 1 1 1 0 0 1 1

ROM Pullup 1 V DD GND Address Adress Content Innehåll x 1 x 0 z 3 z 2 z 1 z 0 00 1010 01 0101 10 1100 11 0001 x 0 x 1 0 1 2 3 Ord 0 GND Ord 1 Ord 2 GND Ord 3 OE OE=Output Enable z 3 z 2 z 1 z 0

ROM implementation of combinatorical functions x n-1 x 1 x 0 f(x n-1,,x 1,x 0 ) z m-1 z 1 z 0 Adress Address Content Innehåll x n-1 x 1 x 0 z m-1 z 1 z 0 0 00 1 10 0 01 0 01 1 11 0 01 A ROM having n inputs with m outputs can be used to implement a combinatorial function with m outputs and 2 n min-terms

ROM implementation of sequence circuit x n-1 x 4 x 3... f(x n-1,,x 1,x 0 ) z m-1 z 4 z 3... Adress Address Innehåll Content x n-1 x 3 x 2 x 1 x 0 z m-1 z 3 z 2 z 1 z 0 0 0000 1 0001 0 0001 0 0010 1 1111 0 0000 x 0 z 0 CP A Moore-machine = one ROM and a register with D-flipflops With feedbacks a ROM can be used to generate sequences and implement state machines

Read and Write Memory Random Access Memory RAM RAM-memory has also a Write (WR) input which allows us to enter a data word at a given address D n-1 D 0 are both inputs and outputs. A m-1 RAM Dn-1 A m-2 D n-2 A 1 A 0 OE WR 2 m x n D 1 D 0

Read-Write-Memory Random Access Memory RAM Read/Write memory: SRAM 4M 512k 8 bit RD WR CS RD WR Chip Select activates the chip RD read from memory, data outputs are active WR write to memory (at write the data outputs are in the three-state mode )

SRAM Static Random Access Memory A SRAM-memory consits of a matrix of SRAM-cells To write Data is used at input! Sel is set to 1 and the value that is on Data is stored in the cell Data Sel Strongest! To read Data is used as output! Sel is set to 1, and the value from the cell is present at the output

SRAM Data 1 Data 0 A matrix is formed by 2 m x n SRAM-cells Sel 0 Sel 1

SRAM-memory tristate buffers are used to ensure that you just either reads or writes Data inputs Write Sel 0 Sel 1 d n 1 d n 2 d 0 Address a 0 a 1 a m 1 m -to-2 m decoder Sel 2 Sel 2 m 1 Read Data outputs q n 1 q n 2 q 0

DRAM Dynamic RAM SRAM memorycell needs 4 transistors and it becomes too costly to implement a large memory DRAM memorycell is using only one transistor and one capacitor

DRAM Memorycell DRAM-cell consists of only one transistor and one capacitor Skrivning To load the cell the word line is set to 1 The cell now optains the value from the bit line Word Line C 1-bit DRAM cell Bit Line

DRAM Memorycell To read is a little bit more complex You do not want to lose the information when reading! The bit-line is set at a voltage between the High and Low To read the cell the word line is set to 1 The bitline now adjusts it s voltage to a voltage up or down An extra circuit (per bit line) senses the current change direction to create a real 0 or 1 Aftervards the charge in the capacitor C must be restored! Word Line C 1-bit DRAM cell Bit Line

DRAM Memory Memorymodule with 8 chips Chip 256Mbit (32M 8)

SRAM vs DRAM SRAM takes up more space but a DRAM requires a simpler access logic and is therefore faster (but also more expensive) DRAM is used for random access memories in our regular computers When you remove the power you loses the contents of SRAM or DRAM memory!

Volatile memorys Memory types Memories lose their information if power is disconnected static RAM (SRAM) dynamic RAM (DRAM) Non-volatile memorys Memories keep their information if power is disconnected Flash (blockwise writing) EPROM, EEPROM (bytewise writing) We need a combination of different memories in an electrotechnical design!

Non-volatile memory Flash-memory low cost and low power consumption can be erased and updated but it takes much more time than in a RAM-memory

EPROM Erasable Programmable ROM Programmable ROM (can be programmed with a chip programmer) Erasable - can be erased using ultraviolet light and then reprogrammed. Hence the "window" on the top side of the chip. When working with modern electronic equipment you will not have to meet the EPROM.

Memory technologies Technology Accesstime Cost $/GB SRAM 1 ns 1000 DRAM 50 ns 100 HDD 10 ms 1 Fast memory is expensive and inexpensive memories are slow! Principle numbers.

Logic in a microprocessor There are both combinatorial and sequential logic in a processor. Control logik is a statemachine while the ALU are mostly combinatorial.

Registry element Symbol D in WR Clock Dut D in Dut > WR WR / hold WR = 1 synchronous writing WR = 0 hold 1 logic element in a FPGA

Register Symbol WR > 32 bit register is 32 logic elements in a FPGA

Program counter -register Register: hoppadress JA Jump/Run Clock > 4 Register: programräknare MUX PC ADD 32 bit instruktion All processors have a program counter pointing out where the next instruction is to be fetched in the memory. Program memory: Byteaddressed An instruction is 4 bytes PC, Program Counter counts up with "4" after each instruction. At the program jumps PC is loaded with the jump address JA (Jump Address) and then the program continues from there.

Register with threestateoutpot Symbol WR > OE Symbol bidirectional (inputs and outputs are connected together) > WR OE

Register and Databus 0 1 1 0 OE > WR OE > WR Databus Several bidirectional registers with three state outputs can be connected to each other to form a common data bus.

Register and Databuss 1 0 0 1 OE > WR OE > WR Databus Data can now be controlled to be copied between all registers on the data bus.

Dubble port register Symbol WR > OE1 OE2 More Dubble portregisters can be paired with each other for two common output buses.

Mikrocomputer - architecture The computer registers. A 32 32 bit dubbleport Register File

Mikrocomputer - add Example Add instruction 1. The instruction add R1,R2,R3 is fetched from memory (as binary code) 2. The instruction is decoded

Mikrocomputer - add Example Add instruction 1. The instruction add R1,R2,R3 is fetched from memory (as binary code) 2. The instruction is decoded

Mikrocomputer - add Example Add instruction 3. Register R2 and R3 are add with the ALU 4. The Result is written to register R1

Mikrocomputer - add Example Add instruction 3. Register R2 and R3 are add with the ALU 4. The Result is written to register R1 it requires several clock pulse periods for the implementation of an instruction. (maybe you could arrange a Pipeline? )

Register file The processor has a 32 32 bit register file (with dual port registers). It can therefore be simultaneously read from any two registers or write to a register per clock pulse. The computer instruction add, means the sum add R1, R2,R3 R2+R3 is put in R1 A register file whith 32 registers are 32 2 = 1024 logic elements in a FPGA A 32 bit adder are 32 logicelements in a FPGA R0 R31 32 32 bit register file ADD

Possible instruction format 32 bit instruction add r1, r2, r3 5 bit 1 of 32 reg 5 bit 1 of 32 reg 5 bit 1 of 32 reg Operatingcode we want to add