Top Banner
Digital circuits t t analog signal 0 1 high low digital signal M. B. Patil, IIT Bombay
341

t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Apr 24, 2021

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

t t

analog signal

0

1high

low

digital signal

* An analog signal x(t) is represented by a real number at a given time point.

* A digital signal is “binary” in nature, i.e., it takes on only two values: low (0) or high (1).

* Although we have shown 0 and 1 as constant levels, in reality, that is not required. Any value in the low(high) band will be interpreted as 0 (1) by digital circuits.

* The definition of low and high bands depends on the technology used, e.g.,

TTL (Transitor-Transitor Logic)

CMOS (Complementary MOS)

ECL (Emitter-Coupled Logic)

M. B. Patil, IIT Bombay

Page 2: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

t t

analog signal

0

1high

low

digital signal

* An analog signal x(t) is represented by a real number at a given time point.

* A digital signal is “binary” in nature, i.e., it takes on only two values: low (0) or high (1).

* Although we have shown 0 and 1 as constant levels, in reality, that is not required. Any value in the low(high) band will be interpreted as 0 (1) by digital circuits.

* The definition of low and high bands depends on the technology used, e.g.,

TTL (Transitor-Transitor Logic)

CMOS (Complementary MOS)

ECL (Emitter-Coupled Logic)

M. B. Patil, IIT Bombay

Page 3: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

t t

analog signal

0

1high

low

digital signal

* An analog signal x(t) is represented by a real number at a given time point.

* A digital signal is “binary” in nature, i.e., it takes on only two values: low (0) or high (1).

* Although we have shown 0 and 1 as constant levels, in reality, that is not required. Any value in the low(high) band will be interpreted as 0 (1) by digital circuits.

* The definition of low and high bands depends on the technology used, e.g.,

TTL (Transitor-Transitor Logic)

CMOS (Complementary MOS)

ECL (Emitter-Coupled Logic)

M. B. Patil, IIT Bombay

Page 4: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

t t

analog signal

0

1high

low

digital signal

* An analog signal x(t) is represented by a real number at a given time point.

* A digital signal is “binary” in nature, i.e., it takes on only two values: low (0) or high (1).

* Although we have shown 0 and 1 as constant levels, in reality, that is not required. Any value in the low(high) band will be interpreted as 0 (1) by digital circuits.

* The definition of low and high bands depends on the technology used, e.g.,

TTL (Transitor-Transitor Logic)

CMOS (Complementary MOS)

ECL (Emitter-Coupled Logic)

M. B. Patil, IIT Bombay

Page 5: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

t t

analog signal

0

1high

low

digital signal

* An analog signal x(t) is represented by a real number at a given time point.

* A digital signal is “binary” in nature, i.e., it takes on only two values: low (0) or high (1).

* Although we have shown 0 and 1 as constant levels, in reality, that is not required. Any value in the low(high) band will be interpreted as 0 (1) by digital circuits.

* The definition of low and high bands depends on the technology used, e.g.,

TTL (Transitor-Transitor Logic)

CMOS (Complementary MOS)

ECL (Emitter-Coupled Logic)

M. B. Patil, IIT Bombay

Page 6: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A simple digital circuit

0 1 2 3 4 5

1

2

3

4

5

0

RB

RC

Vo

VCC

Vi

Vo(Volts)

Vi (Volts)

5 V

* If Vi is low (“0”), Vo is high (“1”).If Vi is high (“1”), Vo is low (“0”).

* The circuit is called an “inverter” because it inverts the logic level of the input. If the input is 0, it makesthe output 1, and vice versa.

* Digital circuits are made using a variety of devices. The simple BJT inverter is only an illustration.

* Most of the VLSI circuits today employ the MOS technology because of the high packing density, highspeed, and low power consumption it offers.

M. B. Patil, IIT Bombay

Page 7: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A simple digital circuit

0 1 2 3 4 5

1

2

3

4

5

0

RB

RC

Vo

VCC

Vi

Vo(Volts)

Vi (Volts)

5 V

* If Vi is low (“0”), Vo is high (“1”).If Vi is high (“1”), Vo is low (“0”).

* The circuit is called an “inverter” because it inverts the logic level of the input. If the input is 0, it makesthe output 1, and vice versa.

* Digital circuits are made using a variety of devices. The simple BJT inverter is only an illustration.

* Most of the VLSI circuits today employ the MOS technology because of the high packing density, highspeed, and low power consumption it offers.

M. B. Patil, IIT Bombay

Page 8: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A simple digital circuit

0 1 2 3 4 5

1

2

3

4

5

0

RB

RC

Vo

VCC

Vi

Vo(Volts)

Vi (Volts)

5 V

* If Vi is low (“0”), Vo is high (“1”).If Vi is high (“1”), Vo is low (“0”).

* The circuit is called an “inverter” because it inverts the logic level of the input. If the input is 0, it makesthe output 1, and vice versa.

* Digital circuits are made using a variety of devices. The simple BJT inverter is only an illustration.

* Most of the VLSI circuits today employ the MOS technology because of the high packing density, highspeed, and low power consumption it offers.

M. B. Patil, IIT Bombay

Page 9: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A simple digital circuit

0 1 2 3 4 5

1

2

3

4

5

0

RB

RC

Vo

VCC

Vi

Vo(Volts)

Vi (Volts)

5 V

* If Vi is low (“0”), Vo is high (“1”).If Vi is high (“1”), Vo is low (“0”).

* The circuit is called an “inverter” because it inverts the logic level of the input. If the input is 0, it makesthe output 1, and vice versa.

* Digital circuits are made using a variety of devices. The simple BJT inverter is only an illustration.

* Most of the VLSI circuits today employ the MOS technology because of the high packing density, highspeed, and low power consumption it offers.

M. B. Patil, IIT Bombay

Page 10: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A simple digital circuit

0 1 2 3 4 5

1

2

3

4

5

0

RB

RC

Vo

VCC

Vi

Vo(Volts)

Vi (Volts)

5 V

* If Vi is low (“0”), Vo is high (“1”).If Vi is high (“1”), Vo is low (“0”).

* The circuit is called an “inverter” because it inverts the logic level of the input. If the input is 0, it makesthe output 1, and vice versa.

* Digital circuits are made using a variety of devices. The simple BJT inverter is only an illustration.

* Most of the VLSI circuits today employ the MOS technology because of the high packing density, highspeed, and low power consumption it offers.

M. B. Patil, IIT Bombay

Page 11: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

toriginal data

V1

tcorrupted data

V2

comparator

V3

V2

Vref

Vref

t

recovered data

V3

* A major advantage of digital systems is that, even if the original data gets distorted (e.g., in transmittingthrough optical fibre or storing on a CD) due to noise, attenuation, etc., it can be retrieved easily.

* There are several other benefits of using digital representation:

- can use computers to process the data.- can store in a variety of storage media.

- can program the functionality. For example, the behaviour of a digital filter can be changed simply

by changing its coefficients.

M. B. Patil, IIT Bombay

Page 12: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

toriginal data

V1

tcorrupted data

V2

comparator

V3

V2

Vref

Vref

t

recovered data

V3

* A major advantage of digital systems is that, even if the original data gets distorted (e.g., in transmittingthrough optical fibre or storing on a CD) due to noise, attenuation, etc., it can be retrieved easily.

* There are several other benefits of using digital representation:

- can use computers to process the data.- can store in a variety of storage media.

- can program the functionality. For example, the behaviour of a digital filter can be changed simply

by changing its coefficients.

M. B. Patil, IIT Bombay

Page 13: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

toriginal data

V1

tcorrupted data

V2

comparator

V3

V2

Vref

Vref

t

recovered data

V3

* A major advantage of digital systems is that, even if the original data gets distorted (e.g., in transmittingthrough optical fibre or storing on a CD) due to noise, attenuation, etc., it can be retrieved easily.

* There are several other benefits of using digital representation:

- can use computers to process the data.- can store in a variety of storage media.

- can program the functionality. For example, the behaviour of a digital filter can be changed simply

by changing its coefficients.

M. B. Patil, IIT Bombay

Page 14: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

toriginal data

V1

tcorrupted data

V2

comparator

V3

V2

Vref

Vref

t

recovered data

V3

* A major advantage of digital systems is that, even if the original data gets distorted (e.g., in transmittingthrough optical fibre or storing on a CD) due to noise, attenuation, etc., it can be retrieved easily.

* There are several other benefits of using digital representation:

- can use computers to process the data.- can store in a variety of storage media.

- can program the functionality. For example, the behaviour of a digital filter can be changed simply

by changing its coefficients.

M. B. Patil, IIT Bombay

Page 15: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

toriginal data

V1

tcorrupted data

V2

comparator

V3

V2

Vref

Vref

t

recovered data

V3

* A major advantage of digital systems is that, even if the original data gets distorted (e.g., in transmittingthrough optical fibre or storing on a CD) due to noise, attenuation, etc., it can be retrieved easily.

* There are several other benefits of using digital representation:

- can use computers to process the data.- can store in a variety of storage media.

- can program the functionality. For example, the behaviour of a digital filter can be changed simply

by changing its coefficients.

M. B. Patil, IIT Bombay

Page 16: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

toriginal data

V1

tcorrupted data

V2

comparator

V3

V2

Vref

Vref

t

recovered data

V3

* A major advantage of digital systems is that, even if the original data gets distorted (e.g., in transmittingthrough optical fibre or storing on a CD) due to noise, attenuation, etc., it can be retrieved easily.

* There are several other benefits of using digital representation:

- can use computers to process the data.- can store in a variety of storage media.

- can program the functionality. For example, the behaviour of a digital filter can be changed simply

by changing its coefficients.

M. B. Patil, IIT Bombay

Page 17: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

toriginal data

V1

tcorrupted data

V2

comparator

V3

V2

Vref

Vref

t

recovered data

V3

* A major advantage of digital systems is that, even if the original data gets distorted (e.g., in transmittingthrough optical fibre or storing on a CD) due to noise, attenuation, etc., it can be retrieved easily.

* There are several other benefits of using digital representation:

- can use computers to process the data.

- can store in a variety of storage media.

- can program the functionality. For example, the behaviour of a digital filter can be changed simply

by changing its coefficients.

M. B. Patil, IIT Bombay

Page 18: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

toriginal data

V1

tcorrupted data

V2

comparator

V3

V2

Vref

Vref

t

recovered data

V3

* A major advantage of digital systems is that, even if the original data gets distorted (e.g., in transmittingthrough optical fibre or storing on a CD) due to noise, attenuation, etc., it can be retrieved easily.

* There are several other benefits of using digital representation:

- can use computers to process the data.- can store in a variety of storage media.

- can program the functionality. For example, the behaviour of a digital filter can be changed simply

by changing its coefficients.

M. B. Patil, IIT Bombay

Page 19: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Digital circuits

toriginal data

V1

tcorrupted data

V2

comparator

V3

V2

Vref

Vref

t

recovered data

V3

* A major advantage of digital systems is that, even if the original data gets distorted (e.g., in transmittingthrough optical fibre or storing on a CD) due to noise, attenuation, etc., it can be retrieved easily.

* There are several other benefits of using digital representation:

- can use computers to process the data.- can store in a variety of storage media.

- can program the functionality. For example, the behaviour of a digital filter can be changed simply

by changing its coefficients.

M. B. Patil, IIT Bombay

Page 20: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

Gate

Truth table

Notation

Operation NOT AND OR

10

01

YA

Y = A

A Y

1

1

1 1 1

0 0 0

0

0 0

0

A B Y

= AB

Y = A · B

B

AY

1

1

1 1 1

0 0 0

0

0

A B Y

1

1

Y = A+ B

A

BY

M. B. Patil, IIT Bombay

Page 21: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

Gate

Truth table

Notation

Operation NOT AND OR

10

01

YA

Y = A

A Y

1

1

1 1 1

0 0 0

0

0 0

0

A B Y

= AB

Y = A · B

B

AY

1

1

1 1 1

0 0 0

0

0

A B Y

1

1

Y = A+ B

A

BY

M. B. Patil, IIT Bombay

Page 22: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

Gate

Truth table

Notation

Operation NOT AND OR

10

01

YA

Y = A

A Y

1

1

1 1 1

0 0 0

0

0 0

0

A B Y

= AB

Y = A · B

B

AY

1

1

1 1 1

0 0 0

0

0

A B Y

1

1

Y = A+ B

A

BY

M. B. Patil, IIT Bombay

Page 23: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

Gate

Truth table

Notation

Operation NOT AND OR

10

01

YA

Y = A

A Y

1

1

1 1 1

0 0 0

0

0 0

0

A B Y

= AB

Y = A · B

B

AY

1

1

1 1 1

0 0 0

0

0

A B Y

1

1

Y = A+ B

A

BY

M. B. Patil, IIT Bombay

Page 24: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

Gate

Truth table

Notation

Operation NORNAND XOR

1

1

1 1

0 0

0

0

A B Y

1

1

1

0

Y = A · B= AB

YA

B

1

1

1 1

0 0

0

0 0

0

A B Y

1

0

Y = A+ B

B

AY

1

1

1 1

0 0 0

0

0

A B Y

1

1

0

Y = A⊕ B

= AB+ AB

A

BY

M. B. Patil, IIT Bombay

Page 25: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

Gate

Truth table

Notation

Operation NORNAND XOR

1

1

1 1

0 0

0

0

A B Y

1

1

1

0

Y = A · B= AB

YA

B

1

1

1 1

0 0

0

0 0

0

A B Y

1

0

Y = A+ B

B

AY

1

1

1 1

0 0 0

0

0

A B Y

1

1

0

Y = A⊕ B

= AB+ AB

A

BY

M. B. Patil, IIT Bombay

Page 26: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

Gate

Truth table

Notation

Operation NORNAND XOR

1

1

1 1

0 0

0

0

A B Y

1

1

1

0

Y = A · B= AB

YA

B

1

1

1 1

0 0

0

0 0

0

A B Y

1

0

Y = A+ B

B

AY

1

1

1 1

0 0 0

0

0

A B Y

1

1

0

Y = A⊕ B

= AB+ AB

A

BY

M. B. Patil, IIT Bombay

Page 27: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

Gate

Truth table

Notation

Operation NORNAND XOR

1

1

1 1

0 0

0

0

A B Y

1

1

1

0

Y = A · B= AB

YA

B

1

1

1 1

0 0

0

0 0

0

A B Y

1

0

Y = A+ B

B

AY

1

1

1 1

0 0 0

0

0

A B Y

1

1

0

Y = A⊕ B

= AB+ AB

A

BY

M. B. Patil, IIT Bombay

Page 28: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

* The AND operation is commutative.

→ A · B = B · A.

* The AND operation is associative.

→ (A · B) · C = A · (B · C).

* The OR operation is commutative.

→ A + B = B + A.

* The OR operation is associative.

→ (A + B) + C = A + (B + C).

M. B. Patil, IIT Bombay

Page 29: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

* The AND operation is commutative.

→ A · B = B · A.

* The AND operation is associative.

→ (A · B) · C = A · (B · C).

* The OR operation is commutative.

→ A + B = B + A.

* The OR operation is associative.

→ (A + B) + C = A + (B + C).

M. B. Patil, IIT Bombay

Page 30: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

* The AND operation is commutative.

→ A · B = B · A.

* The AND operation is associative.

→ (A · B) · C = A · (B · C).

* The OR operation is commutative.

→ A + B = B + A.

* The OR operation is associative.

→ (A + B) + C = A + (B + C).

M. B. Patil, IIT Bombay

Page 31: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical operations

* The AND operation is commutative.

→ A · B = B · A.

* The AND operation is associative.

→ (A · B) · C = A · (B · C).

* The OR operation is commutative.

→ A + B = B + A.

* The OR operation is associative.

→ (A + B) + C = A + (B + C).

M. B. Patil, IIT Bombay

Page 32: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Boolean algebra (George Boole, 1815-1864)

* Theorem: A = A.

The theorem can be proved by constructing a truth table:

A A A

0 1 0

1 0 1

Therefore, for all possible values that A can take (i.e., 0 and 1), A is the same as A.

⇒ A = A.

* Similarly, the following theorems can be proved:

A + 0 = A A · 1 = A

A + 1 = 1 A · 0 = 0

A + A = A A · A = A

A + A = 1 A · A = 0

Note the duality: (+←→ ·) and (1←→ 0).

M. B. Patil, IIT Bombay

Page 33: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Boolean algebra (George Boole, 1815-1864)

* Theorem: A = A.

The theorem can be proved by constructing a truth table:

A A A

0 1 0

1 0 1

Therefore, for all possible values that A can take (i.e., 0 and 1), A is the same as A.

⇒ A = A.

* Similarly, the following theorems can be proved:

A + 0 = A A · 1 = A

A + 1 = 1 A · 0 = 0

A + A = A A · A = A

A + A = 1 A · A = 0

Note the duality: (+←→ ·) and (1←→ 0).

M. B. Patil, IIT Bombay

Page 34: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Boolean algebra (George Boole, 1815-1864)

* Theorem: A = A.

The theorem can be proved by constructing a truth table:

A A A

0 1 0

1 0 1

Therefore, for all possible values that A can take (i.e., 0 and 1), A is the same as A.

⇒ A = A.

* Similarly, the following theorems can be proved:

A + 0 = A A · 1 = A

A + 1 = 1 A · 0 = 0

A + A = A A · A = A

A + A = 1 A · A = 0

Note the duality: (+←→ ·) and (1←→ 0).

M. B. Patil, IIT Bombay

Page 35: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Boolean algebra (George Boole, 1815-1864)

* Theorem: A = A.

The theorem can be proved by constructing a truth table:

A A A

0 1 0

1 0 1

Therefore, for all possible values that A can take (i.e., 0 and 1), A is the same as A.

⇒ A = A.

* Similarly, the following theorems can be proved:

A + 0 = A A · 1 = A

A + 1 = 1 A · 0 = 0

A + A = A A · A = A

A + A = 1 A · A = 0

Note the duality: (+←→ ·) and (1←→ 0).

M. B. Patil, IIT Bombay

Page 36: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Boolean algebra (George Boole, 1815-1864)

* Theorem: A = A.

The theorem can be proved by constructing a truth table:

A A A

0 1 0

1 0 1

Therefore, for all possible values that A can take (i.e., 0 and 1), A is the same as A.

⇒ A = A.

* Similarly, the following theorems can be proved:

A + 0 = A A · 1 = A

A + 1 = 1 A · 0 = 0

A + A = A A · A = A

A + A = 1 A · A = 0

Note the duality: (+←→ ·) and (1←→ 0).

M. B. Patil, IIT Bombay

Page 37: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0

0 1 1 1 1 0 1 1

0 1

1 0 1 0 0 0 1 1

1 0

1 0 0 1 0 0 1 1

1 1

1 0 0 0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 38: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0

1 1 1 1 0 1 1

0 1 1

0 1 0 0 0 1 1

