Memory and Programmable Logic
Memory and Programmable Logic
Memory and Programmable Logic
Memory Device: Device to which binary information is transferred for storage, and from which information is available for processing as needed. Memory Unit: is a collection of cells capable of storing a large quantity of binary information. In digital systems, there are two types of memories: 1. 2. RAM ROM
Random-Access Memory
Memory unit: Stores binary information in groups of bits called words. Memory word: group of 1s and 0s and may represent a number, character(s), instruction, or other binary-coded information. Most computer memories use words that are multiples of 8 bits (byte ). 32-bit word 4 bytes
Random-Access Memory
Each word in memory is assigned an address 0 up to 2k 1 (k = # of address lines).
memory content
2KB
To transfer a new word to be stored into memory: 1. Apply the binary address of the word to address lines. 2. Apply the data bits that must be stored in memory to the data input lines. 3. Activate the write input. To transfer a stored word out of memory: 1. Apply the binary address of the word to address lines. 2. Activate the read input.
Memory Types
Integrated circuit RAM units are available in two possible operating modes: static and dynamic. Static RAM (SRAM) consists of of internal latches that store the binary information. The stored information remains valid as long as power is applied to the unit. Dynamic RAM (DRAM) stores the binary information in the form of electric charges on capacitors provided by the MOS transistors. The charge on the capacitors tends to decay with time and the capacitors must be periodically recharged by refreshing of the dynamic memory every few milliseconds. DRAM offers reduced power consumption, large integration of units on chip. SRAM is faster; has shorter read and write cycles, SRAM is used in cache. Disadvantages: high power consumption, low density, expensive.
Memory Hierarchy
1. Magnetic disks: stored data is represented by the direction of magnetization. 2. CD: compact disc is a piece of polycarbonate (a type of plastic) on which a spiral track has been impressed. This spiral track is a series of indentations ("pits") separated by flat areas ("land"). 3. ROM: The internal storage elements are set to their values once and after that are only read.
The storage part of the cell is modeled by an SR latch with associated gates. A 1 in the read/write input provides the read operation by forming a path from the latch to the output. A 0 in the read/write input provides the write operation by forming a path from the input to latch.
4 x 4 RAM
WRITE operation: the data available in the input lines are transferred into the four binary cells of the selected word. The memory cells that are not selected are disabled.
READ Operation: the four bits of the selected word go through OR gates to the output terminals.
Commercial RAM
Commercial RAM thousands of words, with each word 1 - 64 bits. A memory with 2k words of n bits/word requires k address lines that go into a k x 2k decoder.
404
The idea of two-dimensional decoding is to arrange the memory cells in an array that is as close as possible to square. Use two k/2-input decoders instead of one k-input decoder. One decoder performs the row selection and the other the column selection in a two dimensional matrix configuration. How many words can be selected?
The number of words in a ROM is determined from the k address input lines needed to specify the 2k words. Why doesnt the ROM have any data inputs?
Read-Only Memory
crosspoint 256 programmable intersections
A programmable connection (a crosspoint) between two lines is logically equivalent to a switch that can be be closed (two lines are connected) or open (two lines are disconnected). A switch can be a fuse that normally connects the two points, but can be opened by blowing the fuse using a high voltage pulse.
How many chips are needed to construct 256K x 8? What is the size of the decoder?
10
256K X 8 RAM
- Three-state outputs are connected together to form 8 data output lines. - Just one chip select (CS) will be active at any time. - RAM requires 18-bit address: 16 LSB address are applied to the inputs of each RAM. 2 MSB are applied to 2-to-4 decoder. - Address bits 16 and 17 are used for chip selection.
32 X 8 ROM chip
11
2x4 Decoder
1
32 x 8 ROM
1
32 x 8 ROM
32 x 8 ROM
32 x 8 ROM
Outputs
12
PLDs (continued)
crosspoint connected
13
Outputs F1 F2
1 2 3 4
1 1 0
0 1 1
1 1 0
1 1 1 - 1 1 -
14
Boolean functions must be simplified to fit into each section product term cannot be shared among two or more gates.
Outputs Inputs
15
switch matrix received inputs from I/O and directs them to the individual microcells.
16
17