You are on page 1of 8

Lab # 1 logic gates

Tool used: logic ly


Gate type: and gate
Truth table

A B A*b
1 1 1
1 0 0
0 1 0
0 0 0

Case# 1 when both switches are off

Case# 2 when 1st switch is off and 2nd switch is on


Case# 3 when 1st switch is on and 2nd switch in off

Case# 4 when both switches are on


Gate type: or gate
Truth table

A B A+b
1 1 1
1 0 1
0 1 1
0 0 0

Case# 1 when both switches are off

Case# 2 when 1st switch is off and 2nd switch is on


Case# 3 when 1st switch is on and 2nd switch in off

Case# 4 when both switches are on


Gate type: nand gate
Truth table

A B (A*B)’
1 1 0
1 0 1
0 1 1
0 0 1

Case# 1 when both switches are off

Case# 2 when 1st switch is off and 2nd switch is on


Case# 3 when 1st switch is on and 2nd switch in off

Case# 4 when both switches are on


Gate type: nor gate
Truth table

A B (A+B)’
1 1 0
1 0 0
0 1 0
0 0 1

Case# 1 when both switches are off

Case# 2 when 1st switch is off and 2nd switch is on


Case# 3 when 1st switch is on and 2nd switch in off

Case# 4 when both switches are on

You might also like