1 0 1

0 0 1 0 0 1 1

1 1 1

0 0 0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 39: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1

1 1 1 0 1 1

0 1 1 0

1 0 0 0 1 1

1 0 1 0

0 1 0 0 1 1

1 1 1 0

0 0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 40: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1

1 1 0 1 1

0 1 1 0 1

0 0 0 1 1

1 0 1 0 0

1 0 0 1 1

1 1 1 0 0

0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 41: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1

1 0 1 1

0 1 1 0 1 0

0 0 1 1

1 0 1 0 0 1

0 0 1 1

1 1 1 0 0 0

0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 42: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1 1

0 1 1

0 1 1 0 1 0 0

0 1 1

1 0 1 0 0 1 0

0 1 1

1 1 1 0 0 0 0

1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 43: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1 1 0

1 1

0 1 1 0 1 0 0 0

1 1

1 0 1 0 0 1 0 0

1 1

1 1 1 0 0 0 0 1

0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 44: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1 1 0 1

1

0 1 1 0 1 0 0 0 1

1

1 0 1 0 0 1 0 0 1

1

1 1 1 0 0 0 0 1 0

0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 45: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1 1 0 1 1

0 1 1 0 1 0 0 0 1 1

1 0 1 0 0 1 0 0 1 1

1 1 1 0 0 0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 46: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1 1 0 1 1

0 1 1 0 1 0 0 0 1 1

1 0 1 0 0 1 0 0 1 1

1 1 1 0 0 0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 47: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1 1 0 1 1

0 1 1 0 1 0 0 0 1 1

1 0 1 0 0 1 0 0 1 1

1 1 1 0 0 0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 48: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1 1 0 1 1

0 1 1 0 1 0 0 0 1 1

1 0 1 0 0 1 0 0 1 1

1 1 1 0 0 0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 49: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1 1 0 1 1

0 1 1 0 1 0 0 0 1 1

1 0 1 0 0 1 0 0 1 1

1 1 1 0 0 0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 50: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1 1 0 1 1

0 1 1 0 1 0 0 0 1 1

1 0 1 0 0 1 0 0 1 1

1 1 1 0 0 0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 51: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

De Morgan’s theorems

A B A + B A + B A B A · B A · B A · B A + B

0 0 0 1 1 1 1 0 1 1

0 1 1 0 1 0 0 0 1 1

1 0 1 0 0 1 0 0 1 1

1 1 1 0 0 0 0 1 0 0

* Comparing the truth tables for A + B and AB, we conclude that A + B = AB.

* Similiarly, A · B = A + B.

* Similar relations hold for more than two variables, e.g.,

A · B · C = A + B + C ,

A + B + C + D = A · B · C · D,

(A + B) · C = (A + B) + C = A · B + C .

M. B. Patil, IIT Bombay

Page 52: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

1. A · (B + C) = AB + AC .

A B C B + C A · (B + C) AB AC AB + AC

0 0 0

0 0 0 0 0

0 0 1

1 0 0 0 0

0 1 0

1 0 0 0 0

0 1 1

1 0 0 0 0

1 0 0

0 0 0 0 0

1 0 1

1 1 0 1 1

1 1 0

1 1 1 0 1

1 1 1

1 1 1 1 1

M. B. Patil, IIT Bombay

Page 53: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

1. A · (B + C) = AB + AC .

A B C B + C A · (B + C) AB AC AB + AC

0 0 0

0 0 0 0 0

0 0 1

1 0 0 0 0

0 1 0

1 0 0 0 0

0 1 1

1 0 0 0 0

1 0 0

0 0 0 0 0

1 0 1

1 1 0 1 1

1 1 0

1 1 1 0 1

1 1 1

1 1 1 1 1

M. B. Patil, IIT Bombay

Page 54: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

1. A · (B + C) = AB + AC .

A B C B + C A · (B + C) AB AC AB + AC

0 0 0 0

0 0 0 0

0 0 1 1

0 0 0 0

0 1 0 1

0 0 0 0

0 1 1 1

0 0 0 0

1 0 0 0

0 0 0 0

1 0 1 1

1 0 1 1

1 1 0 1

1 1 0 1

1 1 1 1

1 1 1 1

M. B. Patil, IIT Bombay

Page 55: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

1. A · (B + C) = AB + AC .

A B C B + C A · (B + C) AB AC AB + AC

0 0 0 0 0

0 0 0

0 0 1 1 0

0 0 0

0 1 0 1 0

0 0 0

0 1 1 1 0

0 0 0

1 0 0 0 0

0 0 0

1 0 1 1 1

0 1 1

1 1 0 1 1

1 0 1

1 1 1 1 1

1 1 1

M. B. Patil, IIT Bombay

Page 56: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

1. A · (B + C) = AB + AC .

A B C B + C A · (B + C) AB AC AB + AC

0 0 0 0 0 0

0 0

0 0 1 1 0 0

0 0

0 1 0 1 0 0

0 0

0 1 1 1 0 0

0 0

1 0 0 0 0 0

0 0

1 0 1 1 1 0

1 1

1 1 0 1 1 1

0 1

1 1 1 1 1 1

1 1

M. B. Patil, IIT Bombay

Page 57: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

1. A · (B + C) = AB + AC .

A B C B + C A · (B + C) AB AC AB + AC

0 0 0 0 0 0 0

0

0 0 1 1 0 0 0

0

0 1 0 1 0 0 0

0

0 1 1 1 0 0 0

0

1 0 0 0 0 0 0

0

1 0 1 1 1 0 1

1

1 1 0 1 1 1 0

1

1 1 1 1 1 1 1

1

M. B. Patil, IIT Bombay

Page 58: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

1. A · (B + C) = AB + AC .

A B C B + C A · (B + C) AB AC AB + AC

0 0 0 0 0 0 0 0

0 0 1 1 0 0 0 0

0 1 0 1 0 0 0 0

0 1 1 1 0 0 0 0

1 0 0 0 0 0 0 0

1 0 1 1 1 0 1 1

1 1 0 1 1 1 0 1

1 1 1 1 1 1 1 1

M. B. Patil, IIT Bombay

Page 59: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

1. A · (B + C) = AB + AC .

A B C B + C A · (B + C) AB AC AB + AC

0 0 0 0 0 0 0 0

0 0 1 1 0 0 0 0

0 1 0 1 0 0 0 0

0 1 1 1 0 0 0 0

1 0 0 0 0 0 0 0

1 0 1 1 1 0 1 1

1 1 0 1 1 1 0 1

1 1 1 1 1 1 1 1

M. B. Patil, IIT Bombay

Page 60: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

2. A + B · C = (A + B) · (A + C).

A B C B C A + B C A + B A + C (A + B) (A + C)

0 0 0

0 0 0 0 0

0 0 1

0 0 0 1 0

0 1 0

0 0 1 0 0

0 1 1

1 1 1 1 1

1 0 0

0 1 1 1 1

1 0 1

0 1 1 1 1

1 1 0

0 1 1 1 1

1 1 1

1 1 1 1 1

M. B. Patil, IIT Bombay

Page 61: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

2. A + B · C = (A + B) · (A + C).

A B C B C A + B C A + B A + C (A + B) (A + C)

0 0 0

0 0 0 0 0

0 0 1

0 0 0 1 0

0 1 0

0 0 1 0 0

0 1 1

1 1 1 1 1

1 0 0

0 1 1 1 1

1 0 1

0 1 1 1 1

1 1 0

0 1 1 1 1

1 1 1

1 1 1 1 1

M. B. Patil, IIT Bombay

Page 62: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

2. A + B · C = (A + B) · (A + C).

A B C B C A + B C A + B A + C (A + B) (A + C)

0 0 0 0

0 0 0 0

0 0 1 0

0 0 1 0

0 1 0 0

0 1 0 0

0 1 1 1

1 1 1 1

1 0 0 0

1 1 1 1

1 0 1 0

1 1 1 1

1 1 0 0

1 1 1 1

1 1 1 1

1 1 1 1

M. B. Patil, IIT Bombay

Page 63: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

2. A + B · C = (A + B) · (A + C).

A B C B C A + B C A + B A + C (A + B) (A + C)

0 0 0 0 0

0 0 0

0 0 1 0 0

0 1 0

0 1 0 0 0

1 0 0

0 1 1 1 1

1 1 1

1 0 0 0 1

1 1 1

1 0 1 0 1

1 1 1

1 1 0 0 1

1 1 1

1 1 1 1 1

1 1 1

M. B. Patil, IIT Bombay

Page 64: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

2. A + B · C = (A + B) · (A + C).

A B C B C A + B C A + B A + C (A + B) (A + C)

0 0 0 0 0 0

0 0

0 0 1 0 0 0

1 0

0 1 0 0 0 1

0 0

0 1 1 1 1 1

1 1

1 0 0 0 1 1

1 1

1 0 1 0 1 1

1 1

1 1 0 0 1 1

1 1

1 1 1 1 1 1

1 1

M. B. Patil, IIT Bombay

Page 65: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

2. A + B · C = (A + B) · (A + C).

A B C B C A + B C A + B A + C (A + B) (A + C)

0 0 0 0 0 0 0

0

0 0 1 0 0 0 1

0

0 1 0 0 0 1 0

0

0 1 1 1 1 1 1

1

1 0 0 0 1 1 1

1

1 0 1 0 1 1 1

1

1 1 0 0 1 1 1

1

1 1 1 1 1 1 1

1

M. B. Patil, IIT Bombay

Page 66: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

2. A + B · C = (A + B) · (A + C).

A B C B C A + B C A + B A + C (A + B) (A + C)

0 0 0 0 0 0 0 0

0 0 1 0 0 0 1 0

0 1 0 0 0 1 0 0

0 1 1 1 1 1 1 1

1 0 0 0 1 1 1 1

1 0 1 0 1 1 1 1

1 1 0 0 1 1 1 1

1 1 1 1 1 1 1 1

M. B. Patil, IIT Bombay

Page 67: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Distributive laws

2. A + B · C = (A + B) · (A + C).

A B C B C A + B C A + B A + C (A + B) (A + C)

0 0 0 0 0 0 0 0

0 0 1 0 0 0 1 0

0 1 0 0 0 1 0 0

0 1 1 1 1 1 1 1

1 0 0 0 1 1 1 1

1 0 1 0 1 1 1 1

1 1 0 0 1 1 1 1

1 1 1 1 1 1 1 1

M. B. Patil, IIT Bombay

Page 68: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Useful theorems

* A + AB = A.

To prove this theorem, we can follow two approaches:

(a) Construct truth tables for LHS and RHS for all possible input combinations, and show that they arethe same.

(b) Use identities and theorems stated earlier to show that LHS=RHS.

A + AB = A · 1 + A · B= A · (1 + B)= A · (1)= A

* A · (A + B) = A.

Proof: A · (A + B) = A · A + A · B= A + AB= A

M. B. Patil, IIT Bombay

Page 69: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Useful theorems

* A + AB = A.

To prove this theorem, we can follow two approaches:

(a) Construct truth tables for LHS and RHS for all possible input combinations, and show that they arethe same.

(b) Use identities and theorems stated earlier to show that LHS=RHS.

A + AB = A · 1 + A · B= A · (1 + B)= A · (1)= A

* A · (A + B) = A.

Proof: A · (A + B) = A · A + A · B= A + AB= A

M. B. Patil, IIT Bombay

Page 70: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Useful theorems

* A + AB = A.

To prove this theorem, we can follow two approaches:

(a) Construct truth tables for LHS and RHS for all possible input combinations, and show that they arethe same.

(b) Use identities and theorems stated earlier to show that LHS=RHS.

A + AB = A · 1 + A · B= A · (1 + B)= A · (1)= A

* A · (A + B) = A.

Proof: A · (A + B) = A · A + A · B= A + AB= A

M. B. Patil, IIT Bombay

Page 71: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Useful theorems

* A + AB = A.

To prove this theorem, we can follow two approaches:

(a) Construct truth tables for LHS and RHS for all possible input combinations, and show that they arethe same.

(b) Use identities and theorems stated earlier to show that LHS=RHS.

A + AB = A · 1 + A · B= A · (1 + B)= A · (1)= A

* A · (A + B) = A.

Proof: A · (A + B) = A · A + A · B= A + AB= A

M. B. Patil, IIT Bombay

Page 72: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Useful theorems

* A + AB = A.

To prove this theorem, we can follow two approaches:

(a) Construct truth tables for LHS and RHS for all possible input combinations, and show that they arethe same.

(b) Use identities and theorems stated earlier to show that LHS=RHS.

A + AB = A · 1 + A · B= A · (1 + B)= A · (1)= A

* A · (A + B) = A.

Proof: A · (A + B) = A · A + A · B= A + AB= A

M. B. Patil, IIT Bombay

Page 73: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Useful theorems

* A + AB = A.

To prove this theorem, we can follow two approaches:

(a) Construct truth tables for LHS and RHS for all possible input combinations, and show that they arethe same.

(b) Use identities and theorems stated earlier to show that LHS=RHS.

A + AB = A · 1 + A · B= A · (1 + B)= A · (1)= A

* A · (A + B) = A.

Proof: A · (A + B) = A · A + A · B= A + AB= A

M. B. Patil, IIT Bombay

Page 74: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Duality

A + AB = A ←→ A · (A + B) = A.

Note the duality between OR and AND.

Dual of A + (AB) (LHS): AB → A + BA + AB → A · (A + B).

Dual of A (RHS) = A (since there are no operations ivolved).

⇒ A · (A + B) = A.

Similarly, consider A + A = 1, with (+←→ .) and (1←→ 0).

Dual of LHS = A · A.

Dual of RHS = 0.

⇒ A · A = 0.

M. B. Patil, IIT Bombay

Page 75: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Duality

A + AB = A ←→ A · (A + B) = A.

Note the duality between OR and AND.

Dual of A + (AB) (LHS): AB → A + BA + AB → A · (A + B).

Dual of A (RHS) = A (since there are no operations ivolved).

⇒ A · (A + B) = A.

Similarly, consider A + A = 1, with (+←→ .) and (1←→ 0).

Dual of LHS = A · A.

Dual of RHS = 0.

⇒ A · A = 0.

M. B. Patil, IIT Bombay

Page 76: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Duality

A + AB = A ←→ A · (A + B) = A.

Note the duality between OR and AND.

Dual of A + (AB) (LHS): AB → A + BA + AB → A · (A + B).

Dual of A (RHS) = A (since there are no operations ivolved).

⇒ A · (A + B) = A.

Similarly, consider A + A = 1, with (+←→ .) and (1←→ 0).

Dual of LHS = A · A.

Dual of RHS = 0.

⇒ A · A = 0.

M. B. Patil, IIT Bombay

Page 77: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Duality

A + AB = A ←→ A · (A + B) = A.

Note the duality between OR and AND.

Dual of A + (AB) (LHS): AB → A + BA + AB → A · (A + B).

Dual of A (RHS) = A (since there are no operations ivolved).

⇒ A · (A + B) = A.

Similarly, consider A + A = 1, with (+←→ .) and (1←→ 0).

Dual of LHS = A · A.

Dual of RHS = 0.

⇒ A · A = 0.

M. B. Patil, IIT Bombay

Page 78: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Duality

A + AB = A ←→ A · (A + B) = A.

Note the duality between OR and AND.

Dual of A + (AB) (LHS): AB → A + BA + AB → A · (A + B).

Dual of A (RHS) = A (since there are no operations ivolved).

⇒ A · (A + B) = A.

Similarly, consider A + A = 1, with (+←→ .) and (1←→ 0).

Dual of LHS = A · A.

Dual of RHS = 0.

⇒ A · A = 0.

M. B. Patil, IIT Bombay

Page 79: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Duality

A + AB = A ←→ A · (A + B) = A.

Note the duality between OR and AND.

Dual of A + (AB) (LHS): AB → A + BA + AB → A · (A + B).

Dual of A (RHS) = A (since there are no operations ivolved).

⇒ A · (A + B) = A.

Similarly, consider A + A = 1, with (+←→ .) and (1←→ 0).

Dual of LHS = A · A.

Dual of RHS = 0.

⇒ A · A = 0.

M. B. Patil, IIT Bombay

Page 80: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Duality

A + AB = A ←→ A · (A + B) = A.

Note the duality between OR and AND.

Dual of A + (AB) (LHS): AB → A + BA + AB → A · (A + B).

Dual of A (RHS) = A (since there are no operations ivolved).

⇒ A · (A + B) = A.

Similarly, consider A + A = 1, with (+←→ .) and (1←→ 0).

Dual of LHS = A · A.

Dual of RHS = 0.

⇒ A · A = 0.

M. B. Patil, IIT Bombay

Page 81: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Duality

A + AB = A ←→ A · (A + B) = A.

Note the duality between OR and AND.

Dual of A + (AB) (LHS): AB → A + BA + AB → A · (A + B).

Dual of A (RHS) = A (since there are no operations ivolved).

⇒ A · (A + B) = A.

Similarly, consider A + A = 1, with (+←→ .) and (1←→ 0).

Dual of LHS = A · A.

Dual of RHS = 0.

⇒ A · A = 0.

M. B. Patil, IIT Bombay

Page 82: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Useful theorems

* A + AB = A + B.

Proof: A + AB = (A + A) · (A + B) (by distributive law)

= 1 · (A + B)

= A + B

Dual theorem: A · (A + B) = AB.

* AB + AB = A.

Proof: AB + AB = A · (B + B) (by distributive law)

= A · 1= A

Dual theorem: (A + B) · (A + B) = A.

M. B. Patil, IIT Bombay

Page 83: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Useful theorems

* A + AB = A + B.

Proof: A + AB = (A + A) · (A + B) (by distributive law)

= 1 · (A + B)

= A + B

Dual theorem: A · (A + B) = AB.

* AB + AB = A.

Proof: AB + AB = A · (B + B) (by distributive law)

= A · 1= A

Dual theorem: (A + B) · (A + B) = A.

M. B. Patil, IIT Bombay

Page 84: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Useful theorems

* A + AB = A + B.

Proof: A + AB = (A + A) · (A + B) (by distributive law)

= 1 · (A + B)

= A + B

Dual theorem: A · (A + B) = AB.

* AB + AB = A.

Proof: AB + AB = A · (B + B) (by distributive law)

= A · 1= A

Dual theorem: (A + B) · (A + B) = A.

M. B. Patil, IIT Bombay

Page 85: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Useful theorems

* A + AB = A + B.

Proof: A + AB = (A + A) · (A + B) (by distributive law)

= 1 · (A + B)

= A + B

Dual theorem: A · (A + B) = AB.

* AB + AB = A.

Proof: AB + AB = A · (B + B) (by distributive law)

= A · 1= A

Dual theorem: (A + B) · (A + B) = A.

M. B. Patil, IIT Bombay

Page 86: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 87: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 88: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 89: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 90: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 91: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 92: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 93: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 94: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 95: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 96: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

A game of words

