Slides for Lecture 35
ENEL 353: Digital Circuits — Fall 2013 Term Steve Norman, PhD, PEng Electrical & Computer Engineering Schulich School of Engineering University of Calgary 2 December, 2013 ENEL 353 F13 Section 02 Slides for Lecture 35 slide 2/33Previous Lecture
Counters and shift registers. Introduction to memory arrays. ENEL 353 F13 Section 02 Slides for Lecture 35 slide 3/33Today’s Lecture
Completion of coverage of memory arrays, including use of ROM circuits to implement combinational logic functions. Related reading in Harris & Harris: Section 5.5 ENEL 353 F13 Section 02 Slides for Lecture 35 slide 4/33Quick review: The concept of a memory array
These are the essential inputs and outputs of a memory array . . . Array M Data N Address For the example at left, with 32 stored bits, what are N and M? 1 0 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 Address 111 110 101 100 011 010 001 000 8 4-bit words in 8 rows 4 columns ENEL 353 F13 Section 02 Slides for Lecture 35 slide 5/33Bit cells, wordlines, and bitlines
Each bit stored within a memory array in stored in a tiny circuit element called a bit cell. Signalling to a bit cell is done through two wires: a wordline and a bitline. bit stored wordline bitline Wordline: Each wordline is connected to all of the bits within a single word. Bitline: Each bitline is connected to all of the bits within a single column. If a memory array has an 8-bit address bus and a 9-bit data bus, how many wordlines are there? How many bitlines? ENEL 353 F13 Section 02 Slides for Lecture 35 slide 6/33More about wordlines
bit stored bit stored wordlinei bit stored bitline1 bitlineM−1 bitline0. . . . . .
Each wordline is connected to all of the bits within a single word. Normally one wordline is ON and all the others are OFF, so that a single word is selected for reading or writing. What kind of circuit element is perfectly suited for converting an address input into the correct set of wordline signals? ENEL 353 F13 Section 02 Slides for Lecture 35 slide 7/33Organization of a 4 × 3 memory array
wordline3 11 10 2:4 Decoder Address 01 00 stored bit = 0 stored bit = 1 stored bit = 0 stored bit = 1 stored bit = 0 stored bit = 0 stored bit = 1 stored bit = 1 stored bit = 0 stored bit = 0 stored bit = 1 stored bit = 1 wordline2 wordline1 wordline0 bitline2 bitline1 bitline0 Data 2 Data 1 Data 0 2 Image is Figure 5.42 from Harris D. M. and Harris S. L., Digital Design and Computer Architecture, 2nd ed., c 2013, Elsevier, Inc. ENEL 353 F13 Section 02 Slides for Lecture 35 slide 8/33Dot notation for ROM circuits
Often a ROM is drawn showing- nly its decoder, the wordlines
ROM-based implementation of logic functions
A ROM circuit can be thought of as a “truth table baked into silicon.” This way of thinking about ROM leads to the conclusion that any combinational logic element can be implemented as a ROM circuit. N M C L can be implemented as N M Data Address ROM 2N × M