Académique Documents
Professionnel Documents
Culture Documents
7-1. Introduction
Array logic
7-2. Random-Access
Memory
A memory unit stores binary information in groups of bits called
words.
1 byte = 8 bits
1 word = 2 bytes
Content of a memory
It is referred to the
number of words in a
memory with one of the
letters K=210, M=220, or
G=230.
64K = 216 , 4G = 232
1.
2.
3.
1.
2.
The memory unit will then take the bits from the word that
has been selected by the address and apply them to the
output data lines,
10
Timing Waveforms
Enable
and
read/write
signals must stay active for
at least 50ns.
12
Types of memories
Static RAM
15
Dynamic RAM
16
Dynamic RAM
17
Types of memories
19
4X4 RAM
A memory with 2k words of n bits per word requires k address lines that go
20
kx2k decoder.
Coincident decoding
1K-word
memory,
instead of using a single
10X1024 decoder, we
use two 5X32 decoders.
address
21
Address multiplexing
22
Address multiplexing
23
24
25
Hamming Code
In Hamming code:
k = parity bits in n-bit data word,
forming a new word of n + k bits. Those positions
numbered as a power of 2 are reserved for the
parity bits.
the remaining bits are the data bits.
26
Hamming Code
Ex. Consider the 8-bit data word 11000100. we include four
parity bits with it and arrange the 12 bits as follows:
Bit position: 1 2 3 4 5 6 7 8 9 10 11 12
P1 P 2 1 P 4 1 0 0 P 8 0
P1 = XOR of bits(3,5,7,9,11) = 1 1 0 0 0 = 0
XOR all bit positions that its LSB equal to 1.
P2 = XOR of bits(3,6,7,10,11) = 1 0 0 1 0 = 0
P4 = XOR of bits(5,6,7,12) = 1 0 0 0 = 1
P8 = XOR of bits(9,10,11,12) = 0 1 0 0 = 1
27
Hamming Code
Bit position:
12
1 2 3 4 5 6 7 8 9 10 11
0 0 1 1 1 0 0 1 0
28
Error-Detection
Example
Bit position: 1 2 3 4 5 6 7 8 9 10 11 12
0 0 1 1 1 0 0 1 0
No error
1 0 1 1 1 0 0 1 0
Error in bit 1
0 0 1 1 0 0 0 1 0
Error in bit 5
C8
C4
C2
C1
For no error:
30
Hamming Code
31
3.
4.
Sheet
Problems :
7.1, 7.2, 7.3, 7.4, 7.7, 7.8
7.9, 7.10, 7.11, 7.12, 7.13
7.14
34
36
Construction of ROM
37
38
0 no connection
1 connection
Address 3 = 10110010 is permanent storage using fuse link
X : means connection
Combinational circuit
implementation
Example
Design a combinational circuit using a ROM. The circuit accepts a 3-bit
number and generates an output binary number equal to the square of
the input number.
Derive truth table first
41
Example
42
Types of ROMs
1.
2.
3.
4.
Combinational PLDs
and
OR
arrays
can
be
44
Combinational PLDs
45
Buffer
47
PAL
Example
w(A, B, C, D) = (2, 12, 13)
x(A, B, C, D) = (7, 8, 9, 10, 11, 12, 13, 14, 15)
y(A, B, C, D) = (0, 2, 3, 4, 5, 6, 7, 8, 10, 11, 15)
z(A, B, C, D) = (1, 2, 8, 12, 13)
Simplifying the four functions as following Boolean functions:
w = ABC + ABCD
x = A + BCD
y = AB + CD + BD
z = ABC + ABCD + ACD + ABCD = w + ACD + ABCD
49
PAL Table
50
PAL implementation
w
A
x
B
y
C
z
D
51
52
53
Sheet