In an India-Australia match, India will win if one or more of the following conditions are met:

(a) Tendulkar scores a century.

(b) Tedulkar does not score a century AND Warne fails (to get wickets).

(c) Tedulkar does not score a century AND Sehwag scores a century.

Let T ≡ Tendulkar scores a century.

S ≡ Sehwag scores a century.

W ≡ Warne fails.

I ≡ India wins.

I = T + T W + T S

= T + T + T W + T S

= (T + T W ) + (T + T S)

= (T + T ) · (T + W ) + (T + T ) · (T + S)

= T + W + T + S

= T + W + S

i.e., India will win if one or more of the following hold:

(a) Tendulkar strikes, (b) Warne fails, (c) Sehwag strikes.

M. B. Patil, IIT Bombay

Page 97: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C + AB C

≡ X1 + X2 + X3 + X4

This form is called the “sum of products” form (“sum” corresponding to ORand “product” corresponding to AND).

We can construct the truth table for X in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate X1 = AB C , etc. Note that X1 is 1 only if A=B =C = 1 (i.e., A= 0, B = 1, C = 0),and 0 otherwise.

(3) Since X = X1 + X2 + X3 + X4,X is 1 if any of X1, X2, X3, X4 is 1; else X is 0.→ tabulate X .

M. B. Patil, IIT Bombay

Page 98: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C + AB C

≡ X1 + X2 + X3 + X4

This form is called the “sum of products” form (“sum” corresponding to ORand “product” corresponding to AND).

We can construct the truth table for X in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate X1 = AB C , etc. Note that X1 is 1 only if A=B =C = 1 (i.e., A= 0, B = 1, C = 0),and 0 otherwise.

(3) Since X = X1 + X2 + X3 + X4,X is 1 if any of X1, X2, X3, X4 is 1; else X is 0.→ tabulate X .

M. B. Patil, IIT Bombay

Page 99: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C + AB C

≡ X1 + X2 + X3 + X4

This form is called the “sum of products” form (“sum” corresponding to ORand “product” corresponding to AND).

We can construct the truth table for X in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate X1 = AB C , etc. Note that X1 is 1 only if A=B =C = 1 (i.e., A= 0, B = 1, C = 0),and 0 otherwise.

(3) Since X = X1 + X2 + X3 + X4,X is 1 if any of X1, X2, X3, X4 is 1; else X is 0.→ tabulate X .

M. B. Patil, IIT Bombay

Page 100: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C + AB C

≡ X1 + X2 + X3 + X4

This form is called the “sum of products” form (“sum” corresponding to ORand “product” corresponding to AND).

We can construct the truth table for X in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate X1 = AB C , etc. Note that X1 is 1 only if A=B =C = 1 (i.e., A= 0, B = 1, C = 0),and 0 otherwise.

(3) Since X = X1 + X2 + X3 + X4,X is 1 if any of X1, X2, X3, X4 is 1; else X is 0.→ tabulate X .

M. B. Patil, IIT Bombay

Page 101: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C + AB C

≡ X1 + X2 + X3 + X4

This form is called the “sum of products” form (“sum” corresponding to ORand “product” corresponding to AND).

We can construct the truth table for X in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate X1 = AB C , etc. Note that X1 is 1 only if A=B =C = 1 (i.e., A= 0, B = 1, C = 0),and 0 otherwise.

(3) Since X = X1 + X2 + X3 + X4,X is 1 if any of X1, X2, X3, X4 is 1; else X is 0.→ tabulate X .

M. B. Patil, IIT Bombay

Page 102: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C + AB C

≡ X1 + X2 + X3 + X4

This form is called the “sum of products” form (“sum” corresponding to ORand “product” corresponding to AND).

We can construct the truth table for X in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate X1 = AB C , etc. Note that X1 is 1 only if A=B =C = 1 (i.e., A= 0, B = 1, C = 0),and 0 otherwise.

(3) Since X = X1 + X2 + X3 + X4,X is 1 if any of X1, X2, X3, X4 is 1; else X is 0.→ tabulate X .

M. B. Patil, IIT Bombay

Page 103: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 104: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 105: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 106: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 107: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 108: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 109: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 110: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 111: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 112: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 113: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Sum of products” form

XCBA X4X3X2X1

X = X1 + X2 + X3 + X4 = ABC+ ABC+ ABC+ ABC

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

1

1

1

0

0

0

0

M. B. Patil, IIT Bombay

Page 114: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function Y of three variables A, B, C :

Y = (A + B + C) · (A + B + C) · (A + B + C) · (A + B + C)

≡ Y1 · Y2 · Y3 · Y4

This form is called the “product of sums” form (“sum” corresponding to OR,and “product” corresponding to AND).

We can construct the truth table for Y in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate Y1 = A + B + C , etc. Note that Y1 is 0 only if A=B =C = 0;Y1 is 1 otherwise.

(3) Since Y = Y1 Y2 Y3 Y4,Y is 0 if any of Y1, Y2, Y3, Y4 is 0; else Y is 1.→ tabulate Y .

M. B. Patil, IIT Bombay

Page 115: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function Y of three variables A, B, C :

Y = (A + B + C) · (A + B + C) · (A + B + C) · (A + B + C)

≡ Y1 · Y2 · Y3 · Y4

This form is called the “product of sums” form (“sum” corresponding to OR,and “product” corresponding to AND).

We can construct the truth table for Y in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate Y1 = A + B + C , etc. Note that Y1 is 0 only if A=B =C = 0;Y1 is 1 otherwise.

(3) Since Y = Y1 Y2 Y3 Y4,Y is 0 if any of Y1, Y2, Y3, Y4 is 0; else Y is 1.→ tabulate Y .

M. B. Patil, IIT Bombay

Page 116: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function Y of three variables A, B, C :

Y = (A + B + C) · (A + B + C) · (A + B + C) · (A + B + C)

≡ Y1 · Y2 · Y3 · Y4

This form is called the “product of sums” form (“sum” corresponding to OR,and “product” corresponding to AND).

We can construct the truth table for Y in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate Y1 = A + B + C , etc. Note that Y1 is 0 only if A=B =C = 0;Y1 is 1 otherwise.

(3) Since Y = Y1 Y2 Y3 Y4,Y is 0 if any of Y1, Y2, Y3, Y4 is 0; else Y is 1.→ tabulate Y .

M. B. Patil, IIT Bombay

Page 117: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function Y of three variables A, B, C :

Y = (A + B + C) · (A + B + C) · (A + B + C) · (A + B + C)

≡ Y1 · Y2 · Y3 · Y4

This form is called the “product of sums” form (“sum” corresponding to OR,and “product” corresponding to AND).

We can construct the truth table for Y in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate Y1 = A + B + C , etc. Note that Y1 is 0 only if A=B =C = 0;Y1 is 1 otherwise.

(3) Since Y = Y1 Y2 Y3 Y4,Y is 0 if any of Y1, Y2, Y3, Y4 is 0; else Y is 1.→ tabulate Y .

M. B. Patil, IIT Bombay

Page 118: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function Y of three variables A, B, C :

Y = (A + B + C) · (A + B + C) · (A + B + C) · (A + B + C)

≡ Y1 · Y2 · Y3 · Y4

This form is called the “product of sums” form (“sum” corresponding to OR,and “product” corresponding to AND).

We can construct the truth table for Y in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate Y1 = A + B + C , etc. Note that Y1 is 0 only if A=B =C = 0;Y1 is 1 otherwise.

(3) Since Y = Y1 Y2 Y3 Y4,Y is 0 if any of Y1, Y2, Y3, Y4 is 0; else Y is 1.→ tabulate Y .

M. B. Patil, IIT Bombay

Page 119: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Logical functions in standard forms

Consider a function Y of three variables A, B, C :

Y = (A + B + C) · (A + B + C) · (A + B + C) · (A + B + C)

≡ Y1 · Y2 · Y3 · Y4

This form is called the “product of sums” form (“sum” corresponding to OR,and “product” corresponding to AND).

We can construct the truth table for Y in a systematic manner:

(1) Enumerate all possible combinations of A, B, C .Since each of A, B, C can take two values (0 or 1), we have 23 possibilities.

(2) Tabulate Y1 = A + B + C , etc. Note that Y1 is 0 only if A=B =C = 0;Y1 is 1 otherwise.

(3) Since Y = Y1 Y2 Y3 Y4,Y is 0 if any of Y1, Y2, Y3, Y4 is 0; else Y is 1.→ tabulate Y .

M. B. Patil, IIT Bombay

Page 120: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 121: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 122: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 123: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 124: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 125: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 126: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 127: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 128: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 129: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 130: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 131: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

“Product of sums” form

YCBA Y4Y3Y2Y1

Y = Y1 Y2 Y3 Y4 = (A+ B+ C) (A+ B+ C) (A+ B+ C) (A+ B+ C)

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1

0

1

1

1

1

1

1

1 0

1

1

1

1

1

1

1

0

0

0

0

1

1

1

1

Note that Y is identical to X (seen two slides back). This is an example of how the same function can be written in two

seemingly different forms (in this case, the sum-of-products form and the product-of-sums form).

M. B. Patil, IIT Bombay

Page 132: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Standard sum-of-products form

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C

This form is called the standard sum-of-products form, and each individual term (consisting of all threevariables) is called a “minterm.”

In the truth table for X , the numbers of 1s is the same as the number of minterms, as we have seen in anexample.

X can be rewritten as,

X = AB C + AB (C + C)

= AB C + AB.

This is also a sum-of-products form, but not the standard one.

M. B. Patil, IIT Bombay

Page 133: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Standard sum-of-products form

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C

This form is called the standard sum-of-products form, and each individual term (consisting of all threevariables) is called a “minterm.”

In the truth table for X , the numbers of 1s is the same as the number of minterms, as we have seen in anexample.

X can be rewritten as,

X = AB C + AB (C + C)

= AB C + AB.

This is also a sum-of-products form, but not the standard one.

M. B. Patil, IIT Bombay

Page 134: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Standard sum-of-products form

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C

This form is called the standard sum-of-products form, and each individual term (consisting of all threevariables) is called a “minterm.”

In the truth table for X , the numbers of 1s is the same as the number of minterms, as we have seen in anexample.

X can be rewritten as,

X = AB C + AB (C + C)

= AB C + AB.

This is also a sum-of-products form, but not the standard one.

M. B. Patil, IIT Bombay

Page 135: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Standard sum-of-products form

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C

This form is called the standard sum-of-products form, and each individual term (consisting of all threevariables) is called a “minterm.”

In the truth table for X , the numbers of 1s is the same as the number of minterms, as we have seen in anexample.

X can be rewritten as,

X = AB C + AB (C + C)

= AB C + AB.

This is also a sum-of-products form, but not the standard one.

M. B. Patil, IIT Bombay

Page 136: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Standard sum-of-products form

Consider a function X of three variables A, B, C :

X = AB C + AB C + AB C

This form is called the standard sum-of-products form, and each individual term (consisting of all threevariables) is called a “minterm.”

In the truth table for X , the numbers of 1s is the same as the number of minterms, as we have seen in anexample.

X can be rewritten as,

X = AB C + AB (C + C)

= AB C + AB.

This is also a sum-of-products form, but not the standard one.

M. B. Patil, IIT Bombay

Page 137: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Standard product-of-sums form

Consider a function X of three variables A, B, C :

X = (A + B + C) (A + B + C) (A + B + C)

This form is called the standard product-of-sums form, and each individual term (consisting of all threevariables) is called a “maxterm.”

In the truth table for X , the numbers of 0s is the same as the number of maxterms, as we have seen in anexample.

X can be rewritten as,

X = (A + B + C) (A + B + C) (A + B + C)

= (A + B + C) (A + C + B) (A + C + B)

= (A + B + C) (A + C + B B)

= (A + B + C) (A + C).

This is also a product-of-sums form, but not the standard one.

M. B. Patil, IIT Bombay

Page 138: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Standard product-of-sums form

Consider a function X of three variables A, B, C :

X = (A + B + C) (A + B + C) (A + B + C)

This form is called the standard product-of-sums form, and each individual term (consisting of all threevariables) is called a “maxterm.”

In the truth table for X , the numbers of 0s is the same as the number of maxterms, as we have seen in anexample.

X can be rewritten as,

X = (A + B + C) (A + B + C) (A + B + C)

= (A + B + C) (A + C + B) (A + C + B)

= (A + B + C) (A + C + B B)

= (A + B + C) (A + C).

This is also a product-of-sums form, but not the standard one.

M. B. Patil, IIT Bombay

Page 139: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Standard product-of-sums form

Consider a function X of three variables A, B, C :

X = (A + B + C) (A + B + C) (A + B + C)

This form is called the standard product-of-sums form, and each individual term (consisting of all threevariables) is called a “maxterm.”

In the truth table for X , the numbers of 0s is the same as the number of maxterms, as we have seen in anexample.

X can be rewritten as,

X = (A + B + C) (A + B + C) (A + B + C)

= (A + B + C) (A + C + B) (A + C + B)

= (A + B + C) (A + C + B B)

= (A + B + C) (A + C).

This is also a product-of-sums form, but not the standard one.

M. B. Patil, IIT Bombay

Page 140: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Standard product-of-sums form

Consider a function X of three variables A, B, C :

X = (A + B + C) (A + B + C) (A + B + C)

This form is called the standard product-of-sums form, and each individual term (consisting of all threevariables) is called a “maxterm.”

In the truth table for X , the numbers of 0s is the same as the number of maxterms, as we have seen in anexample.

X can be rewritten as,

X = (A + B + C) (A + B + C) (A + B + C)

= (A + B + C) (A + C + B) (A + C + B)

= (A + B + C) (A + C + B B)

= (A + B + C) (A + C).

This is also a product-of-sums form, but not the standard one.

M. B. Patil, IIT Bombay

Page 141: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Standard product-of-sums form

Consider a function X of three variables A, B, C :

X = (A + B + C) (A + B + C) (A + B + C)

This form is called the standard product-of-sums form, and each individual term (consisting of all threevariables) is called a “maxterm.”

In the truth table for X , the numbers of 0s is the same as the number of maxterms, as we have seen in anexample.

X can be rewritten as,

X = (A + B + C) (A + B + C) (A + B + C)

= (A + B + C) (A + C + B) (A + C + B)

= (A + B + C) (A + C + B B)

= (A + B + C) (A + C).

This is also a product-of-sums form, but not the standard one.

M. B. Patil, IIT Bombay

Page 142: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

The “don’t care” condition

I want to design a box (with inputs A, B, C , and output S) which will help in scheduling my appointments.

A ≡ I am in town, and the time slot being suggested for the appointment is free.

B ≡ My favourite player is scheduled to play a match (which I can watch on TV).

C ≡ The appointment is crucial for my business.

S ≡ Schedule the appointment.

The following truth table summarizes the expected functioning of the box.

A B C S

0 X X 0

1 0 X 1

1 1 0 0

1 1 1 1

Note that we have a new entity called X in the truth table.

X can be 0 or 1 (it does not matter) and is therefore called the “don’t care” condition.

Don’t care conditions can often be used to get a more efficient implementation of a logical function.

M. B. Patil, IIT Bombay

Page 143: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

The “don’t care” condition

I want to design a box (with inputs A, B, C , and output S) which will help in scheduling my appointments.

A ≡ I am in town, and the time slot being suggested for the appointment is free.

B ≡ My favourite player is scheduled to play a match (which I can watch on TV).

C ≡ The appointment is crucial for my business.

S ≡ Schedule the appointment.

The following truth table summarizes the expected functioning of the box.

A B C S

0 X X 0

1 0 X 1

1 1 0 0

1 1 1 1

Note that we have a new entity called X in the truth table.

X can be 0 or 1 (it does not matter) and is therefore called the “don’t care” condition.

Don’t care conditions can often be used to get a more efficient implementation of a logical function.

M. B. Patil, IIT Bombay

Page 144: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

The “don’t care” condition

I want to design a box (with inputs A, B, C , and output S) which will help in scheduling my appointments.

A ≡ I am in town, and the time slot being suggested for the appointment is free.

B ≡ My favourite player is scheduled to play a match (which I can watch on TV).

C ≡ The appointment is crucial for my business.

S ≡ Schedule the appointment.

The following truth table summarizes the expected functioning of the box.

A B C S

0 X X 0

1 0 X 1

1 1 0 0

1 1 1 1

Note that we have a new entity called X in the truth table.

X can be 0 or 1 (it does not matter) and is therefore called the “don’t care” condition.

Don’t care conditions can often be used to get a more efficient implementation of a logical function.

M. B. Patil, IIT Bombay

Page 145: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

The “don’t care” condition

I want to design a box (with inputs A, B, C , and output S) which will help in scheduling my appointments.

A ≡ I am in town, and the time slot being suggested for the appointment is free.

B ≡ My favourite player is scheduled to play a match (which I can watch on TV).

C ≡ The appointment is crucial for my business.

S ≡ Schedule the appointment.

The following truth table summarizes the expected functioning of the box.

A B C S

0 X X 0

1 0 X 1

1 1 0 0

1 1 1 1

Note that we have a new entity called X in the truth table.

X can be 0 or 1 (it does not matter) and is therefore called the “don’t care” condition.

Don’t care conditions can often be used to get a more efficient implementation of a logical function.

M. B. Patil, IIT Bombay

Page 146: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

The “don’t care” condition

I want to design a box (with inputs A, B, C , and output S) which will help in scheduling my appointments.

A ≡ I am in town, and the time slot being suggested for the appointment is free.

B ≡ My favourite player is scheduled to play a match (which I can watch on TV).

C ≡ The appointment is crucial for my business.

S ≡ Schedule the appointment.

The following truth table summarizes the expected functioning of the box.

A B C S

0 X X 0

1 0 X 1

1 1 0 0

1 1 1 1

Note that we have a new entity called X in the truth table.

X can be 0 or 1 (it does not matter) and is therefore called the “don’t care” condition.

Don’t care conditions can often be used to get a more efficient implementation of a logical function.

M. B. Patil, IIT Bombay

Page 147: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Karnaugh maps

* A Karnaugh map (“K-map”) is a representation of the truth table of a logicalfunction.

* A K-map can be used to obtain a “minimal” expression of a function in thesum-of-products form or in the product-of-sums form.

* A “minimal” expression has a minimum number of terms, each with a minimumnumber of variables. (For some functions, it is possible to have more than oneminimal expressions, i.e., more than one expressions with the same complexity.)

* A minimal expression can be implemented with fewer gates.

M. B. Patil, IIT Bombay

Page 148: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Karnaugh maps

* A Karnaugh map (“K-map”) is a representation of the truth table of a logicalfunction.

* A K-map can be used to obtain a “minimal” expression of a function in thesum-of-products form or in the product-of-sums form.

* A “minimal” expression has a minimum number of terms, each with a minimumnumber of variables. (For some functions, it is possible to have more than oneminimal expressions, i.e., more than one expressions with the same complexity.)

