D-Link DGS-3308FG Product Manual - Page 233
Eview Of, Itwise, Ogical, Perations
UPC - 790069239373
View all D-Link DGS-3308FG manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 233 highlights
8-port Gigabit Ethernet Switch User's Guide E BRIEF REVIEW OF BITWISE LOGICAL OPERATIONS AND The logical AND operation compares 2 bits and if they are both "1", then the result is "1", otherwise, the result is "0". 0 1 00 0 10 1 OR The logical OR operation compares 2 bits and if either or both bits are "1", then the result is "1", otherwise, the result is "0". 0 1 00 0 10 1 XOR The logical XOR (exclusive OR) operation compares 2 bits and if exactly one of them is a "1", then the result is "1", otherwise the result is "0". 0 1 00 1 11 0 NOT The logical NOT operation simply changes the value of a single bit. If it is a "1", the result is "0", if it is a "0", the result is "1". This operation is carried out on a single bit. 0 1 1 0 223
8-port Gigabit Ethernet Switch User’s Guide
223
E
B
RIEF
R
EVIEW OF
B
ITWISE
L
OGICAL
O
PERATIONS
AND
The logical
AND
operation compares 2 bits and if they are both “
1”,
then the result is
“1”,
otherwise, the result is
“0”.
0 1
0
0
0
1
0
1
OR
The logical
OR
operation compares 2 bits and if either or both bits are
“1”,
then the result is
“1”,
otherwise, the result is
“0”.
0 1
0
0
0
1
0
1
XOR
The logical
XOR (exclusive OR)
operation compares 2 bits and if exactly one of them is a
“1”,
then the result is
“1”,
otherwise the result is
“0”.
0 1
0
0
1
1
1
0
NOT
The logical NOT operation simply changes the value of a single bit. If it is a
“1”,
the result is
“0”,
if it is a
“0”,
the result is
“1”.
This operation is carried out on a single bit.
0 1
1
0