Professional Documents
Culture Documents
Lec8 PDF
Lec8 PDF
k inputs 2k × n n outputs
⇒ ⇒
(address) ROM (data)
32 × 8 ROM
2
Programming a ROM
Example of 4 × 2 ROM
NonProgrammed ROM
D0
Truth table 2−to−4
Decoder D1
I0
Address Content I1
D2
I1 I0 A1 A0 D3
0 0 0 1
0 1 1 0
1 0 1 1
1 1 1 0
A1 A0
⇓
Programmed ROM
2−to−4 D0 Compact ROM
Decoder D1 2−to−4 D0
I0
D2 I0 Decoder D1
I1 D2
D3 I1
D3
A1 A0
A1 A0
P
Example: Implement f1(x2, x1) = m(0, 3),
Q
f2(x2, x1) = x2 + x1, and f3(x2, x1) = M (1) with a
4 × 3 ROM
Truth table
Address Content
x2 x1 f3 f2 f1
0 0 1 1 1
0 1 0 0 0
1 0 1 0 0
1 1 1 0 1
⇓
4 × 3 ROM storing f1, f2, f3
2−to−4 D0
x1 Decoder D1
D2
x2
D3
f3 f2 f1
4
Programmable Logic Array
n inverters
m fuses
k AND kxm m OR
n x k fuses
gates fuses gates
m inverters
n inputs m outputs
5
Programming a PLA
6
Function Synthesis with PLA
P
Example Implement f1(a, b, c) = m(3, 5, 6, 7) and
P
f2(a, b, c) = m(0, 2, 4) with a PLA
8
Programmable Array Logic
n inverters
k AND m OR
n x k fuses
gates gates
n inputs m outputs
Similar to PLA
9
Programming a PAL
10
Arithmetic-Logic Unit
Logic Circuit
Arithmetic Circuit
12
ALU
(continued)
13
ALU
(continued)
14