* A minimal expression can be implemented with fewer gates.

M. B. Patil, IIT Bombay

Page 149: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Karnaugh maps

* A Karnaugh map (“K-map”) is a representation of the truth table of a logicalfunction.

* A K-map can be used to obtain a “minimal” expression of a function in thesum-of-products form or in the product-of-sums form.

* A “minimal” expression has a minimum number of terms, each with a minimumnumber of variables. (For some functions, it is possible to have more than oneminimal expressions, i.e., more than one expressions with the same complexity.)

* A minimal expression can be implemented with fewer gates.

M. B. Patil, IIT Bombay

Page 150: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Karnaugh maps

* A Karnaugh map (“K-map”) is a representation of the truth table of a logicalfunction.

* A K-map can be used to obtain a “minimal” expression of a function in thesum-of-products form or in the product-of-sums form.

* A “minimal” expression has a minimum number of terms, each with a minimumnumber of variables. (For some functions, it is possible to have more than oneminimal expressions, i.e., more than one expressions with the same complexity.)

* A minimal expression can be implemented with fewer gates.

M. B. Patil, IIT Bombay

Page 151: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

YCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

X

0

0

0

0

AB

C 00 01 11 10

1

0

1

1 X

1

AB

C 00 01 11 10

1 1

1

1

X0 0

00

0

* A K-map is the same as the truth table of a function except for the way the entries are arranged.

* In a K-map, the adjacent rows or columns differ only in one variable. For example, in going from thecolumn AB = 01 to AB = 11, there is only one change, viz., A= 0 → A= 1.

M. B. Patil, IIT Bombay

Page 152: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

YCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

X

0

0

0

0

AB

C 00 01 11 10

1

0

1

1 X

1

AB

C 00 01 11 10

1 1

1

1

X0 0

00

0

* A K-map is the same as the truth table of a function except for the way the entries are arranged.

* In a K-map, the adjacent rows or columns differ only in one variable. For example, in going from thecolumn AB = 01 to AB = 11, there is only one change, viz., A= 0 → A= 1.

M. B. Patil, IIT Bombay

Page 153: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

YCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

X

0

0

0

0

AB

C 00 01 11 10

1

0

1

1 X

1

AB

C 00 01 11 10

1 1

1

1

X0 0

00

0

* A K-map is the same as the truth table of a function except for the way the entries are arranged.

* In a K-map, the adjacent rows or columns differ only in one variable. For example, in going from thecolumn AB = 01 to AB = 11, there is only one change, viz., A= 0 → A= 1.

M. B. Patil, IIT Bombay

Page 154: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

YCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

X

0

0

0

0

AB

C 00 01 11 10

1

0

1

1

X

1

AB

C 00 01 11 10

1 1

1

1

X0 0

00

0

* A K-map is the same as the truth table of a function except for the way the entries are arranged.

* In a K-map, the adjacent rows or columns differ only in one variable. For example, in going from thecolumn AB = 01 to AB = 11, there is only one change, viz., A= 0 → A= 1.

M. B. Patil, IIT Bombay

Page 155: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

YCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

X

0

0

0

0

AB

C 00 01 11 10

1

0

1

1 X

1

AB

C 00 01 11 10

1 1

1

1

X0 0

00

0

* A K-map is the same as the truth table of a function except for the way the entries are arranged.

* In a K-map, the adjacent rows or columns differ only in one variable. For example, in going from thecolumn AB = 01 to AB = 11, there is only one change, viz., A= 0 → A= 1.

M. B. Patil, IIT Bombay

Page 156: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

YCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

X

0

0

0

0

AB

C 00 01 11 10

1

0

1

1 X

1

AB

C 00 01 11 10

1 1

1

1

X0 0

00

0

* A K-map is the same as the truth table of a function except for the way the entries are arranged.

* In a K-map, the adjacent rows or columns differ only in one variable. For example, in going from thecolumn AB = 01 to AB = 11, there is only one change, viz., A= 0 → A= 1.

M. B. Patil, IIT Bombay

Page 157: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

YCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

X

0

0

0

0

AB

C 00 01 11 10

1

0

1

1 X

1

AB

C 00 01 11 10

1 1

1

1

X0 0

00

0

* A K-map is the same as the truth table of a function except for the way the entries are arranged.

* In a K-map, the adjacent rows or columns differ only in one variable. For example, in going from thecolumn AB = 01 to AB = 11, there is only one change, viz., A= 0 → A= 1.

M. B. Patil, IIT Bombay

Page 158: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

YCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

X

0

0

0

0

AB

C 00 01 11 10

1

0

1

1 X

1

AB

C 00 01 11 10

1 1

1

1

X0 0

00

0

* A K-map is the same as the truth table of a function except for the way the entries are arranged.

* In a K-map, the adjacent rows or columns differ only in one variable. For example, in going from thecolumn AB = 01 to AB = 11, there is only one change, viz., A= 0 → A= 1.

M. B. Patil, IIT Bombay

Page 159: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

YCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

X

0

0

0

0

AB

C 00 01 11 10

1

0

1

1 X

1

AB

C 00 01 11 10

1 1

1

1

X0 0

00

0

* A K-map is the same as the truth table of a function except for the way the entries are arranged.

* In a K-map, the adjacent rows or columns differ only in one variable. For example, in going from thecolumn AB = 01 to AB = 11, there is only one change, viz., A= 0 → A= 1.

M. B. Patil, IIT Bombay

Page 160: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps: example with four variables

YDCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0

0

1

1

1

1

0

0

0

0

1

1

1

1

1

1

0

1

0

0

0

X

0

1

0

0

0

1

AB

00

1

1

1

0

00 01 11 10

0

1

0

0 0 0

11

0 X

00

0

CD

01

11

10

M. B. Patil, IIT Bombay

Page 161: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10

00 0 1 0

0000

0

0

0 0

0

0

0

0

0

CD

01

11

10

X1 = ABCD

AB00 01 11 10

00 0 0 0

0011

0

0

0 0

0

0

0

0

0

CD

01

11

10

X2 = ACD

AB00 01 11 10

00 0 0 0

0000

0

0

0 1

1

1

1

0

0

CD

01

11

10

X3 = AC

*No. of variables No. of 1’s

4 20

3 21

2 22

* The 1’s can be enclosed by a rectangle in each case.

M. B. Patil, IIT Bombay

Page 162: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10

00 0 1 0

0000

0

0

0 0

0

0

0

0

0

CD

01

11

10

X1 = ABCD

AB00 01 11 10

00 0 0 0

0011

0

0

0 0

0

0

0

0

0

CD

01

11

10

X2 = ACD

AB00 01 11 10

00 0 0 0

0000

0

0

0 1

1

1

1

0

0

CD

01

11

10

X3 = AC

*No. of variables No. of 1’s

4 20

3 21

2 22

* The 1’s can be enclosed by a rectangle in each case.

M. B. Patil, IIT Bombay

Page 163: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10

00 0 1 0

0000

0

0

0 0

0

0

0

0

0

CD

01

11

10

X1 = ABCD

AB00 01 11 10

00 0 0 0

0011

0

0

0 0

0

0

0

0

0

CD

01

11

10

X2 = ACD

AB00 01 11 10

00 0 0 0

0000

0

0

0 1

1

1

1

0

0

CD

01

11

10

X3 = AC

*No. of variables No. of 1’s

4 20

3 21

2 22

* The 1’s can be enclosed by a rectangle in each case.

M. B. Patil, IIT Bombay

Page 164: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10

00 0 1 0

0000

0

0

0 0

0

0

0

0

0

CD

01

11

10

X1 = ABCD

AB00 01 11 10

00 0 0 0

0011

0

0

0 0

0

0

0

0

0

CD

01

11

10

X2 = ACD

AB00 01 11 10

00 0 0 0

0000

0

0

0 1

1

1

1

0

0

CD

01

11

10

X3 = AC

*No. of variables No. of 1’s

4 20

3 21

2 22

* The 1’s can be enclosed by a rectangle in each case.

M. B. Patil, IIT Bombay

Page 165: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10

00 0 1 0

0000

0

0

0 0

0

0

0

0

0

CD

01

11

10

X1 = ABCD

AB00 01 11 10

00 0 0 0

0011

0

0

0 0

0

0

0

0

0

CD

01

11

10

X2 = ACD

AB00 01 11 10

00 0 0 0

0000

0

0

0 1

1

1

1

0

0

CD

01

11

10

X3 = AC

*No. of variables No. of 1’s

4 20

3 21

2 22

* The 1’s can be enclosed by a rectangle in each case.

M. B. Patil, IIT Bombay

Page 166: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10

00 0 1 0

0000

0

0

0 0

0

0

0

0

AB00 01 11 10

00 0 0 0

0011

0

0

0 0

0

0

0

0

0 0

AB00 01 11 10

00 0 0 0

0000

0

0

0 1

1

1

1

0

0

CD

01

11

10

CD

01

11

10

CD

01

11

10

X3 = ACX2 = ACDX1 = ABCD

AB00 01 11 10

00 0 1 0

0011

0

0

0 1

1

1

1

0

0

CD

01

11

10

Y = X1 + X2 + X3

* We are interested in identifying a minimal expression from the given K-map.

* Minimal: smallest number of terms, smallest number of variables in each term→ smallest number of rectangles containing 2k 1’s, each as large as possible

M. B. Patil, IIT Bombay

Page 167: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10

00 0 1 0

0000

0

0

0 0

0

0

0

0

AB00 01 11 10

00 0 0 0

0011

0

0

0 0

0

0

0

0

0 0

AB00 01 11 10

00 0 0 0

0000

0

0

0 1

1

1

1

0

0

CD

01

11

10

CD

01

11

10

CD

01

11

10

X3 = ACX2 = ACDX1 = ABCD

AB00 01 11 10

00 0 1 0

0011

0

0

0 1

1

1

1

0

0

CD

01

11

10

Y = X1 + X2 + X3

* We are interested in identifying a minimal expression from the given K-map.

* Minimal: smallest number of terms, smallest number of variables in each term→ smallest number of rectangles containing 2k 1’s, each as large as possible

M. B. Patil, IIT Bombay

Page 168: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10

00 0 1 0

0000

0

0

0 0

0

0

0

0

AB00 01 11 10

00 0 0 0

0011

0

0

0 0

0

0

0

0

0 0

AB00 01 11 10

00 0 0 0

0000

0

0

0 1

1

1

1

0

0

CD

01

11

10

CD

01

11

10

CD

01

11

10

X3 = ACX2 = ACDX1 = ABCD

AB00 01 11 10

00 0 1 0

0011

0

0

0 1

1

1

1

0

0

CD

01

11

10

Y = X1 + X2 + X3

* We are interested in identifying a minimal expression from the given K-map.

* Minimal: smallest number of terms, smallest number of variables in each term→ smallest number of rectangles containing 2k 1’s, each as large as possible

M. B. Patil, IIT Bombay

Page 169: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10

00 0 1 0

0000

0

0

0 0

0

0

0

0

AB00 01 11 10

00 0 0 0

0011

0

0

0 0

0

0

0

0

0 0

AB00 01 11 10

00 0 0 0

0000

0

0

0 1

1

1

1

0

0

CD

01

11

10

CD

01

11

10

CD

01

11

10

X3 = ACX2 = ACDX1 = ABCD

AB00 01 11 10

00 0 1 0

0011

0

0

0 1

1

1

1

0

0

CD

01

11

10

Y = X1 + X2 + X3

* We are interested in identifying a minimal expression from the given K-map.

* Minimal: smallest number of terms, smallest number of variables in each term→ smallest number of rectangles containing 2k 1’s, each as large as possible

M. B. Patil, IIT Bombay

Page 170: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

0 0 1 1 0

00001

00 01 11 10

What is the logical function (Y ) represented by this K-map?

* There are 21 1’s forming a rectangle → we can combine them.

* The product term is 1 if B = 1, and C = 0.

* The product term does not depend on A.

→ Y =B C

M. B. Patil, IIT Bombay

Page 171: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

0 0 1 1 0

00001

00 01 11 10

What is the logical function (Y ) represented by this K-map?

* There are 21 1’s forming a rectangle → we can combine them.

* The product term is 1 if B = 1, and C = 0.

* The product term does not depend on A.

→ Y =B C

M. B. Patil, IIT Bombay

Page 172: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

0 0 1 1 0

00001

00 01 11 10

What is the logical function (Y ) represented by this K-map?

* There are 21 1’s forming a rectangle → we can combine them.

* The product term is 1 if B = 1, and C = 0.

* The product term does not depend on A.

→ Y =B C

M. B. Patil, IIT Bombay

Page 173: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

0 0 1 1 0

00001

00 01 11 10

What is the logical function (Y ) represented by this K-map?

* There are 21 1’s forming a rectangle → we can combine them.

* The product term is 1 if B = 1, and C = 0.

* The product term does not depend on A.

→ Y =B C

M. B. Patil, IIT Bombay

Page 174: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

0 0 1 1 0

00001

00 01 11 10

What is the logical function (Y ) represented by this K-map?

* There are 21 1’s forming a rectangle → we can combine them.

* The product term is 1 if B = 1, and C = 0.

* The product term does not depend on A.

→ Y =B C

M. B. Patil, IIT Bombay

Page 175: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

0 0 1 1 0

00001

00 01 11 10

What is the logical function (Y ) represented by this K-map?

* There are 21 1’s forming a rectangle → we can combine them.

* The product term is 1 if B = 1, and C = 0.

* The product term does not depend on A.

→ Y =B C

M. B. Patil, IIT Bombay

Page 176: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10C

0

1 0

0 0 1 0

100

Can the 1s shown in the K-map be combined?

Although the number of 1’s is a power of 2 (21), they cannot be combined because they are not adjacent(i.e., they do not form a rectangle).

→ the function (AB C + AB C) cannot be minimized.

M. B. Patil, IIT Bombay

Page 177: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10C

0

1 0

0 0 1 0

100

Can the 1s shown in the K-map be combined?

Although the number of 1’s is a power of 2 (21), they cannot be combined because they are not adjacent(i.e., they do not form a rectangle).

→ the function (AB C + AB C) cannot be minimized.

M. B. Patil, IIT Bombay

Page 178: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB00 01 11 10C

0

1 0

0 0 1 0

100

Can the 1s shown in the K-map be combined?

Although the number of 1’s is a power of 2 (21), they cannot be combined because they are not adjacent(i.e., they do not form a rectangle).

→ the function (AB C + AB C) cannot be minimized.

M. B. Patil, IIT Bombay

Page 179: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

1 0 0 0 0

00

00 01 11 10

110

AB

C

0 1 1 0 0

00001

10 00 01 11

Can the 1’s shown in the K-map be combined?

Let us redraw the K-map by changing the order of the columns cyclically.

The two 1’s are, in fact, adjacent and can be combined to give B C .

→ Columns AB = 00 and AB = 10 in the K-map on the left are indeed “logically adjacent” (although they arenot geometrically adjacent) since they differ only in one variable (A).

We could have therefore combined the 1’s without actually redrawing the K-map.

M. B. Patil, IIT Bombay

Page 180: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

1 0 0 0 0

00

00 01 11 10

110

AB

C

0 1 1 0 0

00001

10 00 01 11

Can the 1’s shown in the K-map be combined?

Let us redraw the K-map by changing the order of the columns cyclically.

The two 1’s are, in fact, adjacent and can be combined to give B C .

→ Columns AB = 00 and AB = 10 in the K-map on the left are indeed “logically adjacent” (although they arenot geometrically adjacent) since they differ only in one variable (A).

We could have therefore combined the 1’s without actually redrawing the K-map.

M. B. Patil, IIT Bombay

Page 181: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

1 0 0 0 0

00

00 01 11 10

110

AB

C

0 1 1 0 0

00001

10 00 01 11

Can the 1’s shown in the K-map be combined?

Let us redraw the K-map by changing the order of the columns cyclically.

The two 1’s are, in fact, adjacent and can be combined to give B C .

→ Columns AB = 00 and AB = 10 in the K-map on the left are indeed “logically adjacent” (although they arenot geometrically adjacent) since they differ only in one variable (A).

We could have therefore combined the 1’s without actually redrawing the K-map.

M. B. Patil, IIT Bombay

Page 182: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

1 0 0 0 0

00

00 01 11 10

110

AB

C

0 1 1 0 0

00001

10 00 01 11

Can the 1’s shown in the K-map be combined?

Let us redraw the K-map by changing the order of the columns cyclically.

The two 1’s are, in fact, adjacent and can be combined to give B C .

→ Columns AB = 00 and AB = 10 in the K-map on the left are indeed “logically adjacent” (although they arenot geometrically adjacent) since they differ only in one variable (A).

We could have therefore combined the 1’s without actually redrawing the K-map.

M. B. Patil, IIT Bombay

Page 183: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

1 0 0 0 0

00

00 01 11 10

110

AB

C

0 1 1 0 0

00001

10 00 01 11

Can the 1’s shown in the K-map be combined?

Let us redraw the K-map by changing the order of the columns cyclically.

The two 1’s are, in fact, adjacent and can be combined to give B C .

→ Columns AB = 00 and AB = 10 in the K-map on the left are indeed “logically adjacent” (although they arenot geometrically adjacent) since they differ only in one variable (A).

We could have therefore combined the 1’s without actually redrawing the K-map.

M. B. Patil, IIT Bombay

Page 184: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

1 0 0 0 0

00

00 01 11 10

110

AB

C

0 1 1 0 0

00001

10 00 01 11

Can the 1’s shown in the K-map be combined?

Let us redraw the K-map by changing the order of the columns cyclically.

The two 1’s are, in fact, adjacent and can be combined to give B C .

→ Columns AB = 00 and AB = 10 in the K-map on the left are indeed “logically adjacent” (although they arenot geometrically adjacent) since they differ only in one variable (A).

We could have therefore combined the 1’s without actually redrawing the K-map.

M. B. Patil, IIT Bombay

Page 185: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

1 0 0 0 0

00

00 01 11 10

110

AB

C

0 1 1 0 0

00001

10 00 01 11

Can the 1’s shown in the K-map be combined?

Let us redraw the K-map by changing the order of the columns cyclically.

The two 1’s are, in fact, adjacent and can be combined to give B C .

→ Columns AB = 00 and AB = 10 in the K-map on the left are indeed “logically adjacent” (although they arenot geometrically adjacent) since they differ only in one variable (A).

We could have therefore combined the 1’s without actually redrawing the K-map.

M. B. Patil, IIT Bombay

Page 186: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

AB

C

1 0 0 0 0

00

00 01 11 10

110

AB

C

0 1 1 0 0

00001

10 00 01 11

Can the 1’s shown in the K-map be combined?

Let us redraw the K-map by changing the order of the columns cyclically.

The two 1’s are, in fact, adjacent and can be combined to give B C .

