Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


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

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

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

3 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.

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

5 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.

6 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.

7 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).

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

9 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.

10 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.

11 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.

12 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, 2003 12:00 pm Drop off: EC 2135

13 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

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

15 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

16 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

17 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

18 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

19 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

20 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

21 Modern VLSI Design 3e: Chapters 5& 6Partly from 2002 Prentice Hall PTR week11-21. 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

22 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

23 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

24 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 15.625 microsec. –Slower to access than SRAM memory cell internals Data W Data' SRAM Data W DRAM

25 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

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

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

28 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.

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

30 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);

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

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

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


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

Similar presentations


Ads by Google