Unit 5 Digital Image Processing Esrmnotes - in
Unit 5 Digital Image Processing Esrmnotes - in
Read/Write = 1
DataOut Mem[Address];
Read/Write =0
Mem[Address] DataIn;
The cost per bit of DRAM storage is three to four times less
than SRAM. Another factor is lower power requirement.
P1 = XOR of bits(3,5,7,9,11) = 1 1 0 0 0 = 0
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
esrmnotes.in|Class notes made
easy. 25
Hamming Code
The data is stored in memory together with the parity bit as
12-bit composite word.
Bit position: 1 2 3 4 5 6 7 8 9 10 11 12
0 0 1 1 1 0 0 1 0 1 0 0
C1 = XOR of bits(3,5,7,9,11)
C2 = XOR of bits(3,6,7,10,11)
C4 = XOR of bits(5,6,7,12)
C8 = XOR of bits(9,10,11,12)
esrmnotes.in|Class notes made
easy. 26
Error-Detection
A 0 check bit designates an even parity over the
checked bits and a 1 designates an odd parity.
Since the bits were stored with even parity, the
result,
C = C8C4C2C1 = 0000, indicates that no error has
occurred.
If C 0, then the 4-bit binary number formed by
the check bits gives the position of the erroneous
bit.
esrmnotes.in|Class notes made
easy. 27
Example
Bit position: 1 2 3 4 5 6 7 8 9 10 11 12
0 0 1 1 1 0 0 1 0 1 0 0 No error
1 0 1 1 1 0 0 1 0 1 0 0 Error in bit 1
0 0 1 1 0 0 0 1 0 1 0 0 Error in bit 5
C8 C4 C2 C1
For no error: 0 0 0 0
with error in bit 1: 0 0 0 1
1 0 1 1 0 0 1 0
X : means connection
1 elements
F1 = (AB + AC + BC)
F2 = AB + AC + ABC
AB
AC
BC
ABC
w = ABC + ABCD
x = A + BCD
w = AB + CD + BD
w = ABC + ABCD + ACD + ABCD = w + ACD + ABCD
esrmnotes.in|Class notes made
easy. 51
PAL Table
z has four product terms, and we can replace by w with two
product terms, this will reduce the number of terms for z
from four to three.