→ Columns AB = 00 and AB = 10 in the K-map on the left are indeed “logically adjacent” (although they arenot geometrically adjacent) since they differ only in one variable (A).

We could have therefore combined the 1’s without actually redrawing the K-map.

M. B. Patil, IIT Bombay

Page 187: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

00 01 11 10

00

1

0

0

1 0

0

0

0

0

0

0

0

1

0

0

1

AB

CD

01

11

10

X1 = BD

1 1

1 1

0

0

0

0

0

0

0

000

0 0

00

AB00 01 11 10

01

11

10

CD

X2 = BC

M. B. Patil, IIT Bombay

Page 188: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

00 01 11 10

00

1

0

0

1 0

0

0

0

0

0

0

0

1

0

0

1

AB

CD

01

11

10

X1 = BD

1 1

1 1

0

0

0

0

0

0

0

000

0 0

00

AB00 01 11 10

01

11

10

CD

X2 = BC

M. B. Patil, IIT Bombay

Page 189: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

00 01 11 10

00

1

0

0

1 0

0

0

0

0

0

0

0

1

0

0

1

AB

CD

01

11

10

X1 = BD

1 1

1 1

0

0

0

0

0

0

0

000

0 0

00

AB00 01 11 10

01

11

10

CD

X2 = BC

M. B. Patil, IIT Bombay

Page 190: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

00 01 11 10

00

1

0

0

1 0

0

0

0

0

0

0

0

1

0

0

1

AB

CD

01

11

10

X1 = BD

1 1

1 1

0

0

0

0

0

0

0

000

0 0

00

AB00 01 11 10

01

11

10

CD

X2 = BC

M. B. Patil, IIT Bombay

Page 191: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

00 01 11 10

00

1

0

0

1 0

0

0

0

0

0

0

0

1

0

0

1

AB

CD

01

11

10

X1 = BD

1 1

1 1

0

0

0

0

0

0

0

000

0 0

00

AB00 01 11 10

01

11

10

CD

X2 = BC

M. B. Patil, IIT Bombay

Page 192: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

00 01 11 10

00

1

0

0

1 0

0

0

0

0

0

0

0

1

0

0

1

AB

CD

01

11

10

X1 = BD

1 1

1 1

0

0

0

0

0

0

0

000

0 0

00

AB00 01 11 10

01

11

10

CD

X2 = BC

M. B. Patil, IIT Bombay

Page 193: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

00

0

0

0

0

00 01 11 10

0

0

0 0 0

00

0

0

AB

CD

01

11

10

Standard sum-of-products form:

Since the number of minterms is not a power of 2, they cannot be combined

into a single term; however, they can be combined into two terms:

X1 = ABCD+ ABCD + ABCD

1

1 1

= ABC (D+ D) + BCD (A+ A)

X1 = ABCD + ABCD+ ABCD+ ABCD (using Y=Y+Y)

= ABC+ BCD

* A minterm can be combined with others more than once.

M. B. Patil, IIT Bombay

Page 194: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

00

0

0

0

0

00 01 11 10

0

0

0 0 0

00

0

0

AB

CD

01

11

10

Standard sum-of-products form:

Since the number of minterms is not a power of 2, they cannot be combined

into a single term; however, they can be combined into two terms:

X1 = ABCD+ ABCD + ABCD

1

1 1

= ABC (D+ D) + BCD (A+ A)

X1 = ABCD + ABCD+ ABCD+ ABCD (using Y=Y+Y)

= ABC+ BCD

* A minterm can be combined with others more than once.

M. B. Patil, IIT Bombay

Page 195: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

00

0

0

0

0

00 01 11 10

0

0

0 0 0

00

0

0

AB

CD

01

11

10

Standard sum-of-products form:

Since the number of minterms is not a power of 2, they cannot be combined

into a single term; however, they can be combined into two terms:

X1 = ABCD+ ABCD + ABCD

1

1 1

= ABC (D+ D) + BCD (A+ A)

X1 = ABCD + ABCD+ ABCD+ ABCD (using Y=Y+Y)

= ABC+ BCD

* A minterm can be combined with others more than once.

M. B. Patil, IIT Bombay

Page 196: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

00

0

0

0

0

00 01 11 10

0

0

0 0 0

00

0

0

AB

CD

01

11

10

Standard sum-of-products form:

Since the number of minterms is not a power of 2, they cannot be combined

into a single term; however, they can be combined into two terms:

X1 = ABCD+ ABCD + ABCD

1

1 1

= ABC (D+ D) + BCD (A+ A)

X1 = ABCD + ABCD+ ABCD+ ABCD (using Y=Y+Y)

= ABC+ BCD

* A minterm can be combined with others more than once.

M. B. Patil, IIT Bombay

Page 197: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1

11

1

1

1

1

00 0

0

0 0 0

0 0 0

01

11

10

00 01 11 10AB

CD

X1:

X1 = AC+ BC+ ABCD + ABD

M. B. Patil, IIT Bombay

Page 198: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1

11

1

1

1

1

00 0

0

0 0 0

0 0 0

01

11

10

00 01 11 10AB

CD

X1:

X1 = AC+ BC+ ABCD + ABD

M. B. Patil, IIT Bombay

Page 199: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1

11

1

1

1

1

00 0

0

0 0 0

0 0 0

01

11

10

00 01 11 10AB

CD

X1:

X1 = AC+ BC+ ABCD + ABD

M. B. Patil, IIT Bombay

Page 200: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1

11

1

1

1

1

00 0

0

0 0 0

0 0 0

01

11

10

00 01 11 10AB

CD

X1:

X1 = AC+ BC+ ABCD + ABD

M. B. Patil, IIT Bombay

Page 201: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1

11

1

1

1

1

00 0

0

0 0 0

0 0 0

01

11

10

00 01 11 10AB

CD

X1:

X1 = AC+ BC+ ABCD + ABD

M. B. Patil, IIT Bombay

Page 202: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1

11

1

1

1

1

00 0

0

0 0 0

0 0 0

01

11

10

00 01 11 10AB

CD

X1: X1 = AC+ BC+ ABCD + ABD

M. B. Patil, IIT Bombay

Page 203: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1 1

1 1

00 01 11 10

00 X

X

0 0 0

00

0 000

01

11

10

AB

CD

Z:

1 1 1

1

1

1

AB00 01 11 10

00 0 0 0

00

0 000

0

01

11

10

CD

Z = CD + ACD

Since X represents a “don’t care” condition, we can assign 0 or 1 to the corresponding minterm to arrive at aminimal expression.

M. B. Patil, IIT Bombay

Page 204: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1 1

1 1

00 01 11 10

00 X

X

0 0 0

00

0 000

01

11

10

AB

CD

Z:

1 1 1

1

1

1

AB00 01 11 10

00 0 0 0

00

0 000

0

01

11

10

CD

Z = CD + ACD

Since X represents a “don’t care” condition, we can assign 0 or 1 to the corresponding minterm to arrive at aminimal expression.

M. B. Patil, IIT Bombay

Page 205: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1 1

1 1

00 01 11 10

00 X

X

0 0 0

00

0 000

01

11

10

AB

CD

Z:

1 1 1

1

1

1

AB00 01 11 10

00 0 0 0

00

0 000

0

01

11

10

CD

Z = CD + ACD

Since X represents a “don’t care” condition, we can assign 0 or 1 to the corresponding minterm to arrive at aminimal expression.

M. B. Patil, IIT Bombay

Page 206: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1 1

1 1

00 01 11 10

00 X

X

0 0 0

00

0 000

01

11

10

AB

CD

Z:

1 1 1

1

1

1

AB00 01 11 10

00 0 0 0

00

0 000

0

01

11

10

CD

Z = CD + ACD

Since X represents a “don’t care” condition, we can assign 0 or 1 to the corresponding minterm to arrive at aminimal expression.

M. B. Patil, IIT Bombay

Page 207: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

K-maps

1 1 1

1 1

00 01 11 10

00 X

X

0 0 0

00

0 000

01

11

10

AB

CD

Z:

1 1 1

1

1

1

AB00 01 11 10

00 0 0 0

00

0 000

0

01

11

10

CD

Z = CD + ACD

Since X represents a “don’t care” condition, we can assign 0 or 1 to the corresponding minterm to arrive at aminimal expression.

M. B. Patil, IIT Bombay

Page 208: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Binary numbers

3 1 7 = 3× 102 + 1× 101 + 7× 100

101102 100

Decimal (base 10) system

* Digits: 0,1,2,..,9

* example: 4 1 5 3

most significantdigit

least significantdigit

Binary (base 2) system

1 0 1 1 1 = 1× 24 + 0× 23 + 1 × 22 + 1× 21 + 1× 20

21 20

222324

= 23 (in decimal)

* Bits: 0,1

* example: 1 0 0 1 1 0

most significant

bit (MSB)

least significant

bit (LSB)

M. B. Patil, IIT Bombay

Page 209: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Binary numbers

3 1 7 = 3× 102 + 1× 101 + 7× 100

101102 100

Decimal (base 10) system

* Digits: 0,1,2,..,9

* example: 4 1 5 3

most significantdigit

least significantdigit

Binary (base 2) system

1 0 1 1 1 = 1× 24 + 0× 23 + 1 × 22 + 1× 21 + 1× 20

21 20

222324

= 23 (in decimal)

* Bits: 0,1

* example: 1 0 0 1 1 0

most significant

bit (MSB)

least significant

bit (LSB)

M. B. Patil, IIT Bombay

Page 210: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Binary numbers

3 1 7 = 3× 102 + 1× 101 + 7× 100

101102 100

Decimal (base 10) system

* Digits: 0,1,2,..,9

* example: 4 1 5 3

most significantdigit

least significantdigit

Binary (base 2) system

1 0 1 1 1 = 1× 24 + 0× 23 + 1 × 22 + 1× 21 + 1× 20

21 20

222324

= 23 (in decimal)

* Bits: 0,1

* example: 1 0 0 1 1 0

most significant

bit (MSB)

least significant

bit (LSB)

M. B. Patil, IIT Bombay

Page 211: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Binary numbers

3 1 7 = 3× 102 + 1× 101 + 7× 100

101102 100

Decimal (base 10) system

* Digits: 0,1,2,..,9

* example: 4 1 5 3

most significantdigit

least significantdigit

Binary (base 2) system

1 0 1 1 1 = 1× 24 + 0× 23 + 1 × 22 + 1× 21 + 1× 20

21 20

222324

= 23 (in decimal)

* Bits: 0,1

* example: 1 0 0 1 1 0

most significant

bit (MSB)

least significant

bit (LSB)

M. B. Patil, IIT Bombay

Page 212: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Addition of binary numbers

49111

9

5

7

1

1

1

0

3

8

weight

first number

second number

carry

sum

1

104 103 102 101 100

Decimal (base 10) system

1

1

weight

carry

1 0 1 1

1 1 0

1

11 0 0 1

first number (dec. 11)

sum (dec. 25)

second number (dec. 14)

1

2021222324

Binary (base 2) system

* 0+ 1 = 1+ 0 = 1 → S = 1, C = 0

* 1+ 1 = 10 (dec. 2) → S = 0, C = 1

* 1+ 1+ 1 = 11 (dec. 3) → S = 1,C = 1

M. B. Patil, IIT Bombay

Page 213: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Addition of binary numbers

49111

9

5

7

1

1

1

0

3

8

weight

first number

second number

carry

sum

1

104 103 102 101 100

Decimal (base 10) system

1

1

weight

carry

1 0 1 1

1 1 0

1

11 0 0 1

first number (dec. 11)

sum (dec. 25)

second number (dec. 14)

1

2021222324

Binary (base 2) system

* 0+ 1 = 1+ 0 = 1 → S = 1, C = 0

* 1+ 1 = 10 (dec. 2) → S = 0, C = 1

* 1+ 1+ 1 = 11 (dec. 3) → S = 1,C = 1

M. B. Patil, IIT Bombay

Page 214: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Addition of binary numbers

49111

9

5

7

1

1

1

0

3

8

weight

first number

second number

carry

sum

1

104 103 102 101 100

Decimal (base 10) system

1

1

weight

carry

1 0 1 1

1 1 0

1

11 0 0 1

first number (dec. 11)

sum (dec. 25)

second number (dec. 14)

1

2021222324

Binary (base 2) system

* 0+ 1 = 1+ 0 = 1 → S = 1, C = 0

* 1+ 1 = 10 (dec. 2) → S = 0, C = 1

* 1+ 1+ 1 = 11 (dec. 3) → S = 1,C = 1

M. B. Patil, IIT Bombay

Page 215: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Addition of binary numbers

49111

9

5

7

1

1

1

0

3

8

weight

first number

second number

carry

sum

1

104 103 102 101 100

Decimal (base 10) system

1

1

weight

carry

1 0 1 1

1 1 0

1

11 0 0 1

first number (dec. 11)

sum (dec. 25)

second number (dec. 14)

1

2021222324

Binary (base 2) system

* 0+ 1 = 1+ 0 = 1 → S = 1, C = 0

* 1+ 1 = 10 (dec. 2) → S = 0, C = 1

* 1+ 1+ 1 = 11 (dec. 3) → S = 1,C = 1

M. B. Patil, IIT Bombay

Page 216: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Addition of binary numbers

49111

9

5

7

1

1

1

0

3

8

weight

first number

second number

carry

sum

1

104 103 102 101 100

Decimal (base 10) system

1

1

weight

carry

1 0 1 1

1 1 0

1

11 0 0 1

first number (dec. 11)

sum (dec. 25)

second number (dec. 14)

1

2021222324

Binary (base 2) system

* 0+ 1 = 1+ 0 = 1 → S = 1, C = 0

* 1+ 1 = 10 (dec. 2) → S = 0, C = 1

* 1+ 1+ 1 = 11 (dec. 3) → S = 1,C = 1

M. B. Patil, IIT Bombay

Page 217: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Addition of binary numbers

0

0 −

example

1

1

weight

carry

1 0 1 1

1 1

1

11 0 0 1

1

first number

second number

sum

2021222324

weight

first number

second number

carry

sum

general procedure

CN

20

AN

BN

CN−1

2122

A2

B2

C1

S2 S1

C0

B1

A1

2N

A0

B0

S0SN

· · ·

· · ·

· · ·

A

B

S

A

B

S

A

B

S

FA

A

B

S

FA FA HA

CinCin Cin CoCoCo CoCNCN−1

BNAN

S2

C1

B2A2

S1

C0

A1 B1

S0

B0A0

SN

* The rightmost block (corresponding to the LSB) adds two bits A0 and B0; there is no input carry.This block is called a “half adder.”

* Each of the subsequent blocks adds three bits (Ai , Bi , Ci−1) and is called a “full adder.”

M. B. Patil, IIT Bombay

Page 218: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Addition of binary numbers

0

0 −

example

1

1

weight

carry

1 0 1 1

1 1

1

11 0 0 1

1

first number

second number

sum

2021222324 weight

first number

second number

carry

sum

general procedure

CN

20

AN

BN

CN−1

2122

A2

B2

C1

S2 S1

C0

B1

A1

2N

A0

B0

S0SN

· · ·

· · ·

· · ·

A

B

S

A

B

S

A

B

S

FA

A

B

S

FA FA HA

CinCin Cin CoCoCo CoCNCN−1

BNAN

S2

C1

B2A2

S1

C0

A1 B1

S0

B0A0

SN

* The rightmost block (corresponding to the LSB) adds two bits A0 and B0; there is no input carry.This block is called a “half adder.”

* Each of the subsequent blocks adds three bits (Ai , Bi , Ci−1) and is called a “full adder.”

M. B. Patil, IIT Bombay

Page 219: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Addition of binary numbers

0

0 −

example

1

1

weight

carry

1 0 1 1

1 1

1

11 0 0 1

1

first number

second number

sum

2021222324 weight

first number

second number

carry

sum

general procedure

CN

20

AN

BN

CN−1

2122

A2

B2

C1

S2 S1

C0

B1

A1

2N

A0

B0

S0SN

· · ·

· · ·

· · ·

A

B

S

A

B

S

A

B

S

FA

A

B

S

FA FA HA

CinCin Cin CoCoCo CoCNCN−1

BNAN

S2

C1

B2A2

S1

C0

A1 B1

S0

B0A0

SN

* The rightmost block (corresponding to the LSB) adds two bits A0 and B0; there is no input carry.This block is called a “half adder.”

* Each of the subsequent blocks adds three bits (Ai , Bi , Ci−1) and is called a “full adder.”

M. B. Patil, IIT Bombay

Page 220: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Addition of binary numbers

0

0 −

example

1

1

weight

carry

1 0 1 1

1 1

1

11 0 0 1

1

first number

second number

sum

2021222324 weight

first number

second number

carry

sum

general procedure

CN

20

AN

BN

CN−1

2122

A2

B2

C1

S2 S1

C0

B1

A1

2N

A0

B0

S0SN

· · ·

· · ·

· · ·

A

B

S

A

B

S

A

B

S

FA

A

B

S

FA FA HA

CinCin Cin CoCoCo CoCNCN−1

BNAN

S2

C1

B2A2

S1

C0

A1 B1

S0

B0A0

SN

* The rightmost block (corresponding to the LSB) adds two bits A0 and B0; there is no input carry.This block is called a “half adder.”

* Each of the subsequent blocks adds three bits (Ai , Bi , Ci−1) and is called a “full adder.”

M. B. Patil, IIT Bombay

Page 221: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Addition of binary numbers

0

0 −

example

1

1

weight

carry

1 0 1 1

1 1

1

11 0 0 1

1

first number

second number

sum

2021222324 weight

first number

second number

carry

sum

general procedure

CN

20

AN

BN

CN−1

2122

A2

B2

C1

S2 S1

C0

B1

A1

2N

A0

B0

S0SN

· · ·

· · ·

· · ·

A

B

S

A

B

S

A

B

S

FA

A

B

S

FA FA HA

CinCin Cin CoCoCo CoCNCN−1

BNAN

S2

C1

B2A2

S1

C0

A1 B1

S0

B0A0

SN

* The rightmost block (corresponding to the LSB) adds two bits A0 and B0; there is no input carry.This block is called a “half adder.”

* Each of the subsequent blocks adds three bits (Ai , Bi , Ci−1) and is called a “full adder.”

M. B. Patil, IIT Bombay

Page 222: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Half adder implementation

A

B

S

HA

Co

SCoA

C0

B

S0

B0

A0

1

0

1 0

1

0 0

1

0

0

0

1 0

1

1

0

S = AB+ AB = A⊕ B

Co = AB

Implementation 1

Co

A

B

A

B

AB

AB

S

Implementation 2

Co

A+ B

AB

S

A

B

M. B. Patil, IIT Bombay

Page 223: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Half adder implementation

A

B

S

HA

Co

SCoA

C0

B

S0

B0

A0

1

0

1 0

1

0 0

1

0

0

0

1 0

1

1

0S = AB+ AB = A⊕ B

Co = AB

Implementation 1

Co

A

B

A

