Fundamental Digital Electronics/Mathematical Operations

From Wikibooks, open books for an open world
< Fundamental Digital Electronics
Jump to: navigation, search

Mathematic Operation[edit]

Addition[edit]

0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 1

Subtraction[edit]

0 - 0 = 0
0 - 1 = 1
1 - 0 = 1
1 - 1 = 0

Multiplication[edit]

0 x 0 = 0
0 x 1 = 0
1 x 0 = 0
1 x 1 = 1

Division[edit]

0 / 0 = x
0 / 1 = 0
1 / 0 = x
1 / 1 = 1

Logic Operation[edit]

BUFFER[edit]

Output is the same as Input
B = A
A B
0 0
1 1

NOT[edit]

Output is not the same as Input
B = NOT A
A B
0 1
1 0

AND[edit]

Output is the same as Input
C = A AND B
AB C
00 0
01 0
10 0
11 1 Both inputs equal 1

OR[edit]

Output is the same as Input
C = A OR B
AB C
00 0 Both inputs equal 0
01 1
10 1
11 1

XOR[edit]

Output is the same as Input
C = A XOR B
AB C
00 1 Same
01 0 Not the same
10 0 Not the same
11 1 Same

Laws[edit]

The Morgan Law

NAND A + NAND B = A + B