Beruflich Dokumente
Kultur Dokumente
• Combinatorial:
– Output depends on combination of inputs
• Sequential:
– Output depends on inputs as well as a clock
signal (sequenced operation)
• Digital Signals:
– Discrete, having values of only 0 and 1 (binary)
– Hi (Logic 1) and Lo (Logic 0)
– There is a region in between which is
indeterminate (non-discernible)
Aloke Dutta/EE/IIT Kanpur 1
Binary Number System:
* Based on powers of 2: contrast with decimal
number system , which is based on powers of 10
* Uses only two digits: 0 and 1
* Representation and Place Value:
Integer Part:
24 (16) 23 (8) 22 (4) 21 (2) 20 (1) .
Fractional Part:
. 21 (0.5) 22 (0.25) 23 (0.125) 24 (0.0625)
* Example: 101.101 = 5.625
If either one of F
A B
them is on, the B F
only if both A
F
B F
switches are on
* Truth Table: A B F
0 0 0
0 1 0 F = AB
1 0 0
1 1 1
* Note that the number of entries in the truth table
is 2N , where N = number of input variables
Aloke Dutta/EE/IIT Kanpur 17
NOT Gate:
* Simply an inverter A F
* Truth Table: A F
0 1 F = A or A
1 0
Some Useful Rules:
0 + X = X, 1 + X = 1, X + X = X, X + X = 1,
0 X = 0, 1 X = X, X X = X, X X = 0, X = X,
X + Y = Y + X, X Y = Y X, X + (Y + Z)
= (X + Y) + Z, X (Y Z) = (X Y) Z
Aloke Dutta/EE/IIT Kanpur 18
Some Useful Rules (Contd.):
X (Y + Z) = X Y + X Z, X + X Z = X, X (X + Y)
= X, (X + Y) (X + Z) = X + Y Z, X + X Y =
X + Y, X Y + Y Z + X Z = X Y + X Z
De Morgan's Theorem:
* Two extremely important theorems:
X + Y = X Y and X Y = X + Y
* Thus, any logic function can be implemented by
using either only OR and NOT gates, or only AND
and NOT gates
C
* Let's convert it to POS
representation:
Y = A + BC A BC A
Y
A (B + C) B
Y = Y = A (B + C)
C
POS Representation
* Note: While SOP representation needed only 2 gates,
POS representation needed 6 gates
SOP representation preferred
Aloke Dutta/EE/IIT Kanpur 24
NAND and NOR Gates:
* Complements of AND and OR Gates, respectively
* Called Universal Gates, since any logic function can
be implemented using these two gates
* Gate Array based designs have only NAND and NOR
Gate Arrays only interconnections need to be
changed to implement any logic function
Extremely powerful and versatile
* Special class of VLSI circuits known as Field
Programmable Gate Array (FPGA)
The interconnections can be done in-situ
Aloke Dutta/EE/IIT Kanpur 25
* NAND: NOT AND: Performs logical addition
of the complements of the inputs
Y = AB = A + B
A A
B
Y B
Y
B
Y B
Y
Odd one: 1 1 1 0
NOR: A B OR NOR
Odd one: 0 0 0 1
A
0 1 1 0 A
1 0 1 0
NOT Gate
1 1 1 0
Aloke Dutta/EE/IIT Kanpur 27
Exclusive -OR (XOR) and Exclusive -NOR (XNOR):
XOR: Basically OR gate, with one exclusion, i.e., when
both inputs are 1, output is 0
Truth Table: A B Y Y = A B = AB + AB
0 0 0 Either A high or B high,
0 1 1 but not both, would produce
1 0 1 a high output
1 1 0 Known as odd parity detector
A
Y
B
A
Y
B
00
B BC
A 0 1 A 00 01 11 10 01
0 0 11
1 1 10
YZ
X 00 01 11 10
0 1 3 2
0 1 1 0 0
f = XY + XY
4 5 7 6
1 0 0 1 1
YZ
X 00 01 11 10
0 1 3 2
0 1 1 1 0
f = XY + XY + YZ
4 5 7 6
1 0 0 1 1
01
4
1
5
1
7
0
6
1 W: MSB, Z: LSB
12 13 15 14
f = WYZ + WXY + WXZ
11 0 0 1 0 + WXYZ + WXYZ + WXYZ
8 9 11 10
10 0 1 0 1
Tips:
* Make sure that all 1s are accounted for
* Pay special attention to the corner 1s and foldability
* No supercube should have odd number of cubes
(except 1 monocube )
* Supercubes can be intersecting
Aloke Dutta/EE/IIT Kanpur 36
YZ
WX 00 01 11 10
0 1 3 2
00 1 0 0 0
4 5 7 6
01 1 0 1 1
12 13 15 14 f = YZ + XY
11 1 0 1 1
8 9 11 10
10 1 0 0 0
YZ
WX 00 01 11 10
0 1 3 2
00 1 1 1 1
4 5 7 6
01 0 0 0 0
12 13 15 14 f = X
11 0 0 0 0
8 9 11 10
10 1 1 1 1
CD
AB 00 01 11 10
0 1 3 2
00 1 1 0 1
4 5 7 6
01 0 1 0 0 A: MSB, D: LSB
11
12
0
13
1
15
1
14
0 f = ABD + CD + AD + BC
8 9 11 10
10 1 1 1 0
CD
AB 00 01 11 10
0 1 3 2
00 1 1 1 0
4 5 7 6
01 1 1 1 0
12 13 15 14 f = AC + AD + BC + BD
11 1 1 1 0
8 9 11 10
10 0 0 0 0
CD
AB 00 01 11 10
0 1 3 2
00 1 1 1 0
4 5 7 6
01 1 1 1 0
12 13 15 14 f = (A + B)(C + D)
11 1 1 1 0
8 9 11 10
10 0 0 0 0
BC
A 00 01 11 10
0 1 3 2
0 0 0 0 0
Assigning X = 1 (SOP)
1
4
0
5
1
7
X
6
X f = AC
BC
A 00 01 11 10
0 1 3 2
0 0 0 0 0
Assigning X = 0 (POS)
1
4
0
5
1
7
X
6
X f = A•C
CD
AB 00 01 11 10
0 1 3 2
00 1 0 1 0
4 5 7 6
01 0 0 0 1
f = (A + C + D)•(B + C)•
11
12
0
13
X
15
X
14
X (B + C + D)•(A + D)•(B + D)
8 9 11 10
10 0 1 X X