B

AB

AB

S

Implementation 2

Co

A+ B

AB

S

A

B

M. B. Patil, IIT Bombay

Page 224: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Half adder implementation

A

B

S

HA

Co

SCoA

C0

B

S0

B0

A0

1

0

1 0

1

0 0

1

0

0

0

1 0

1

1

0S = AB+ AB = A⊕ B

Co = AB

Implementation 1

Co

A

B

A

B

AB

AB

S

Implementation 2

Co

A+ B

AB

S

A

B

M. B. Patil, IIT Bombay

Page 225: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Half adder implementation

A

B

S

HA

Co

SCoA

C0

B

S0

B0

A0

1

0

1 0

1

0 0

1

0

0

0

1 0

1

1

0S = AB+ AB = A⊕ B

Co = AB

Implementation 1

Co

A

B

A

B

AB

AB

S

Implementation 2

Co

A+ B

AB

S

A

B

M. B. Patil, IIT Bombay

Page 226: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Full adder implementation

A

B

S

FA

Co SCin

Co Cin

BA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

S:

00 01 11 10

0 0 1 0 1

1 1 0 1 0

AB

S = ABCin + ABCin + ABCin + ABCin

Cin

AB

00 01 11 10

0 0 0 1 0

1 0 1 11

Co = AB + BCin + ACin

Co:

Cin

M. B. Patil, IIT Bombay

Page 227: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Full adder implementation

A

B

S

FA

Co SCin

Co Cin

BA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

S:

00 01 11 10

0 0 1 0 1

1 1 0 1 0

AB

S = ABCin + ABCin + ABCin + ABCin

Cin

AB

00 01 11 10

0 0 0 1 0

1 0 1 11

Co = AB + BCin + ACin

Co:

Cin

M. B. Patil, IIT Bombay

Page 228: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Full adder implementation

A

B

S

FA

Co SCin

Co Cin

BA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

S:

00 01 11 10

0 0 1 0 1

1 1 0 1 0

AB

S = ABCin + ABCin + ABCin + ABCin

Cin

AB

00 01 11 10

0 0 0 1 0

1 0 1 11

Co = AB + BCin + ACin

Co:

Cin

M. B. Patil, IIT Bombay

Page 229: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

The NOT, AND, OR operations can be realised by using only NAND gates:

NOT

A = A · A

A A

AND

A · B = A · B

ABA

B

OR

A+ B = A · B

A

B

A+ B

M. B. Patil, IIT Bombay

Page 230: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

The NOT, AND, OR operations can be realised by using only NAND gates:

NOT

A = A · A

A A

AND

A · B = A · B

ABA

B

OR

A+ B = A · B

A

B

A+ B

M. B. Patil, IIT Bombay

Page 231: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

The NOT, AND, OR operations can be realised by using only NAND gates:

NOT

A = A · A

A A

AND

A · B = A · B

ABA

B

OR

A+ B = A · B

A

B

A+ B

M. B. Patil, IIT Bombay

Page 232: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

The NOT, AND, OR operations can be realised by using only NAND gates:

NOT

A = A · A

A A

AND

A · B = A · B

ABA

B

OR

A+ B = A · B

A

B

A+ B

M. B. Patil, IIT Bombay

Page 233: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = AB+ BCD+ AD using only NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = AB · BCD · AD

AB

BCDY

AD

A

B

D

BC

A

D

M. B. Patil, IIT Bombay

Page 234: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = AB+ BCD+ AD using only NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = AB · BCD · AD

AB

BCDY

AD

A

B

D

BC

A

D

M. B. Patil, IIT Bombay

Page 235: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = AB+ BCD+ AD using only NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = AB · BCD · AD

AB

BCDY

AD

A

B

D

BC

A

D

M. B. Patil, IIT Bombay

Page 236: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = AB+ BCD+ AD using only NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = AB · BCD · AD

AB

BCDY

AD

A

B

D

BC

A

D

M. B. Patil, IIT Bombay

Page 237: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = AB+ BCD+ AD using only NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = AB · BCD · AD

AB

BCDY

AD

A

B

D

BC

A

D

M. B. Patil, IIT Bombay

Page 238: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = AB+ BCD+ AD using only NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = AB · BCD · AD

AB

BCDY

AD

A

B

D

BC

A

D

M. B. Patil, IIT Bombay

Page 239: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = AB+ BCD+ AD using only NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = AB · BCD · AD

AB

BCDY

AD

A

B

D

BC

A

D

M. B. Patil, IIT Bombay

Page 240: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

A · B = A · B

A = A · A

A+ B = A · B

Implement Y = AB+ BCD+ AD using only NAND gates.

A

B

B

C

D

D

A

Y

M. B. Patil, IIT Bombay

Page 241: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

A · B = A · B

A = A · A

A+ B = A · B

Implement Y = AB+ BCD+ AD using only NAND gates.

A

B

B

C

D

D

A

Y

M. B. Patil, IIT Bombay

Page 242: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

A · B = A · B

A = A · A

A+ B = A · B

Implement Y = AB+ BCD+ AD using only NAND gates.

A

B

B

C

D

D

A

Y

M. B. Patil, IIT Bombay

Page 243: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

A · B = A · B

A = A · A

A+ B = A · B

Implement Y = AB+ BCD+ AD using only NAND gates.

A

B

B

C

D

D

A

Y

M. B. Patil, IIT Bombay

Page 244: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

A · B = A · B

A = A · A

A+ B = A · B

Implement Y = AB+ BCD+ AD using only NAND gates.

A

B

B

C

D

D

A

Y

M. B. Patil, IIT Bombay

Page 245: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

A · B = A · B

A = A · A

A+ B = A · B

Implement Y = AB+ BCD+ AD using only NAND gates.

A

B

B

C

D

D

A

Y

M. B. Patil, IIT Bombay

Page 246: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

A · B = A · B

A = A · A

A+ B = A · B

Implement Y = AB+ BCD+ AD using only NAND gates.

A

B

B

C

D

D

A

Y

M. B. Patil, IIT Bombay

Page 247: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = A+ B+ C using only 2-input NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = (A+ B) + C

= (A+ B) · C

A+ B

Y

CC

= A · B · C

A+ B

B

AA

B

M. B. Patil, IIT Bombay

Page 248: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = A+ B+ C using only 2-input NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = (A+ B) + C

= (A+ B) · C

A+ B

Y

CC

= A · B · C

A+ B

B

AA

B

M. B. Patil, IIT Bombay

Page 249: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = A+ B+ C using only 2-input NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = (A+ B) + C

= (A+ B) · C

A+ B

Y

CC

= A · B · C

A+ B

B

AA

B

M. B. Patil, IIT Bombay

Page 250: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = A+ B+ C using only 2-input NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = (A+ B) + C

= (A+ B) · C

A+ B

Y

C

C

= A · B · C

A+ B

B

AA

B

M. B. Patil, IIT Bombay

Page 251: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = A+ B+ C using only 2-input NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = (A+ B) + C

= (A+ B) · C

A+ B

Y

CC

= A · B · C

A+ B

B

AA

B

M. B. Patil, IIT Bombay

Page 252: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = A+ B+ C using only 2-input NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = (A+ B) + C

= (A+ B) · C

A+ B

Y

CC

= A · B · C

A+ B

B

AA

B

M. B. Patil, IIT Bombay

Page 253: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = A+ B+ C using only 2-input NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = (A+ B) + C

= (A+ B) · C

A+ B

Y

CC

= A · B · C

A+ B

B

AA

B

M. B. Patil, IIT Bombay

Page 254: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NAND gates

Implement Y = A+ B+ C using only 2-input NAND gates.

A · B = A · B

A = A · A

A+ B = A · B

Y = (A+ B) + C

= (A+ B) · C

A+ B

Y

CC

= A · B · C

A+ B

B

AA

B

M. B. Patil, IIT Bombay

Page 255: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NOR gates

The NOT, AND, OR operations can be realised by using only NOR gates:

NOT

A = A+ A

AA

AND

A · B = A+ B

A

B

AB

OR

A+ B = A+ B

A

BA+ B

Implementation of functions with only NOR (or only NAND) gates is more than a theoretical curiosity. There

are chips which provide a “sea of gates” (say, NOR gates) which can be configured by the user (through

programming) to implement functions.

M. B. Patil, IIT Bombay

Page 256: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NOR gates

The NOT, AND, OR operations can be realised by using only NOR gates:

NOT

A = A+ A

AA

AND

A · B = A+ B

A

B

AB

OR

A+ B = A+ B

A

BA+ B

Implementation of functions with only NOR (or only NAND) gates is more than a theoretical curiosity. There

are chips which provide a “sea of gates” (say, NOR gates) which can be configured by the user (through

programming) to implement functions.

M. B. Patil, IIT Bombay

Page 257: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NOR gates

The NOT, AND, OR operations can be realised by using only NOR gates:

NOT

A = A+ A

AA

AND

A · B = A+ B

A

B

AB

OR

A+ B = A+ B

A

BA+ B

Implementation of functions with only NOR (or only NAND) gates is more than a theoretical curiosity. There

are chips which provide a “sea of gates” (say, NOR gates) which can be configured by the user (through

programming) to implement functions.

M. B. Patil, IIT Bombay

Page 258: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NOR gates

The NOT, AND, OR operations can be realised by using only NOR gates:

NOT

A = A+ A

AA

AND

A · B = A+ B

A

B

AB

OR

A+ B = A+ B

A

BA+ B

Implementation of functions with only NOR (or only NAND) gates is more than a theoretical curiosity. There

are chips which provide a “sea of gates” (say, NOR gates) which can be configured by the user (through

programming) to implement functions.

M. B. Patil, IIT Bombay

Page 259: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implementation of functions with only NOR gates

The NOT, AND, OR operations can be realised by using only NOR gates:

NOT

A = A+ A

AA

AND

A · B = A+ B

A

B

AB

OR

A+ B = A+ B

A

BA+ B

Implementation of functions with only NOR (or only NAND) gates is more than a theoretical curiosity. There

are chips which provide a “sea of gates” (say, NOR gates) which can be configured by the user (through

programming) to implement functions.

M. B. Patil, IIT Bombay

Page 260: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement Y = AB+ BCD+ AD using only NOR gates.

A+ B = A+ B

A = A+ A

A · B = A+ B

Y = AB+ BCD+ AD

BCDY

AB

AD

= (A+ B) + (B+ C+ D) + (A+ D)

A

B

A

B

CC

D

DD

A

M. B. Patil, IIT Bombay

Page 261: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement Y = AB+ BCD+ AD using only NOR gates.

A+ B = A+ B

A = A+ A

A · B = A+ B

Y = AB+ BCD+ AD

BCDY

AB

AD

= (A+ B) + (B+ C+ D) + (A+ D)

A

B

A

B

CC

D

DD

A

M. B. Patil, IIT Bombay

Page 262: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement Y = AB+ BCD+ AD using only NOR gates.

A+ B = A+ B

A = A+ A

A · B = A+ B

Y = AB+ BCD+ AD

BCDY

AB

AD

= (A+ B) + (B+ C+ D) + (A+ D)

A

B

A

B

CC

D

DD

A

M. B. Patil, IIT Bombay

Page 263: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement Y = AB+ BCD+ AD using only NOR gates.

A+ B = A+ B

A = A+ A

A · B = A+ B

Y = AB+ BCD+ AD

BCDY

AB

AD

= (A+ B) + (B+ C+ D) + (A+ D)

A

B

A

B

CC

D

DD

A

M. B. Patil, IIT Bombay

Page 264: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement Y = AB+ BCD+ AD using only NOR gates.

A+ B = A+ B

A = A+ A

A · B = A+ B

Y = AB+ BCD+ AD

BCDY

AB

AD

= (A+ B) + (B+ C+ D) + (A+ D)

A

B

A

B

CC

D

DD

A

M. B. Patil, IIT Bombay

Page 265: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement Y = AB+ BCD+ AD using only NOR gates.

A+ B = A+ B

A = A+ A

A · B = A+ B

Y = AB+ BCD+ AD

BCDY

AB

AD

= (A+ B) + (B+ C+ D) + (A+ D)

A

B

A

B

CC

D

DD

A

M. B. Patil, IIT Bombay

Page 266: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement Y = AB+ BCD+ AD using only NOR gates.

A+ B = A+ B

A = A+ A

A · B = A+ B

Y = AB+ BCD+ AD

BCDY

AB

AD

= (A+ B) + (B+ C+ D) + (A+ D)

A

B

A

B

CC

D

DD

A

M. B. Patil, IIT Bombay

Page 267: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement Y = AB+ BCD+ AD using only NOR gates.

A+ B = A+ B

A = A+ A

A · B = A+ B

Y = AB+ BCD+ AD

BCDY

AB

AD

= (A+ B) + (B+ C+ D) + (A+ D)

A

B

A

B

CC

D

DD

A

M. B. Patil, IIT Bombay

Page 268: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Multiplexers

I0

I1

I2

I3

S1 S0

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

S1 S0

SW0

SW1

SW2

SW3

I0

I1

I2

I3Z

* A multiplexer or data selector (MUX in short) has N Select lines, 2N input lines, and it routes one of theinput lines to the output.

* Conceptually, a MUX may be thought of as 2N switches. For a given combination of the select inputs,only one of the switches closes (makes contact), and the others are open.

* SEQUEL file: mux test 1.sqproj

M. B. Patil, IIT Bombay

Page 269: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Multiplexers

I0

I1

I2

I3

S1 S0

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

S1 S0

SW0

SW1

SW2

SW3

I0

I1

I2

I3Z

* A multiplexer or data selector (MUX in short) has N Select lines, 2N input lines, and it routes one of theinput lines to the output.

* Conceptually, a MUX may be thought of as 2N switches. For a given combination of the select inputs,only one of the switches closes (makes contact), and the others are open.

* SEQUEL file: mux test 1.sqproj

M. B. Patil, IIT Bombay

Page 270: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Multiplexers

I0

I1

I2

I3

S1 S0

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

S1 S0

SW0

SW1

SW2

SW3

I0

I1

I2

I3Z

* A multiplexer or data selector (MUX in short) has N Select lines, 2N input lines, and it routes one of theinput lines to the output.

* Conceptually, a MUX may be thought of as 2N switches. For a given combination of the select inputs,only one of the switches closes (makes contact), and the others are open.

* SEQUEL file: mux test 1.sqproj

M. B. Patil, IIT Bombay

Page 271: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Multiplexers

I0

I1

I2

I3

S1 S0

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

S1 S0

SW0

SW1

SW2

SW3

I0

I1

I2

I3Z

* A multiplexer or data selector (MUX in short) has N Select lines, 2N input lines, and it routes one of theinput lines to the output.

* Conceptually, a MUX may be thought of as 2N switches. For a given combination of the select inputs,only one of the switches closes (makes contact), and the others are open.

* SEQUEL file: mux test 1.sqproj

M. B. Patil, IIT Bombay

Page 272: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Multiplexers

I0

I1

I2

I3

S1 S0

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

S1 S0

SW0

SW1

SW2

SW3

I0

I1

I2

I3Z

* A multiplexer or data selector (MUX in short) has N Select lines, 2N input lines, and it routes one of theinput lines to the output.

* Conceptually, a MUX may be thought of as 2N switches. For a given combination of the select inputs,only one of the switches closes (makes contact), and the others are open.

* SEQUEL file: mux test 1.sqproj

M. B. Patil, IIT Bombay

Page 273: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Multiplexers

I0

I1

I2

I3

S1 S0

S1

Z

S0

I0

I1

I2

I3

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

* A 4-to-1 MUX can be implemented as,

Z = I0 S1 S0 + I1 S1 S0 + I2 S1 S0 + I3 S1 S0.

For a given combination of S1 and S0, only one of the terms survives (the others being 0). For example, with S1 = 0,S0 = 1, we have Z = I1.

* Multiplexers are available as ICs, e.g., 74151 is an 8-to-1 MUX.

* ICs with arrays of multiplexers (and other digital blocks) are also available. These blocks can be configured (“wired”) bythe user in a programmable manner to realise the functionality of interest.

M. B. Patil, IIT Bombay

Page 274: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Multiplexers

I0

I1

I2

I3

S1 S0

S1

Z

S0

I0

I1

I2

I3

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

* A 4-to-1 MUX can be implemented as,

Z = I0 S1 S0 + I1 S1 S0 + I2 S1 S0 + I3 S1 S0.

For a given combination of S1 and S0, only one of the terms survives (the others being 0). For example, with S1 = 0,S0 = 1, we have Z = I1.

* Multiplexers are available as ICs, e.g., 74151 is an 8-to-1 MUX.

* ICs with arrays of multiplexers (and other digital blocks) are also available. These blocks can be configured (“wired”) bythe user in a programmable manner to realise the functionality of interest.

M. B. Patil, IIT Bombay

Page 275: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Multiplexers

I0

I1

I2

I3

S1 S0

S1

Z

S0

I0

I1

I2

I3

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

* A 4-to-1 MUX can be implemented as,

Z = I0 S1 S0 + I1 S1 S0 + I2 S1 S0 + I3 S1 S0.

For a given combination of S1 and S0, only one of the terms survives (the others being 0). For example, with S1 = 0,S0 = 1, we have Z = I1.

* Multiplexers are available as ICs, e.g., 74151 is an 8-to-1 MUX.

* ICs with arrays of multiplexers (and other digital blocks) are also available. These blocks can be configured (“wired”) bythe user in a programmable manner to realise the functionality of interest.

M. B. Patil, IIT Bombay

Page 276: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Multiplexers

I0

I1

I2

I3

S1 S0

S1

Z

S0

I0

I1

I2

I3

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

* A 4-to-1 MUX can be implemented as,

Z = I0 S1 S0 + I1 S1 S0 + I2 S1 S0 + I3 S1 S0.

For a given combination of S1 and S0, only one of the terms survives (the others being 0). For example, with S1 = 0,S0 = 1, we have Z = I1.

* Multiplexers are available as ICs, e.g., 74151 is an 8-to-1 MUX.

* ICs with arrays of multiplexers (and other digital blocks) are also available. These blocks can be configured (“wired”) bythe user in a programmable manner to realise the functionality of interest.

M. B. Patil, IIT Bombay

Page 277: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Active high and active low inputs/outputs

Select inputs are active high.

I0

I1

I2

I3

S1 S0

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

Select inputs are active low.

I0

I1

I2

I3

Z

S0S1

S0

Z

S1

11

1

0

0

1

00

I1

I2

I3

I0

M. B. Patil, IIT Bombay

Page 278: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Active high and active low inputs/outputs

Select inputs are active high.

I0

I1

I2

I3

S1 S0

Z

S0S1 Z

1

0

1 0

1

0 0

1 I1

I2

I3

I0

Select inputs are active low.

I0

I1

I2

I3

Z

S0S1

S0

Z

S1

11

1

0

0

1

00

I1

I2

I3

I0

