Вы находитесь на странице: 1из 4

3/1/2013

Department of Electrical and Electronic Engineering, Bangladesh University of Engineering and Technology

Switches and Bulbs


2

Text Book

Course Teacher Upal Mahbub Assistant Professor, Dept. of EEE, BUET.

Topic of the Day

x=0

x=1

Fundamentals of Digital Logic with VERILOG Design by Stephen Brown, Zvonko Vranesic 2nd Edition.

E-mail:
omeecd@eee.buet.ac.bd; omeecd@yahoo.com

Fig. Two States of a Switch

Software
Altera Quartus Proteus - ISIS

Department of EEE, BUET

Switches and Bulbs


3 4

Switches and Bulbs


x1 L(x1)=x1
x1 = 1

x1 0
VCC
3V

L(x1)=x1 0 1

x1 = 0

0
VCC
3V

0 1
L(x1) = x1

L(x1) = x1

The Truth Table

The Truth Table

Department of EEE, BUET

Department of EEE, BUET

X1 AND X2
5 6

X1 AND X2
x1 x2 0 1 0 1 L(x1,x2) =x1&x2 0
VCC

x1
x1 = 0 x2 = 1 L(x1, x2) = x1 & x2

x2 0 1 0 1

x1 = 0

x2 = 0

VCC
3V

L(x1, x2) = x1 & x2

0 0 1 1

0 0 1 1

L(x1,x2) =x1&x2 0 0 0 1

0 0 1

3V

Department of EEE, BUET

Department of EEE, BUET

3/1/2013

X1 AND X2
7 8

X1 AND X2
x1 x2 0 1 0 1 L(x1,x2) =x1&x2 0
VCC

x1
x1 = 1 x2 = 1 L(x1, x2) = x1 & x2

x2 0 1 0 1

x1 = 1

x2 = 0

L(x1,x2) =x1&x2 0 0 0 1

VCC
3V

L(x1, x2) = x1 & x2

0 0 1 1

0 0 1

0 0 1

3V

You Can Represent the AND Operation with & or . (dot)


Department of EEE, BUET

Department of EEE, BUET

X1 AND X2
9 10

X1 OR X2
x1 x2 0 1 0 1 L(x1,x2) =x1&x2 0
VCC

x1
x1 = 0

x2 0 1 0 1

x1 = 1

x2 = 1

L(x1,x2) =x1|x2 0 1 1 1

VCC
3V

L(x1, x2) = x1 & x2

0 0 1 1

0
x2 = 0 L(x1, x2) = x1 | x2
3V

0 0 1

0 1 1

Department of EEE, BUET

Department of EEE, BUET

X1 OR X2
11 12

X1 OR X2
x1 x2 0 1 0 1 L(x1,x2) =x1|x2 0
VCC
x2 = 0 L(x1, x2) = x1 | x2

x1
x1 = 1

x2 0 1 0 1

x1 = 0

L(x1,x2) =x1|x2 0 1 1 1

0
VCC
3V

0
3V

x2 = 1

L(x1, x2) = x1 | x2

0 1 1

1 1 1

0 1 1

Department of EEE, BUET

Department of EEE, BUET

3/1/2013

X1 OR X2
13 14

X1 OR X2
x1 x2 0 1 0 1 L(x1,x2) =x1|x2 0
VCC
x2 = 1 L(x1, x2) = x1 | x2

x1
x1 = 1

x2 0 1 0 1

x1 = 1

L(x1,x2) =x1|x2 0 1 1 1

0
VCC
3V

0
3V

x2 = 1

L(x1, x2) = x1 | x2

0 1

1 1 1

0 1 1

You Can Represent the OR Operation with | or +


Department of EEE, BUET

Department of EEE, BUET

NOT X1
15 16

NOT X1
x1 0 L(x1)=!x1 1
VCC
x1 = 0

R1
100

R1
100

x1 0

L(x1)=!x1 1 0

VCC

1
L(x1, x2) = !x1

3V

3V

x1 = 0

1
L(x1, x2) = !x1

You Can Represent the NOT Operation with ! or (overhead bar)


Department of EEE, BUET Department of EEE, BUET

NOT X1
17 18

Exercise 1: Write the Function


x1 0 L(x1)=!x1
R2
x1 x2

R1
100

1 0
VCC
3V

100

VCC
3V

x1 = 0

L(x1, x2) = !x1

x3 x4

L(x1, x2, x3, x4)

Lx1, x2, x3, x4 = x1. x2 + x3. x4


Department of EEE, BUET Department of EEE, BUET

3/1/2013

Exercise 1: Write the Function


19 20

Exercise 2: Write the Function

Lx1, x2, x3, x4 = x1. x2 + x3. x4


R3
100

x1

x2

VCC
3V

x3

L(x1, x2, x3, x4) x4

+ x2 . x3. x4 Lx1, x2, x3, x4 = x1


Department of EEE, BUET Department of EEE, BUET

Exercise 3: Write the Function


21 22

Exercise 4: Write the Function

x1

x1

R5
100

R4
100

VCC
3V

x2 L(x1, x2, x3, x4) x4

VCC
3V

x2 L(x1, x2, x3, x4) x4

x3

x3

Department of EEE, BUET

Department of EEE, BUET

23

Thats All for Today! Learn Proteus Simulate the switch-bulbs at home

Department of EEE, BUET

Вам также может понравиться