Morris Mano Chapter 7 Memory and Programmable Logic
Morris Mano Chapter 7 Memory and Programmable Logic
LOGIC
Zahraa abdulameer
Supervised by
Dr. Alaa.H.Ali
2023/10/23
INTRODUCTION
Block diagram of a
RANDOM-ACCESS MEMORY
G
WRITE AND READ OPERATIONS
• The memory does not employ an internal clock. Instead, its read
and write operations .The CPU must provide the memory control
signals in such a way as to synchronize its internal clocked
operations with the read and write operations of memory.
• access time of memory is the time required to select a word
and read it. The cycle time of memory is the time required
to complete a write operation
• The memory enable and the read/write signals must be
activated after the signals in the address lines are stable in
order to avoid destroying data in other memory words.
MEMORY DECODING
Internal Construction
1 3
bit input ,1outpu
1 0
t
Memory
0
4 word =
2 address
lines1 0
0
1 0
0 = all output 0
is 0
1= one of 4
words is
selected
0
Diagram of a 4 * 4 RAM
COINCIDENT DECODING
LSB
AND=32+32=64
instead of
1024 AND if we use
one dimension
word
MS
B
Two‐dimensional decoding
structure for a 1K‐word
memory
A D D R E S S M U LT I P L E X I N G
Rom block
diagram
Open=
A fuse that can * 0
be blown by Close
* =1
applying a high
*
voltage pulse blowin
g
* A
crosspoint
Internal logic of a 32 *8
COMBINATIONAL CIRCUIT
IMPLEMENTATION
• The ROM is essentially a device that includes both the decoder
and the OR gates, so we were able to generate any desired
combinational circuit.
• A ROM has two operations :
1. A fixed memory unit.
2. A combinational circuit unit.
• The sum of minterms is
A7(I4, I3, I2, I1, I0) =∑ (0, 2, 3, …, 29)
• All that the designer has to do is specify the particular ROM by its
IC number and provide the applicable truth table. No internal logic
diagram is needed to accompany the truth table.
2
𝐼𝑁
3
IN
Product
term
=
True and
1=
compleme ′ ′ ′
nt 𝐹 1= 𝐴 𝐵 + 𝐴𝐶 + 𝐴 𝐵 𝐶
′
𝐹 2=( 𝐴𝐶 + 𝐵𝐶 )
Sum of
Products 2 OUT
• The PLA programming table consists of three sections:
1. The first section lists the product terms numerically.
2. The second section specifies the required paths between inputs
and AND gates.
3. The third section specifies the paths between the AND and OR
gates. For each output variable, we may have a T (for true) or C
(for complement) for programming the XOR gate.
• Connection from IN=1
Connection from complement=0
Blown fuse=dash(It is assumed that an open terminal in the
input of an AND gate behaves like a 1 ).
1 2 3
Path Path
between IN between
and AND AND and OR
EXAMPLE
•
AND=10 1N
PAL
F1
4 IN 4 OUT
buffer–
I1 inverter
gate
F2
I2
F3
I3 Three wide
Four
sections
F4
I4
• As an example of using a PAL in the design of a combinational circuit,
consider the following Boolean functions, given in sum‐of‐minterms form:
• w(A, B, C, D) = ∑(2, 12, 13) y(A, B, C, D) = ∑(0, 2, 3, 4, 5, 6, 7, 8, 10, 11, 15)
• x(A, B, C, D) = ∑(7, 8, 9, 10, 11, 12, 13, 14, 15) z(A, B, C, D) = ∑(1, 2, 8, 12, 13)
SEQUENTIAL PROGRAMMABLE
DEVICES
• Sequential programmable devices include both gates and flip‐flops.
• we will describe three major types :
1. Sequential (or simple) programmable logic device (SPLD)
2. Complex programmable logic device (CPLD)
3. Field‐programmable gate array (FPGA)
SPL
D
• Each section of an SPLD is called a macrocell, which is a circuit that
contains a sum‐of‐products combinational logic function and an
optional flip‐flop.
• A typical SPLD has from 8 to 10 macrocells in one IC.
Three
state
buffer
IC bins
General CPLD
A FIELD‐PROGRAMMABLE GATE ARRAY (FPGA)