M. B. Patil, IIT Bombay

Page 279: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Enable (E) pin

inputs outputs

Active high enable pin

inputs outputs

Active low enable pin

EE

* Many digital ICs have an “Enable” (E) pin. If the Enable pin is active, the IC functions as desired; else, itis “disabled,” i.e., the outputs are set to some default values.

* The Enable pin can be active high or active low.

* If the Enable pin is active low, it is denoted by Enable or E. When E = 0, the IC functions normally; else,it is disabled.

M. B. Patil, IIT Bombay

Page 280: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Enable (E) pin

inputs outputs

Active high enable pin

inputs outputs

Active low enable pin

EE

* Many digital ICs have an “Enable” (E) pin. If the Enable pin is active, the IC functions as desired; else, itis “disabled,” i.e., the outputs are set to some default values.

* The Enable pin can be active high or active low.

* If the Enable pin is active low, it is denoted by Enable or E. When E = 0, the IC functions normally; else,it is disabled.

M. B. Patil, IIT Bombay

Page 281: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Enable (E) pin

inputs outputs

Active high enable pin

inputs outputs

Active low enable pin

EE

* Many digital ICs have an “Enable” (E) pin. If the Enable pin is active, the IC functions as desired; else, itis “disabled,” i.e., the outputs are set to some default values.

* The Enable pin can be active high or active low.

* If the Enable pin is active low, it is denoted by Enable or E. When E = 0, the IC functions normally; else,it is disabled.

M. B. Patil, IIT Bombay

Page 282: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Enable (E) pin

inputs outputs

Active high enable pin

inputs outputs

Active low enable pin

EE

* Many digital ICs have an “Enable” (E) pin. If the Enable pin is active, the IC functions as desired; else, itis “disabled,” i.e., the outputs are set to some default values.

* The Enable pin can be active high or active low.

* If the Enable pin is active low, it is denoted by Enable or E. When E = 0, the IC functions normally; else,it is disabled.

M. B. Patil, IIT Bombay

Page 283: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Using two 8-to-1 MUXs to make a 16-to-1 MUX

D1

D2

D3

D5

D9

D11

D15

D0

D4

D6

D7

D8

D10

D12

D13

D14

I0

I1

I2

I3

I4

I5

I6

I7

S2 S1 S0

I0

I1

I2

I3

I4

I5

I6

I7

S2 S1 S0

S2 S1S3 S0

X

X2

X174151 Z

74151 Z

S0 XS1S2S3

E

E

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

D15D14D13D12D11D10D9D8D7D6D5D4D3D2D1D0

0

0

1

1

1

1

0

0

0

0

1

1

1

M. B. Patil, IIT Bombay

Page 284: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using a 16-to-1 MUX.

MUX

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

I0I1I2I3I4I5I6I7I8I9I10I11I12I13I14I15

S3 S2

A B C D

0

0

1

1

1

1

0

0

0

0

1

1

1

0

Z X

S1 S0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

* When AB C D = 1, we want X = 1.

AB C D = 1→ A= 1, B = 0, C = 0,D = 1, i.e., the input line corresponding to1001 (I9) gets selected.→ Make I9 = 1.

* Similarly, when AB C D = 1, we wantX = 1.→ Make I4 = 1.

* In all other cases, X should be 0.→ connect all other pins to 0.

* In this example, since the truth table isorganized in terms of ABCD, with A asthe MSB and D as the LSB (the sameorder in which A, B, C , D are connectedto the select pins), the design is simple:connectI0 to X(0 0 0 0),I1 to X(0 0 0 1),I2 to X(0 0 1 0), etc.

M. B. Patil, IIT Bombay

Page 285: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using a 16-to-1 MUX.

MUX

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

I0I1I2I3I4I5I6I7I8I9I10I11I12I13I14I15

S3 S2

A B C D

0

0

1

1

1

1

0

0

0

0

1

1

1

0

Z X

S1 S0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

* When AB C D = 1, we want X = 1.

AB C D = 1→ A= 1, B = 0, C = 0,D = 1, i.e., the input line corresponding to1001 (I9) gets selected.→ Make I9 = 1.

* Similarly, when AB C D = 1, we wantX = 1.→ Make I4 = 1.

* In all other cases, X should be 0.→ connect all other pins to 0.

* In this example, since the truth table isorganized in terms of ABCD, with A asthe MSB and D as the LSB (the sameorder in which A, B, C , D are connectedto the select pins), the design is simple:connectI0 to X(0 0 0 0),I1 to X(0 0 0 1),I2 to X(0 0 1 0), etc.

M. B. Patil, IIT Bombay

Page 286: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using a 16-to-1 MUX.

MUX

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

I0I1I2I3I4I5I6I7I8I9I10I11I12I13I14I15

S3 S2

A B C D

0

0

1

1

1

1

0

0

0

0

1

1

1

0

Z X

S1 S0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

* When AB C D = 1, we want X = 1.

AB C D = 1→ A= 1, B = 0, C = 0,D = 1, i.e., the input line corresponding to1001 (I9) gets selected.→ Make I9 = 1.

* Similarly, when AB C D = 1, we wantX = 1.→ Make I4 = 1.

* In all other cases, X should be 0.→ connect all other pins to 0.

* In this example, since the truth table isorganized in terms of ABCD, with A asthe MSB and D as the LSB (the sameorder in which A, B, C , D are connectedto the select pins), the design is simple:connectI0 to X(0 0 0 0),I1 to X(0 0 0 1),I2 to X(0 0 1 0), etc.

M. B. Patil, IIT Bombay

Page 287: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using a 16-to-1 MUX.

MUX

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

I0I1I2I3I4I5I6I7I8I9I10I11I12I13I14I15

S3 S2

A B C D

0

0

1

1

1

1

0

0

0

0

1

1

1

0

Z X

S1 S0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

* When AB C D = 1, we want X = 1.

AB C D = 1→ A= 1, B = 0, C = 0,D = 1, i.e., the input line corresponding to1001 (I9) gets selected.→ Make I9 = 1.

* Similarly, when AB C D = 1, we wantX = 1.→ Make I4 = 1.

* In all other cases, X should be 0.→ connect all other pins to 0.

* In this example, since the truth table isorganized in terms of ABCD, with A asthe MSB and D as the LSB (the sameorder in which A, B, C , D are connectedto the select pins), the design is simple:connectI0 to X(0 0 0 0),I1 to X(0 0 0 1),I2 to X(0 0 1 0), etc.

M. B. Patil, IIT Bombay

Page 288: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using a 16-to-1 MUX.

MUX

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

I0I1I2I3I4I5I6I7I8I9I10I11I12I13I14I15

S3 S2

A B C D

0

0

1

1

1

1

0

0

0

0

1

1

1

0

Z X

S1 S0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

* When AB C D = 1, we want X = 1.

AB C D = 1→ A= 1, B = 0, C = 0,D = 1, i.e., the input line corresponding to1001 (I9) gets selected.→ Make I9 = 1.

* Similarly, when AB C D = 1, we wantX = 1.→ Make I4 = 1.

* In all other cases, X should be 0.→ connect all other pins to 0.

* In this example, since the truth table isorganized in terms of ABCD, with A asthe MSB and D as the LSB (the sameorder in which A, B, C , D are connectedto the select pins), the design is simple:connectI0 to X(0 0 0 0),I1 to X(0 0 0 1),I2 to X(0 0 1 0), etc.

M. B. Patil, IIT Bombay

Page 289: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using a 16-to-1 MUX.

MUX

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

I0I1I2I3I4I5I6I7I8I9I10I11I12I13I14I15

S3 S2

A B C D

0

0

1

1

1

1

0

0

0

0

1

1

1

0

Z X

S1 S0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

* When AB C D = 1, we want X = 1.

AB C D = 1→ A= 1, B = 0, C = 0,D = 1, i.e., the input line corresponding to1001 (I9) gets selected.→ Make I9 = 1.

* Similarly, when AB C D = 1, we wantX = 1.→ Make I4 = 1.

* In all other cases, X should be 0.→ connect all other pins to 0.

* In this example, since the truth table isorganized in terms of ABCD, with A asthe MSB and D as the LSB (the sameorder in which A, B, C , D are connectedto the select pins), the design is simple:connectI0 to X(0 0 0 0),I1 to X(0 0 0 1),I2 to X(0 0 1 0), etc.

M. B. Patil, IIT Bombay

Page 290: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using a 16-to-1 MUX.

MUX

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

I0I1I2I3I4I5I6I7I8I9I10I11I12I13I14I15

S3 S2

A B C D

0

0

1

1

1

1

0

0

0

0

1

1

1

0

Z X

S1 S0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

* When AB C D = 1, we want X = 1.

AB C D = 1→ A= 1, B = 0, C = 0,D = 1, i.e., the input line corresponding to1001 (I9) gets selected.→ Make I9 = 1.

* Similarly, when AB C D = 1, we wantX = 1.→ Make I4 = 1.

* In all other cases, X should be 0.→ connect all other pins to 0.

* In this example, since the truth table isorganized in terms of ABCD, with A asthe MSB and D as the LSB (the sameorder in which A, B, C , D are connectedto the select pins), the design is simple:connectI0 to X(0 0 0 0),I1 to X(0 0 0 1),I2 to X(0 0 1 0), etc.

M. B. Patil, IIT Bombay

Page 291: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using a 16-to-1 MUX.

MUX

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

I0I1I2I3I4I5I6I7I8I9I10I11I12I13I14I15

S3 S2

A B C D

0

0

1

1

1

1

0

0

0

0

1

1

1

0

Z X

S1 S0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

* When AB C D = 1, we want X = 1.

AB C D = 1→ A= 1, B = 0, C = 0,D = 1, i.e., the input line corresponding to1001 (I9) gets selected.→ Make I9 = 1.

* Similarly, when AB C D = 1, we wantX = 1.→ Make I4 = 1.

* In all other cases, X should be 0.→ connect all other pins to 0.

* In this example, since the truth table isorganized in terms of ABCD, with A asthe MSB and D as the LSB (the sameorder in which A, B, C , D are connectedto the select pins), the design is simple:connectI0 to X(0 0 0 0),I1 to X(0 0 0 1),I2 to X(0 0 1 0), etc.

M. B. Patil, IIT Bombay

Page 292: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using a 16-to-1 MUX.

MUX

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

I0I1I2I3I4I5I6I7I8I9I10I11I12I13I14I15

S3 S2

A B C D

0

0

1

1

1

1

0

0

0

0

1

1

1

0

Z X

S1 S0

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0

* When AB C D = 1, we want X = 1.

AB C D = 1→ A= 1, B = 0, C = 0,D = 1, i.e., the input line corresponding to1001 (I9) gets selected.→ Make I9 = 1.

* Similarly, when AB C D = 1, we wantX = 1.→ Make I4 = 1.

* In all other cases, X should be 0.→ connect all other pins to 0.

* In this example, since the truth table isorganized in terms of ABCD, with A asthe MSB and D as the LSB (the sameorder in which A, B, C , D are connectedto the select pins), the design is simple:connectI0 to X(0 0 0 0),I1 to X(0 0 0 1),I2 to X(0 0 1 0), etc.

M. B. Patil, IIT Bombay

Page 293: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using an 8-to-1 MUX.

MUX

C XBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

0

0

1

1

1

1

0

S1 S0

Z X

D

D

D

D

0

0

0

0

0

0

* When AB C = 1, i.e., A= 1, B = 0, C = 0, we have X =D.→ connect the input line corresponding to 100 (I4) to D.

* When AB C = 1, i.e., A= 0, B = 1, C = 0, we have X =D.→ connect the input line corresponding to 010 (I2) to D.

* In all other cases, X should be 0.→ connect all other pins to 0.

* Home work: Implement the same function (X ) with S2 =B, S1 =C , S0 =D.

M. B. Patil, IIT Bombay

Page 294: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using an 8-to-1 MUX.

MUX

C XBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

0

0

1

1

1

1

0

S1 S0

Z X

D

D

D

D

0

0

0

0

0

0

* When AB C = 1, i.e., A= 1, B = 0, C = 0, we have X =D.→ connect the input line corresponding to 100 (I4) to D.

* When AB C = 1, i.e., A= 0, B = 1, C = 0, we have X =D.→ connect the input line corresponding to 010 (I2) to D.

* In all other cases, X should be 0.→ connect all other pins to 0.

* Home work: Implement the same function (X ) with S2 =B, S1 =C , S0 =D.

M. B. Patil, IIT Bombay

Page 295: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using an 8-to-1 MUX.

MUX

C XBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

0

0

1

1

1

1

0

S1 S0

Z X

D

D

D

D

0

0

0

0

0

0

* When AB C = 1, i.e., A= 1, B = 0, C = 0, we have X =D.→ connect the input line corresponding to 100 (I4) to D.

* When AB C = 1, i.e., A= 0, B = 1, C = 0, we have X =D.→ connect the input line corresponding to 010 (I2) to D.

* In all other cases, X should be 0.→ connect all other pins to 0.

* Home work: Implement the same function (X ) with S2 =B, S1 =C , S0 =D.

M. B. Patil, IIT Bombay

Page 296: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using an 8-to-1 MUX.

MUX

C XBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

0

0

1

1

1

1

0

S1 S0

Z X

D

D

D

D

0

0

0

0

0

0

* When AB C = 1, i.e., A= 1, B = 0, C = 0, we have X =D.→ connect the input line corresponding to 100 (I4) to D.

* When AB C = 1, i.e., A= 0, B = 1, C = 0, we have X =D.→ connect the input line corresponding to 010 (I2) to D.

* In all other cases, X should be 0.→ connect all other pins to 0.

* Home work: Implement the same function (X ) with S2 =B, S1 =C , S0 =D.

M. B. Patil, IIT Bombay

Page 297: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using an 8-to-1 MUX.

MUX

C XBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

0

0

1

1

1

1

0

S1 S0

Z X

D

D

D

D

0

0

0

0

0

0

* When AB C = 1, i.e., A= 1, B = 0, C = 0, we have X =D.→ connect the input line corresponding to 100 (I4) to D.

* When AB C = 1, i.e., A= 0, B = 1, C = 0, we have X =D.→ connect the input line corresponding to 010 (I2) to D.

* In all other cases, X should be 0.→ connect all other pins to 0.

* Home work: Implement the same function (X ) with S2 =B, S1 =C , S0 =D.

M. B. Patil, IIT Bombay

Page 298: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using an 8-to-1 MUX.

MUX

C XBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

0

0

1

1

1

1

0

S1 S0

Z X

D

D

D

D

0

0

0

0

0

0

* When AB C = 1, i.e., A= 1, B = 0, C = 0, we have X =D.→ connect the input line corresponding to 100 (I4) to D.

* When AB C = 1, i.e., A= 0, B = 1, C = 0, we have X =D.→ connect the input line corresponding to 010 (I2) to D.

* In all other cases, X should be 0.→ connect all other pins to 0.

* Home work: Implement the same function (X ) with S2 =B, S1 =C , S0 =D.

M. B. Patil, IIT Bombay

Page 299: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using an 8-to-1 MUX.

MUX

C XBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

0

0

1

1

1

1

0

S1 S0

Z X

D

D

D

D

0

0

0

0

0

0

* When AB C = 1, i.e., A= 1, B = 0, C = 0, we have X =D.→ connect the input line corresponding to 100 (I4) to D.

* When AB C = 1, i.e., A= 0, B = 1, C = 0, we have X =D.→ connect the input line corresponding to 010 (I2) to D.

* In all other cases, X should be 0.→ connect all other pins to 0.

* Home work: Implement the same function (X ) with S2 =B, S1 =C , S0 =D.

M. B. Patil, IIT Bombay

Page 300: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using an 8-to-1 MUX.

MUX

C XBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

0

0

1

1

1

1

0

S1 S0

Z X

D

D

D

D

0

0

0

0

0

0

* When AB C = 1, i.e., A= 1, B = 0, C = 0, we have X =D.→ connect the input line corresponding to 100 (I4) to D.

* When AB C = 1, i.e., A= 0, B = 1, C = 0, we have X =D.→ connect the input line corresponding to 010 (I2) to D.

* In all other cases, X should be 0.→ connect all other pins to 0.

* Home work: Implement the same function (X ) with S2 =B, S1 =C , S0 =D.

M. B. Patil, IIT Bombay

Page 301: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Implement X = AB C D + AB C D using an 8-to-1 MUX.

MUX

C XBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

0

0

1

1

1

1

0

S1 S0

Z X

D

D

D

D

0

0

0

0

0

0

* When AB C = 1, i.e., A= 1, B = 0, C = 0, we have X =D.→ connect the input line corresponding to 100 (I4) to D.

* When AB C = 1, i.e., A= 0, B = 1, C = 0, we have X =D.→ connect the input line corresponding to 010 (I2) to D.

* In all other cases, X should be 0.→ connect all other pins to 0.

* Home work: Implement the same function (X ) with S2 =B, S1 =C , S0 =D.

M. B. Patil, IIT Bombay

Page 302: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

00

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0 0

1

1

0

0

0

1

1

0

1

1

0

0

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

MUX Z X

S1 S0

1

0

D

1

1

1

D

1

0

0

0

D

0

0

0

1

1

0

1

1

0

0

0

0

Implement the function X using an 8-to-1 MUX.

* When ABC = 000, X =D → I0 =D.

* When ABC = 001, X = 1→ I1 = 1,and so on.

* Home work: repeat with S2 =B, S1 =C ,S0 =D.

M. B. Patil, IIT Bombay

Page 303: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

00

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0 0

1

1

0

0

0

1

1

0

1

1

0

0

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

MUX Z X

S1 S0

1

0

D

1

1

1

D

1

0

0

0

D

0

0

0

1

1

0

1

1

0

0

0

0

Implement the function X using an 8-to-1 MUX.

* When ABC = 000, X =D → I0 =D.

* When ABC = 001, X = 1→ I1 = 1,and so on.

* Home work: repeat with S2 =B, S1 =C ,S0 =D.

M. B. Patil, IIT Bombay

Page 304: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

00

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0 0

1

1

0

0

0

1

1

0

1

1

0

0

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

MUX Z X

S1 S0

1

0

D

1

1

1

D

1

0

0

0

D

0

0

0

1

1

0

1

1

0

0

0

0

Implement the function X using an 8-to-1 MUX.

* When ABC = 000, X =D → I0 =D.

* When ABC = 001, X = 1→ I1 = 1,and so on.

* Home work: repeat with S2 =B, S1 =C ,S0 =D.

M. B. Patil, IIT Bombay

Page 305: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

00

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0 0

1

1

0

0

0

1

1

0

1

1

0

0

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

MUX Z X

S1 S0

1

0

D

1

1

1

D

1

0

0

0

D

0

0

0

1

1

0

1

1

0

0

0

0

Implement the function X using an 8-to-1 MUX.

* When ABC = 000, X =D → I0 =D.

* When ABC = 001, X = 1→ I1 = 1,and so on.

