3-1-1 Chapter 3 Memory and Memory Interfacing Section 3.01 Semiconductor Memory Fundamentals In the design of all computers, semiconductor memories are.

Slides:



Advertisements
Similar presentations
Chapter 5 Internal Memory
Advertisements

Computer Organization and Architecture
Computer Organization and Architecture
+ CS 325: CS Hardware and Software Organization and Architecture Internal Memory.
1 Homework Reading –Tokheim, Chapter 12-1 through 12-4 Machine Projects –MP4 due at start of next class Labs –Continue with your assigned section.
Microprocessor System Design. Outline Address decoding Chip select Memory configurations.
What is memory? Memory is used to store information within a computer, either programs or data. Programs and data cannot be used directly from a disk or.
Overview Memory definitions Random Access Memory (RAM)
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 5 Internal Memory
Memory Devices Wen-Hung Liao, Ph.D..
Chapter 4 Computer Memory
IT Systems Memory EN230-1 Justin Champion C208 –
Memory Key component of a computer system is its memory system to store programs and data. ITCS 3181 Logic and Computer Systems 2014 B. Wilkinson Slides12.ppt.
1 EE365 Read-only memories Static read/write memories Dynamic read/write memories.
Memory and Storage - Sheetal Gosrani. Overview Memory Hierarchy RAM Memory Chip Organization ROM Flash Memory.
Logic Device and Memory. Tri-state Devices Tri-state logic devices have three states: logic 1, logic 0, and high impedance. A tri-state device has three.
1 The 8051 Microcontroller and Embedded Systems CHAPTER INTERFACING TO EXTERNAL MEMORY.
Memory.
Physical Memory By Gregory Marshall. MEMORY HIERARCHY.
8051 INTERFACING TO EXTERNAL MEMORY
Chapter 4 ระบบหน่วยความจำ The Memory System
Memory Hierarchy.
Memory Main memory consists of a number of storage locations, each of which is identified by a unique address The ability of the CPU to identify each location.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 5 Internal Memory.
Memory and Programmable Logic
Random access memory.
Memory and Programmable Logic Dr. Ashraf Armoush © 2010 Dr. Ashraf Armoush.
Dec Hex Bin 10 A ORG ; TEN Memory and Memory Interfacing.
Memory. Memory Capacity of Computers/Chips The number of bits that a computer/chip can store is called its capacity. While the memory capacity of a memory.
Chapter 5 Internal Memory. Semiconductor Memory Types.
Memory and Programmable Logic Memory device: Device to which binary information is transferred for storage, and from which information is available for.
Chapter 8 Memory Interface
MODULE 5: Main Memory.
Memory Interface A Course in Microprocessor Electrical Engineering Dept. University of Indonesia.
Memory Organization and Interfacing CSE 2312 Maher Al-Khaiyat.
1 Memory Design EE 208 – Logic Design Chapter 7 Sohaib Majzoub.
MEMORY INTERFACE (ROMS, RAMS). Computer Memory Overview.
Memory and Register. Memory terminology read/write operation volotile/non volatile determine the capacity from input and output timing requirements of.
Memory Cell Operation.
Microprocessor Fundamentals Week 3 Mount Druitt College of TAFE Dept. Electrical Engineering 2008.
Digital Circuits Introduction Memory information storage a collection of cells store binary information RAM – Random-Access Memory read operation.
Gunjeet Kaur Dronacharya Group of Institutions. Outline I Random-Access Memory Memory Decoding Error Detection and Correction Read-Only Memory Programmable.
Computer Architecture Chapter (5): Internal Memory
AHMEDABAD INSTITUTE OF TECHNOLOGY
MICROPROCESSOR BASED SYSTEM DESIGN BY PROF. DR. B. S. CHOWDHRY Lecture #
Index What is an Interface Pins of 8085 used in Interfacing Memory – Microprocessor Interface I/O – Microprocessor Interface Basic RAM Cells Stack Memory.
UNIT V Programmable Devices. RAM A RAM constitutes the internal memory of the CPU for storing data, program and program result. It is read/write memory.
Chapter 5 - Internal Memory 5.1 Semiconductor Main Memory 5.2 Error Correction 5.3 Advanced DRAM Organization.
Memory and Programmable Logic
Chapter 5 Internal Memory
Internal Memory.
Principles & Applications
C.k. Pithawalla Collage of Engineering & Technology surat
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
Introduction to Computing Chapter 0
MICROPROCESSOR MEMORY ORGANIZATION
Chapter 4: MEMORY.
Chapter 4 Internal Memory
William Stallings Computer Organization and Architecture 8th Edition
Semiconductor memories are classified in different ways. A distinction is made between read-only (ROM) and read-write (RWM) memories. The contents RWMs.
Presentation transcript:

