[email protected]. Gates [email protected] Ahmad Bilal - DLD.

36

Transcript of [email protected]. Gates [email protected] Ahmad Bilal - DLD.

Gates

[email protected]

Ahmad Bilal - DLD

[email protected]

Logic Gates

• Basic Building Blocks• Logic Gate Symbol• Unique function• Truth or Function Table• Function Expression• Timing Diagram

AND Gate

• 1 output• 2 inputs• 3 inputs• 4 inputs• Multiple inputs

&0

0

0

[email protected]

AND Gate function

• Logical Multiplication function

BAF NCBAF ....

[email protected]

[email protected]

AND Gate Timing Diagram

t0 t4 t5 t6t1 t2 t3

A

B

F

[email protected]

Practice Task. Make a Timing Diagram of And Gate when

A = 0100011B=1101010

[email protected]

Question for Class How can Safety Be added

to Industry ( Let say) Drilling Machine , using

gates ?

OR Gate

• 1 output• 2 inputs• 3 inputs• 4 inputs• Multiple inputs >=10

0

0

[email protected]

OR Gate function

• Boolean Add function

BAF NCBAF ..

[email protected]

[email protected]

OR Gate Timing Diagram

t0 t4 t5 t6t1 t2 t3

A

B

F

[email protected]

Can you Help me Develop a Security System for my house, so that when

any door opens, I get a Alarm

OR Gate Applications

• Car door open alarm

Alarm

Front left door

Rear left door

Front right door

Rear right door

[email protected]

NOT Gate

• 1 input• 1 output

[email protected]

NOT Gate function

AA

[email protected]

[email protected]

NOT Gate Timing Diagram

t0 t4 t5 t6t1 t2 t3

A

F

NOT Gate Applications

• 1’s Complement

1 1 1 1

1 1 1 1

0 0

0 0

0

0 0

0

[email protected]

NAND Gate

• 1 output• 2 inputs• 3 inputs• 4 inputs• Multiple inputs

&0

0

0

[email protected]

NAND Gate function

[email protected]

BAF

CAN STUDENT DEVELOP EQUATION FOR NAND GATE !!!!

Remember Its AND with NOT

[email protected]

[email protected]

NAND Gate Timing Diagram

t0 t4 t5 t6t1 t2 t3

A

B

F

NAND Gate Applications

• Device Failure Alarm

ALARM

[email protected]

NOR Gate

• 1 output• 2 inputs• 3 inputs• 4 inputs• Multiple inputs

>=10

0

0

[email protected]

NOR Gate function

• NOT-OR function

BAF

[email protected]

XOR Gate

• 1 output• 2 inputs• Multiple inputs

=10

0

0

[email protected]

XOR Gate function

BAF

[email protected]

[email protected]

XOR Gate Timing Diagram

t0 t4 t5 t6t1 t2 t3

XOR Gate Applications

• Detecting odd number of 1’s

1

2

3

A

B

C

D

[email protected]

XNOR Gate

• 1 output• 2 inputs• Multiple inputs

=0

0

0

[email protected]

XNOR Gate function

Input OutputA B F0 0 10 1 01 0 01 1 1

BAF

[email protected]

[email protected]

XNOR Gate Timing Diagram

t0 t4 t5 t6t1 t2 t3

XNOR Gate Applications

• Detecting even number of 1’s

1

2

3

A

B

C

D

[email protected]