* Home work: repeat with S2 =B, S1 =C ,S0 =D.

M. B. Patil, IIT Bombay

Page 306: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

00

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0 0

1

1

0

0

0

1

1

0

1

1

0

0

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

MUX Z X

S1 S0

1

0

D

1

1

1

D

1

0

0

0

D

0

0

0

1

1

0

1

1

0

0

0

0

Implement the function X using an 8-to-1 MUX.

* When ABC = 000, X =D → I0 =D.

* When ABC = 001, X = 1→ I1 = 1,and so on.

* Home work: repeat with S2 =B, S1 =C ,S0 =D.

M. B. Patil, IIT Bombay

Page 307: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

00

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0 0

1

1

0

0

0

1

1

0

1

1

0

0

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

MUX Z X

S1 S0

1

0

D

1

1

1

D

1

0

0

0

D

0

0

0

1

1

0

1

1

0

0

0

0

Implement the function X using an 8-to-1 MUX.

* When ABC = 000, X =D → I0 =D.

* When ABC = 001, X = 1→ I1 = 1,and so on.

* Home work: repeat with S2 =B, S1 =C ,S0 =D.

M. B. Patil, IIT Bombay

Page 308: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

00

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0 0

1

1

0

0

0

1

1

0

1

1

0

0

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

MUX Z X

S1 S0

1

0

D

1

1

1

D

1

0

0

0

D

0

0

0

1

1

0

1

1

0

0

0

0

Implement the function X using an 8-to-1 MUX.

* When ABC = 000, X =D → I0 =D.

* When ABC = 001, X = 1→ I1 = 1,and so on.

* Home work: repeat with S2 =B, S1 =C ,S0 =D.

M. B. Patil, IIT Bombay

Page 309: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

00

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0 0

1

1

0

0

0

1

1

0

1

1

0

0

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

MUX Z X

S1 S0

1

0

D

1

1

1

D

1

0

0

0

D

0

0

0

1

1

0

1

1

0

0

0

0

Implement the function X using an 8-to-1 MUX.

* When ABC = 000, X =D → I0 =D.

* When ABC = 001, X = 1→ I1 = 1,and so on.

* Home work: repeat with S2 =B, S1 =C ,S0 =D.

M. B. Patil, IIT Bombay

Page 310: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

00

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0 0

1

1

0

0

0

1

1

0

1

1

0

0

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

MUX Z X

S1 S0

1

0

D

1

1

1

D

1

0

0

0

D

0

0

0

1

1

0

1

1

0

0

0

0

Implement the function X using an 8-to-1 MUX.

* When ABC = 000, X =D → I0 =D.

* When ABC = 001, X = 1→ I1 = 1,and so on.

* Home work: repeat with S2 =B, S1 =C ,S0 =D.

M. B. Patil, IIT Bombay

Page 311: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

D XCBA

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

00

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0 0

1

1

0

0

0

1

1

0

1

1

0

0

0

0

0

0

1

1

1

1

0

0

0

0

1

1

1

1

I7

I6

I5

I4

I3

I2

I1

I0

S2

A B C

MUX Z X

S1 S0

1

0

D

1

1

1

D

1

0

0

0

D

0

0

0

1

1

0

1

1

0

0

0

0

Implement the function X using an 8-to-1 MUX.

* When ABC = 000, X =D → I0 =D.

* When ABC = 001, X = 1→ I1 = 1,and so on.

* Home work: repeat with S2 =B, S1 =C ,S0 =D.

M. B. Patil, IIT Bombay

Page 312: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Demultiplexers

DEMUX

S0 O7O0 O2 O3 O4 O5 O6O1S1S2

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

I

0

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

S2

O0

O1

O2

O3

O4

O5

O6

O7

0

0

1

1

1

1

I

S1 S0

* A demultiplexer takes a single input (I) and routes it to one of the output lines (O0, O1,· · · ).

* For N Select inputs (S0, S1,· · · ), the number of output lines is 2N .

* SEQUEL file: demux test 1.sqproj

M. B. Patil, IIT Bombay

Page 313: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Demultiplexers

DEMUX

S0 O7O0 O2 O3 O4 O5 O6O1S1S2

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

I

0

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

S2

O0

O1

O2

O3

O4

O5

O6

O7

0

0

1

1

1

1

I

S1 S0

* A demultiplexer takes a single input (I) and routes it to one of the output lines (O0, O1,· · · ).

* For N Select inputs (S0, S1,· · · ), the number of output lines is 2N .

* SEQUEL file: demux test 1.sqproj

M. B. Patil, IIT Bombay

Page 314: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Demultiplexers

DEMUX

S0 O7O0 O2 O3 O4 O5 O6O1S1S2

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

I

0

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

S2

O0

O1

O2

O3

O4

O5

O6

O7

0

0

1

1

1

1

I

S1 S0

* A demultiplexer takes a single input (I) and routes it to one of the output lines (O0, O1,· · · ).

* For N Select inputs (S0, S1,· · · ), the number of output lines is 2N .

* SEQUEL file: demux test 1.sqproj

M. B. Patil, IIT Bombay

Page 315: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Demultiplexers

DEMUX

S0 O7O0 O2 O3 O4 O5 O6O1S1S2

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0 0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

0

0

0

0

0

0

I

0

0

0

0

0

0

0

0

I

0

0

0

0

0

0

0

I

S2

O0

O1

O2

O3

O4

O5

O6

O7

0

0

1

1

1

1

I

S1 S0

* A demultiplexer takes a single input (I) and routes it to one of the output lines (O0, O1,· · · ).

* For N Select inputs (S0, S1,· · · ), the number of output lines is 2N .

* SEQUEL file: demux test 1.sqproj

M. B. Patil, IIT Bombay

Page 316: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Demultiplexer: gate-level diagram

O0

O1

O2

O3

O4

O5

O6

O7S2

DEMUX

I

I

S1 S0

O0

O1

O2

O3

O4

O5

O6

O7

S2 S1 S0 M. B. Patil, IIT Bombay

Page 317: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Decoders

N inputs Decoder M outputs

A0

A1

AN−1

O0

O1

OM−1

* For each input combination, an associated bit pattern appears at the output.

M. B. Patil, IIT Bombay

Page 318: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Decoders

N inputs Decoder M outputs

A0

A1

AN−1

O0

O1

OM−1

* For each input combination, an associated bit pattern appears at the output.

M. B. Patil, IIT Bombay

Page 319: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

3-to-8 decoder (1-of-8 decoder)

O0

O1

O2

O3

O4

O5

O6

O7

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

Decoder

A0

A1

A2

A0 O7O6O5O4O3O2O1O0A1A2

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

M. B. Patil, IIT Bombay

Page 320: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Binary-Coded-Decimal (BCD) encoding

* Example:

Decimal 75

Binary 1001011

BCD 0111 0101

* BCD coding is commonly used to display numbers in electronic systems.

7−segment

display

decoder

BCD

input

BCD−to−7−seg

01010111

* In some electronic systems (e.g., calculators), all computations are performed in BCD.

M. B. Patil, IIT Bombay

Page 321: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Binary-Coded-Decimal (BCD) encoding

* Example:

Decimal 75

Binary 1001011

BCD 0111 0101

* BCD coding is commonly used to display numbers in electronic systems.

7−segment

display

decoder

BCD

input

BCD−to−7−seg

01010111

* In some electronic systems (e.g., calculators), all computations are performed in BCD.

M. B. Patil, IIT Bombay

Page 322: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Binary-Coded-Decimal (BCD) encoding

* Example:

Decimal 75

Binary 1001011

BCD 0111 0101

* BCD coding is commonly used to display numbers in electronic systems.

7−segment

display

decoder

BCD

input

BCD−to−7−seg

01010111

* In some electronic systems (e.g., calculators), all computations are performed in BCD.

M. B. Patil, IIT Bombay

Page 323: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Binary-Coded-Decimal (BCD) encoding

* Example:

Decimal 75

Binary 1001011

BCD 0111 0101

* BCD coding is commonly used to display numbers in electronic systems.

7−segment

display

decoder

BCD

input

BCD−to−7−seg

01010111

* In some electronic systems (e.g., calculators), all computations are performed in BCD.

M. B. Patil, IIT Bombay

Page 324: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Binary-Coded-Decimal (BCD) encoding

* Example:

Decimal 75

Binary 1001011

BCD 0111 0101

* BCD coding is commonly used to display numbers in electronic systems.

7−segment

display

decoder

BCD

input

BCD−to−7−seg

01010111

* In some electronic systems (e.g., calculators), all computations are performed in BCD.

M. B. Patil, IIT Bombay

Page 325: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Binary-Coded-Decimal (BCD) encoding

* Example:

Decimal 75

Binary 1001011

BCD 0111 0101

* BCD coding is commonly used to display numbers in electronic systems.

7−segment

display

decoder

BCD

input

BCD−to−7−seg

01010111

* In some electronic systems (e.g., calculators), all computations are performed in BCD.

M. B. Patil, IIT Bombay

Page 326: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

7-segment display

common

anode

g

a

b

c

d

e

f

0000 0001 0010 0011 0100 0101 0110 0111 1000 1001

VCC

a

b

c

d

e

f

g

M. B. Patil, IIT Bombay

Page 327: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

BCD-to-7 segment decoder

D

C

B

A

common

anode

MSB

LSB

g

7446

a

b

c

d

e

f

VCC

a

b

d

e

f

g

0000 0001 0010 0011 0100 0101 0110 0111 1000 1111111011011100101110101001

c

* The resistors serve to limit the diodecurrent. For VCC = 5V , VD = 2V , andID = 10 mA, R = 300 Ω.

* Home work: Write the truth table forc (in terms of D, C , B, A). Obtain aminimized expression for c using a Kmap.

M. B. Patil, IIT Bombay

Page 328: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

BCD-to-7 segment decoder

D

C

B

A

common

anode

MSB

LSB

g

7446

a

b

c

d

e

f

VCC

a

b

d

e

f

g

0000 0001 0010 0011 0100 0101 0110 0111 1000 1111111011011100101110101001

c

* The resistors serve to limit the diodecurrent. For VCC = 5V , VD = 2V , andID = 10 mA, R = 300 Ω.

* Home work: Write the truth table forc (in terms of D, C , B, A). Obtain aminimized expression for c using a Kmap.

M. B. Patil, IIT Bombay

Page 329: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

BCD-to-7 segment decoder

D

C

B

A

common

anode

MSB

LSB

g

7446

a

b

c

d

e

f

VCC

a

b

d

e

f

g

0000 0001 0010 0011 0100 0101 0110 0111 1000 1111111011011100101110101001

c

* The resistors serve to limit the diodecurrent. For VCC = 5V , VD = 2V , andID = 10 mA, R = 300 Ω.

* Home work: Write the truth table forc (in terms of D, C , B, A). Obtain aminimized expression for c using a Kmap.

M. B. Patil, IIT Bombay

Page 330: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

BCD-to-decimal decoder

none

Active output

7442

none

none

none

none

none

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0

0

1

1

1

1

0

0

0

0

1

1

1

O1

O2

O3

O4

O5

O6

O7

O8

O9

O0

O0

O1

O2

O3

O4

O5

O6

O7

O8

O9

A0

A1

A2

A3

A0A1A2A3

* Note that the combinations A3A2A1A0 = 1010 onwards are “don’t care” conditions since a BCD (binary coded decimal)number is expected to be less than 1010 (i.e., decimal 10).

M. B. Patil, IIT Bombay

Page 331: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

BCD-to-decimal decoder

none

Active output

7442

none

none

none

none

none

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

1

1

1

1

0

0

1

1

0

0

1

1

0

0

0

0

0

0

0

0

0

0

1

1

1

1

1

1

1

1

1

0

0

1

1

1

1

0

0

0

0

1

1

1

O1

O2

O3

O4

O5

O6

O7

O8

O9

O0

O0

O1

O2

O3

O4

O5

O6

O7

O8

O9

A0

A1

A2

A3

A0A1A2A3

* Note that the combinations A3A2A1A0 = 1010 onwards are “don’t care” conditions since a BCD (binary coded decimal)number is expected to be less than 1010 (i.e., decimal 10).

M. B. Patil, IIT Bombay

Page 332: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Encoders

M inputs Encoder N outputs

O0

O1

ON−1

A0

A1

AM−1

* Only one input line is assumed to be active. The binary number corresponding to the active input lineappears at the output pins.

* The N output lines can represent 2N binary numbers, each corresponding to one of the M input lines, i.e.,we can have M = 2N . Some encoders have M < 2N .

* As an example, for N = 3, we can have a maximum of 23 = 8 input lines.

M. B. Patil, IIT Bombay

Page 333: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Encoders

M inputs Encoder N outputs

O0

O1

ON−1

A0

A1

AM−1

* Only one input line is assumed to be active. The binary number corresponding to the active input lineappears at the output pins.

* The N output lines can represent 2N binary numbers, each corresponding to one of the M input lines, i.e.,we can have M = 2N . Some encoders have M < 2N .

* As an example, for N = 3, we can have a maximum of 23 = 8 input lines.

M. B. Patil, IIT Bombay

Page 334: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Encoders

M inputs Encoder N outputs

O0

O1

ON−1

A0

A1

AM−1

* Only one input line is assumed to be active. The binary number corresponding to the active input lineappears at the output pins.

* The N output lines can represent 2N binary numbers, each corresponding to one of the M input lines, i.e.,we can have M = 2N . Some encoders have M < 2N .

* As an example, for N = 3, we can have a maximum of 23 = 8 input lines.

M. B. Patil, IIT Bombay

Page 335: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Encoders

M inputs Encoder N outputs

O0

O1

ON−1

A0

A1

AM−1

* Only one input line is assumed to be active. The binary number corresponding to the active input lineappears at the output pins.

* The N output lines can represent 2N binary numbers, each corresponding to one of the M input lines, i.e.,we can have M = 2N . Some encoders have M < 2N .

* As an example, for N = 3, we can have a maximum of 23 = 8 input lines.

M. B. Patil, IIT Bombay

Page 336: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Encoders

O0

O1

O2

A0

A1

A2

A3

A4

A5

A6

A7

8−to−3 encoder example

Encoder

A0 A1 A2 A3 A4 A5 A6 A7 O0O1O2

1 0 0 0 0 0 0 0

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0 0 0 0 0 0

00000

0

0

0

0

0

0

0

0

0 0 0 0

00

0

0 0 0 0

0

0

0

0

00

00

1

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

* Note that only one of the input lines is assumed to be active.

* What if two input lines become simultaneously active?→ There are “priority encoders” which assign a priority to each of the input lines.

M. B. Patil, IIT Bombay

Page 337: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Encoders

O0

O1

O2

A0

A1

A2

A3

A4

A5

A6

A7

8−to−3 encoder example

Encoder

A0 A1 A2 A3 A4 A5 A6 A7 O0O1O2

1 0 0 0 0 0 0 0

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0 0 0 0 0 0

00000

0

0

0

0

0

0

0

0

0 0 0 0

00

0

0 0 0 0

0

0

0

0

00

00

1

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

* Note that only one of the input lines is assumed to be active.

* What if two input lines become simultaneously active?→ There are “priority encoders” which assign a priority to each of the input lines.

M. B. Patil, IIT Bombay

Page 338: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

Encoders

O0

O1

O2

A0

A1

A2

A3

A4

A5

A6

A7

8−to−3 encoder example

Encoder

A0 A1 A2 A3 A4 A5 A6 A7 O0O1O2

1 0 0 0 0 0 0 0

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

0

0

0

0 0 0 0 0 0

00000

0

0

0

0

0

0

0

0

0 0 0 0

00

0

0 0 0 0

0

0

0

0

00

00

1

1

1

1

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

0

0

* Note that only one of the input lines is assumed to be active.

* What if two input lines become simultaneously active?→ There are “priority encoders” which assign a priority to each of the input lines.

M. B. Patil, IIT Bombay

Page 339: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

74147 decimal-to-BCD priority encoder

74147

A9A8A7A6A5A4A3A2A1 O3 O2 O1 O0

1 1 1 1 1 1 1 1 1

X X 0

0

0

0

0

0

0

0

0

X X X X X X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X 1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

11

1 1 1

0 01 1

0 111

01 00

1 0 0 1

1 0 01

1 0 1 1

1

1

1

1

1

1 1 0

0 1

0 0

1

O0

O1

O2

O3

A1

A2

A3

A4

A5

A6

A7

A8

A9

* Note that the higher input lines get priority over the lower ones.

For example, A7 gets priority over A1, A2, A3, A4, A5, A6. If A7 is active (low), the binary output is 1000(i.e., 0111 inverted bit-by-bit) which corresponds to decimal 7, irrespective of

A1, A2, A3, A4, A5, A6.

* The lower input lines are therefore shown as “don’t care” (X) conditions.

M. B. Patil, IIT Bombay

Page 340: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

74147 decimal-to-BCD priority encoder

74147

A9A8A7A6A5A4A3A2A1 O3 O2 O1 O0

1 1 1 1 1 1 1 1 1

X X 0

0

0

0

0

0

0

0

0

X X X X X X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X 1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

11

1 1 1

0 01 1

0 111

01 00

1 0 0 1

1 0 01

1 0 1 1

1

1

1

1

1

1 1 0

0 1

0 0

1

O0

O1

O2

O3

A1

A2

A3

A4

A5

A6

A7

A8

A9

* Note that the higher input lines get priority over the lower ones.

For example, A7 gets priority over A1, A2, A3, A4, A5, A6. If A7 is active (low), the binary output is 1000(i.e., 0111 inverted bit-by-bit) which corresponds to decimal 7, irrespective of

A1, A2, A3, A4, A5, A6.

* The lower input lines are therefore shown as “don’t care” (X) conditions.

M. B. Patil, IIT Bombay

Page 341: t t analog signal digital signal - NPTEL · 2017. 8. 4. · Digital circuits t t analog signal 0 1 high low digital signal * An analog signal x(t) is represented by a real number

74147 decimal-to-BCD priority encoder

74147

A9A8A7A6A5A4A3A2A1 O3 O2 O1 O0

1 1 1 1 1 1 1 1 1

X X 0

0

0

0

0

0

0

0

0

X X X X X X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X

X 1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

1

11

1 1 1

0 01 1

0 111

01 00

1 0 0 1

1 0 01

1 0 1 1

1

1

1

1

1

1 1 0

0 1

0 0

1

O0

O1

O2

O3

A1

A2

A3

A4

A5

A6

A7

A8

A9

* Note that the higher input lines get priority over the lower ones.

For example, A7 gets priority over A1, A2, A3, A4, A5, A6. If A7 is active (low), the binary output is 1000(i.e., 0111 inverted bit-by-bit) which corresponds to decimal 7, irrespective of

A1, A2, A3, A4, A5, A6.

* The lower input lines are therefore shown as “don’t care” (X) conditions.

M. B. Patil, IIT Bombay