3-1-1 Chapter 3 Memory and Memory Interfacing Section 3.01 Semiconductor Memory Fundamentals In the design of all computers, semiconductor memories are used as primary storage for code and data. The main requirement of primary memory is that it must be fast in responding to CPU. Memory capacity Computer: byte Memory: bit

3-1-2 Memory Organization 1.Each memory chip contains 2 x locations, where x is the number of address pins on the chip 2.Each location contains y bits, where y is the number of data pins on the chip. 3.The entire chip will contain 2 x  y bits. Speed One of the most important characteristics of a memory chip is the speed at which data can be accessed from it. The speed of the memory chip is commonly refer to as its access time.

3-1-3

3-1-4 ROM (read-only memory) ROM is the type of memory that does not lose its contents when the power is turned off. nonvolatile memory PROM (programmable ROM) PROM refers to the kind of ROM that the user can burn information into. User-programmable memory For every bit of the PROM, there exists a fuse. OTP (one-time programmable) Table 3-2 shows examples of some popular ROM chips and their characteristics.

3-1-5

3-1-6

3-1-7 EPROM (erasable programmable ROM) EPROM was invented to allow making changes in the contents of PROM after it is burned In EPROM, one can program the memory chip and erase it thousands of times. All EPROM chips have a window that is used to shine ultraviolet (UV) radiation to erase its contents.

3-1-8

3-1-9 To program a UV-EPROM chip: 1.Its contents must be erased. 2.Program the chip 3.Place the chip back into its socket on the system board. Disadvantage of UV-EPROM is that it cannot be programmed while in the system board. EEPROM (electrically erasable programmable ROM) 1.Erase instantly 2.Can select erased byte 3.Program and erase its contents while it is still in the system board.

Flash memory EPROM Since the early 1990s, flash EPROM has become a popular user- programmable memory chip. The process of erasure of the entire contents takes less than a second, or one might say in a flash, hence its name: flash memory. The major difference between EEPROM and flash memory is the fact that when flash memory’s contents are erased the entire device is erased, in contrast to EEPROM, where one can erase a desired section of byte. blocks Mask ROM Whose contents are programmed by the IC manufacturer, it is not a user-programmable ROM.

RAM (random access memory) RAM memory is called volatile memory Static RAM (SRAM) Dynamic RAM (DRAM) NV-RAM (nonvolatile RAM) SRAM Storage cells in static RAM memory are made of flip-flops and therefore do not require refreshing in order to keep their data. at least 6 transistors to build used for cache memory

3-1-12

DRAM Since the early days of the computer, the need for huge, inexpensive read/write memory was a major preoccupation of computer designers. In 1970, Intel Corporation introduced the first dynamic RAM (DRAM). It used a capacitor to store each bit. It requires refreshing. The major advantages are high density (capacity), cheaper cost per bit, and low power consumption per bit. The disadvantage is that it must be refreshed periodically. Since 1970 the capacity of DRAM has exploded.

