Memory and Programmable Logic Devices Chapter 6 Definitions
Memory and Programmable Logic Devices Chapter 6
Definitions • RAM – Random Access Memory • ROM – Read Only memory • PLD – Programmable Logic device – ROM – PLA – Programmable Logic Array – PAL - Programmable Array Logic – FPGA – Field Programmable Gate Array
Block Diagram of Memory Number of bits in memory is referred as: K (kilo) - 210 M (mega) 220 G (giga) 230
Example 8388608 4096 8388608 1048576 1024 2097152 4194304 67108864 4194304 2097152 16384 8388608 1048576 67108864 20 10 21 22 8 4 4 1 21 14 23 32 64 8
Example 10 bits for addressing 16 bits for data 1024 X 16 memory
Write and Read Operations The steps for write are: • Set the address lines • Apply the data to the data input lines • Activate the write input The steps for read are: • Set the address lines • Activate the read input
Control Inputs to Memory Chip
Timing Waveforms CPU rate is 50 Mhz
Timing Waveforms Transfer data to a register
Properties of memory • Volatile – Information is lost when the power is turned off – RAM • Nonvolatile – Information is not lost when the power is turned off – Magnetic disks, ROM
Properties of memory RAM • Static RAM – SRAM – Consists of latches – faster • Dynamic RAM – DRAM – – Consists of capacitors Needs refreshing cycles Reduced power consumption Larger storage
RAM Integrated Circuits
RAM Integrated Circuits
RAM Integrated Circuits
Three State Buffers
Coincident Selection
Coincident Selection
Array of RAM ICs
Array of RAM ICs
Array of RAM ICs
Dynamic RAM IC • Because of its property of high storage at low cost DRAM dominates the high capacity applications. • Its working principal can be explained with an analogy.
Dynamic RAM IC • Reading is destructive • After reading previous value should be restored • To restore a value of 1, the large tank is filled and the valve is opened. • To restore a value of 0, big tank is emptied and the valve is opened to drain the storage tank.
Dynamic RAM IC • Even without read, due to leaks every storage cell must be refreshed before its level has declined to a point at which the stored value can no longer be properly observed. • Each row of DRAM requires refreshing within a maximum refresh time; typically ranging from 16 – 64 ms. • There are two modes of refreshing: • Distributed refreshing: refreshes are performed at evenly spaced points in the refresh time. • Burst refreshing: refreshes are performed one after the other.
Dynamic RAM IC - Example • Suppose we have 4 Mx 4 DRAM having refresh time of 64 ms, 4096 rows to refresh and the length of time for single refresh is 60 ns. • For distributed refresh 64 ms/4096 = 15. 6 microsec. • 60 ns x 4096 = 0. 25 ms is used for refreshing • For burst refreshing, refreshing time is 0. 25 ms. For the same DRAM, the DRAM controller must initiate a refresh every 15. 6 microseconds for distributed refresh and must initiate 4096 refreshes sequentially every 64 ms. for burst refresh. During any refresh cycle, no DRAM reads or writes can occur.
Dynamic RAM IC DRAM cell consists of a capacitor and one transistor. SRAM cell consists of 6 transistors. Thus DRAM has 3 times the capacity of SRAM And 1/3 less cost/bit.
Dynamic RAM IC
Dynamic RAM IC DRM cell model Write Logic Read Logic
Building Memory Systems – Example 2 Build a 2 Mx 4 memory system using 1 Mx 4 memory chips. First identify the specifications for the 1 Mx 4 memory chips and the desired 2 Mx 4 memory system? As the table shows, the # of data lines are the same for both. • There is an extra address line in the 2 Mx 4 giving double the # of addresses and double the # of bits • Therefore, we require two 1 Mx 4 memory chips arranged where one address line is used to decode which 1 Mx 4 chip is enabled.
ROM
ROM
ROM Four technologies are used for ROM programming 1. Mask programming – ROM 2. Fuses – programmable ROM, PROM 3. Erasable floating-gate technology- EPROM 4. Electrically erasable technology - EEPROM
Semiconductor Memory Types
Combinational Circuit Implementation • ROM includes a decoder and OR gates in itself • By closing connections for those minterms included in the function, the ROM outputs can be programmed to represent the Boolean functions of the output variables in a combinational circuit.
Combinational Circuit Implementation Example A 7(I 4, I 3, I 2, I 1, I 0) = m(0, 2, 3, …, 29) Closed connection includes the minterm, open connection excludes the minterm from the output function.
Combinational Circuit Implementation Design a combinational circuit that accepts a 3 -bit number and generates its square on the outputs.
Basic Configuration of Three PLD’s
Programmable Logic Array
Programmable Logic Array- Example F 1(A, B, C) = m(0, 1, 2, 3, 4) F 2(A, B, C) = m(0, 5, 6, 7) F 1 = AB + AC + BC F 2 = AB + AC + ABC
PAL Devices The PAL device is a PLD with a fixed OR array and programmable AND array.
PAL Devices- Example W(A, B, C, D) = m(2, 13) X(A, B, C, D) = m(7, 8, 9, 10, 11, 12, 13, 14, 15) Y(A, B, C, D) = m(0, 2, 3, 4, 5, 6, 7, 8, 10, 11, 15) Z(A, B, C, D) = m(1, 2, 8, 12, 13) W = ABC + ABCD X = A + BCD Y = AB + CD + BD Z= ABC + ABCD = W + ACD + ABCD
PAL Devices- Example
- Slides: 41