Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-1 Lecture 27 Sequencial Logic (cont’d) Mar. 17, 2003.

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.
Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Memory elements. n Basics of sequential machines.
1 DIGITAL DESIGN I DR. M. MAROUF MEMORY Read-only memories Static read/write memories Dynamic read/write memories Author: John Wakerly (CHAPTER 10.1 to.
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.
ECE 301 – Digital Electronics Memory (Lecture #21)
Chapter 10. Memory, CPLDs, and FPGAs
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 5 Memory.
Overview Memory definitions Random Access Memory (RAM)
Chapter 5 Memory ECE 4330 Embedded System Design.
Modern VLSI Design 2e: Chapter 5 Copyright  1998 Prentice Hall PTR Topics n Memory elements. n Basics of sequential machines.
1 Semiconductor Memory ECE 3710 Fall Embedded Systems Design: A Unified Hardware/Software Introduction © 2000 Vahid & Givargis ECE 3710 Fall 2008.
Chapter 5 Internal 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.
F1020/F1031 COMPUTER HARDWARE MEMORY. Read-only Memory (ROM) Basic instructions for booting the computer and loading the operating system are stored in.
1 The 8051 Microcontroller and Embedded Systems CHAPTER INTERFACING TO EXTERNAL MEMORY.
Khaled A. Al-Utaibi Memory Devices Khaled A. Al-Utaibi
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 5 Memory.
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.
COMP3221: Microprocessors and Embedded Systems
Memory Technology and Interfacing. Stored Program Model Memory Output Input CPU Stored-program computer model.
Memory and Programmable Logic Memory device: Device to which binary information is transferred for storage, and from which information is available for.
FPGA-Based System Design: Chapter 3 Copyright  2004 Prentice Hall PTR Topics n Latches and flip-flops. n RAMs and ROMs.
Chapter 8 Memory Interface
Memory and Storage Dr. Rebhi S. Baraka
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.
Internal Memory.
Digital Design: Principles and Practices
Digital Logic Design Instructor: Kasım Sinan YILDIRIM
1 Memory Design EE 208 – Logic Design Chapter 7 Sohaib Majzoub.
Chapter 6: Internal Memory Computer Architecture Chapter 6 : Internal Memory Memory Processor Input/Output.
SKILL AREA: 1.2 MAIN ELEMENTS OF A PERSONAL COMPUTER.
Computer Architecture Lecture 24 Fasih ur Rehman.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
Semiconductor Memory Types
Chapter 5 Internal Memory. contents  Semiconductor main memory - organisation - organisation - DRAM and SRAM - DRAM and SRAM - types of ROM - types of.
Objectives : At the end of this lesson, students should be able to : i.Identify the types of memory chip and their functions. ii.Define the difference.
Computer Architecture Chapter (5): Internal Memory
AHMEDABAD INSTITUTE OF TECHNOLOGY
Memories.
Chapter 5 Internal Memory
William Stallings Computer Organization and Architecture 7th Edition
Internal Memory.
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.
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.
Chapter 5 Memory.
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 7th Edition
William Stallings Computer Organization and Architecture 8th Edition
BIC 10503: COMPUTER ARCHITECTURE
MICROPROCESSOR MEMORY ORGANIZATION
William Stallings Computer Organization and Architecture 8th Edition
Presentation transcript:

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-1 Lecture 27 Sequencial Logic (cont’d) Mar. 17, 2003

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-2 Topics n Memory elements. n Basics of sequential machines.

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-3 Flip-flops n Not transparent—use multiple storage elements to isolate output from input. n Major varieties: –master-slave; –edge-triggered.

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-4 Master-slave flip-flop  DQ masterslave

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-5 Master-slave operation  = 0: master latch is disabled; slave latch is enabled, but master latch output is stable, so output does not change.  = 1: master latch is enabled, loading value from input; slave latch is disabled, maintaining old output value.

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-6 Sequential machines n Use memory elements to make primary output values depend on state + primary inputs. n Varieties: –Mealy—outputs function of present state, inputs; –Moore—outputs depend only on state.

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-7 Sequential machine definition n Machine computes next state N, primary outputs O from current state S, primary inputs I. n Next-state function: –N =  (I,S). n Output function (Mealy): –O = (I,S).

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-8 FSM structure

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-9 Constraints on structure n No combinational cycles. n All components must have bounded delay.

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-10 Signal skew Machine data signals must obey setup and hold times—avoid signal skew.

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-11 Clock skew Clock must arrive at all memory elements in time to load data.

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-12 Assignment 3 Questions: 3.9 (switch logic), 3.13, 3.15, 3.16, 3.17, 5.1, 5.4 VHDL and Verilog: one-bit full-adder 4-bit counter Due date: Mar. 31, :00 pm Drop off: EC 2135

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-13 Lecture 28 VHDL and Memory RAM and ROM Mar. 19, 2003

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-14 VHDL example Counter

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-15 Memory: basic concepts n Stores large number of bits –m x n: m words of n bits each –k = Log 2 (m) address input signals –or m = 2^k words –e.g., 4,096 x 8 memory: »32,768 bits »12 address input signals »8 input/output data signals n Memory access –r/w: selects read or write –enable: read or write only when asserted –multiport: multiple accesses to different locations simultaneously m × n memory … … n bits per word m words enable 2 k × n read and write memory A0A0 … r/w … Q0Q0 Q n-1 A k-1 memory external view

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-16 Write ability/ storage permanence n Traditional ROM/RAM distinctions –ROM »read only, bits stored without power –RAM »read and write, lose stored bits without power n Traditional distinctions blurred –Advanced ROMs can be written to »e.g., EEPROM –Advanced RAMs can hold bits without power »e.g., NVRAM n Write ability –Manner and speed a memory can be written n Storage permanence –ability of memory to hold stored bits after they are written Write ability and storage permanence of memories, showing relative degrees along each axis (not to scale). External programmer OR in-system, block-oriented writes, 1,000s of cycles Battery life (10 years) Write ability EPROM Mask-programmed ROM EEPROMFLASH NVRAM SRAM/DRAM Storage permanence Nonvolatile In-system programmable Ideal memory OTP ROM During fabrication only External programmer, 1,000s of cycles External programmer, one time only External programmer OR in-system, 1,000s of cycles In-system, fast writes, unlimited cycles Near zero Tens of years Life of product

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-17 Write ability n Ranges of write ability –High end »processor writes to memory simply and quickly »e.g., RAM –Middle range »processor writes to memory, but slower »e.g., FLASH, EEPROM –Lower range »special equipment, “programmer”, must be used to write to memory »e.g., EPROM, OTP ROM –Low end »bits stored only during fabrication »e.g., Mask-programmed ROM n In-system programmable memory –Can be written to by a processor in the embedded system using the memory –Memories in high end and middle range of write ability

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-18 Storage permanence n Range of storage permanence –High end »essentially never loses bits »e.g., mask-programmed ROM –Middle range »holds bits days, months, or years after memory’s power source turned off »e.g., NVRAM –Lower range »holds bits as long as power supplied to memory »e.g., SRAM –Low end »begins to lose bits almost immediately after written »e.g., DRAM n Nonvolatile memory –Holds bits after power is no longer supplied –High end and middle range of storage permanence

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-19 ROM: “Read-Only” Memory n Nonvolatile memory n Can be read from but not written to, by a processor in an embedded system n Traditionally written to, “programmed”, before inserting to embedded system n Uses –Store software program for general-purpose processor »program instructions can be one or more ROM words –Store constant data needed by system –Implement combinational circuit 2 k × n ROM … Q0Q0 Q n-1 A0A0 … enable A k-1 External view

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-20 Example: 8 x 4 ROM n Horizontal lines = words n Vertical lines = data n Lines connected only at circles n Decoder sets word 2’s line to 1 if address input is 010 n Data lines Q3 and Q1 are set to 1 because there is a “programmed” connection with word 2’s line n Word 2 is not connected with data lines Q2 and Q0 n Output is 1010

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week EPROM: Erasable programmable ROM n Programmable component is a MOS transistor –Transistor has “floating” gate surrounded by an insulator –(a) Negative charges form a channel between source and drain storing a logic 1 –(b) Large positive voltage at gate causes negative charges to move out of channel and get trapped in floating gate storing a logic 0 –(c) (Erase) Shining UV rays on surface of floating-gate causes negative charges to return to channel from floating gate restoring the logic 1 –(d) An EPROM package showing quartz window through which UV light can pass n Better write ability –can be erased and reprogrammed thousands of times n Reduced storage permanence –program lasts about 10 years but is susceptible to radiation and electric noise n Typically used during design development

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-22 EEPROM: Electrically erasable programmable ROM n Programmed and erased electronically –typically by using higher than normal voltage –can program and erase individual words n Better write ability –can be in-system programmable with built-in circuit to provide higher than normal voltage »built-in memory controller commonly used to hide details from memory user –writes very slow due to erasing and programming »“busy” pin indicates to processor EEPROM still writing –can be erased and programmed tens of thousands of times n Similar storage permanence to EPROM (about 10 years) n Far more convenient than EPROMs, but more expensive

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-23 RAM: “Random-access” memory n Typically volatile memory –bits are not held without power supply n R ead and written to easily by embedded system during execution n Internal structure more complex than ROM –a word consists of several memory cells, each storing 1 bit –ea ch input and output data line connects to each cell in its column –rd/wr connected to every cell –when row is enabled by decoder, each cell has logic that stores input data bit when rd/wr indicates write or outputs stored bit when rd/wr indicates read enable 2 k × n read and write memory A0A0 … r/w … Q0Q0 Q n-1 A k-1 external view 4×4 RAM 2×4 decoder Q0Q0 Q3Q3 A0A0 enable A1A1 Q2Q2 Q1Q1 Memory cell I0I0 I3I3 I2I2 I1I1 rd/wr To every cell internal view

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-24 Basic types of RAM n SRAM: Static RAM –Memory cell uses flip-flop to store bit –Requires 6 transistors –Holds data as long as power supplied n DRAM: Dynamic RAM –Memory cell uses MOS transistor and capacitor to store bit –More compact than SRAM –“Refresh” required due to capacitor leak »word’s cells refreshed when read –Typical refresh rate microsec. –Slower to access than SRAM memory cell internals Data W Data' SRAM Data W DRAM

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-25 Ram variations n PSRAM: Pseudo-static RAM –DRAM with built-in memory refresh controller –Popular low-cost high-density alternative to SRAM n NVRAM: Nonvolatile RAM –Holds data after external power removed –Battery-backed RAM »SRAM with own permanently connected battery »writes as fast as reads »no limit on number of writes unlike nonvolatile ROM-based memory –SRAM with EEPROM or flash »stores complete RAM contents on EEPROM or flash before power turned off

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-26 VHDL example RAM / ROM

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-27 Lecture 29 Verilog Mar. 21, 2003

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-28 Verilog n What is verilog? –Hardware Description Language(HDL) n Why use a HDL? –It is becoming increasingly difficult to design directly on hardware. –Exploring different design options is easier and cheaper. –Reduces time and cost.

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-29 Verilog

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-30 Verilog Example1 module mux(out, a, b, c); endmodule input a, b, c; output out; not n0(c_, c); and (o1, a, b); or (out, c_, o1);

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-31 Verilog Example2 counter

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-32

Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-33