Packaging Issue in DRAM To reduce the number of pins needed for address, multiplexing/ demultiplexing is used. To split the address into half and send in each half of the address through the same pins The first half of the address is called the raw and the second half is called the column. RAS (row address strobe) CAS (column address strobe) DRAM controller DRAM organization DRAM can have any of  1,  4,  8, or  16 organizations Most DRAMs are  1 and  4.

3-1-15

3-1-16

NV-RAM (nonvolatile RAM) NV-RAM combines the best of RAM and ROM: the read and writablility of RAM, plus the novolatility. 1.It uses extremely power efficient (very very low power consumption) SRAM cells built out of CMOS. 2.It uses an internal lithium battery as a backup energy source. 3.It uses an intelligent control circuitry.

3-1-18

Methods of Address Decoding The CPU provides the address of the data desired, but it is the job of the decoding circuitry to locate the data using the address bits provided by the CPU. No data can be written into or read from the memory chip unless CS is activated. Simple Logic Gate as Address Decoder The simplest method of decoding circuitry is the use of NAND or other gates. Fig. 3-4, which shows that A19-A14 = in order to select the chip. This results in the assignment of address 0C000H to 0FFFFH to this memory chip.

3-1-20

Using the 74xx Decoder This is one of the most widely used address decoder Y0-Y7 A, B, C G2A, G2B, and G1 Using PAL16L8 as an Address Decoder Another widely used decoder is the PAL16L8 chip.

3-1-22

3-1-23

Section 3.2 IBM PC Memory Map If 80x86 CPUs in real mode provide 20 address bits (A0-A19), the maximum amount of memory that they can handle is 1M. 640K bytes of memory for RAM 128K bytes for video display RAM (VDR) 256K bytes for ROM

Conventional Memory: 640K of RAM 64K to 256K RAMs on mother board and others are on expansion cards. Of the 640K bytes of memory, some is used by the MS DOS operating system and the rest of available RAM is used by utilities and application programs. The detailed memory map of IBM PC is shown in Figure 3-8.

3-1-26

3-1-27

3-1-28

3-1-29

Video Display RAM (VDR) map To display information on the monitor of the PC, the CPU must first store that information in memory called video display RAM (VDR). It is the job of the video controller to display it on the screen.

ROM Memory Map BASIC language compiler ROM peripheral board ROMs BIOS ROM Not all the 256K bytes of memory space allocated for ROM are used.

Finding the date of ROM BIOS on Your Computer F000:FFF5 to F000:FFFD

3-1-33

3-1-34

3-1-35

Section 3.3 Memory Interfacing in 8088 IBM PC/XT Of the 356K bytes from ROM, only F4000H:to FFFFFH is implemented in the PC/XT mother board — ROM BIOS — BASIC language ROM Use 74LS138 to decode 6 8K  8 ROM chips are on mother board.

3-1-37

Translating the above binary numbers to hex, the address range FF000H to FFFFFH is assigned to Y7.

Cold Boot on the IBM PC/XT Upon RESET the 8088 starts to fetch information from CS:IP of FFFF: 0000, which gives the physical address FFFF0H. When the computer is RESET, ROM BIOS is the memory that is accessed first by the CPU. The CPU finds the opcode for the FAR jump, EA, at location FFFF0H and the target address of the JUMP at F000:E05BH

Boot procedures of PC Check: 1.CPU 2.ROM 3.BIOS 4.BASIC 5.RAM 6.Devices 7.Hand over to DOS

3-1-41

3-1-42

Data Integrity in ROM To insure the integrity of the ROM’s contents, every PC must perform the checksum calculation to detect any corruption. The checksum byte is an extra byte that is tagged to the end of a series of bytes of data. To calculate the checksum byte, do the following steps: 1.Add the bytes together and drop the carries. 2.Take the 2’s complement of the total sum, and that is the checksum byte, which becomes the last byte of the series. To perform the checksum operation, add all the bytes, including the checksum byte. The result must be zero.

Checksum Program in BIOS

3-1-45