Docsity

Digital Signals and Boolean Algebra, Assignments of Engineering management

Partial preview of the text

Download Digital Signals and Boolean Algebra and more Assignments Engineering management in PDF only on Docsity!

ECE-

Chapter 2-A

Outline

  • (^) Topics:
    • (^) Variables & functions
    • (^) Logic operators
    • (^) Logic networks
    • (^) Boolean Algebra

Signal Examples Over Time

Analog

Asynchronous

Synchronous

Time

Continuous in value & time Discrete in value & continuous in time Discrete in value & time

Digital

Volts
HIGH
LOW
HIGH
LOW
OUTPUT INPUT

Signal Example – Physical

Quantity: Voltage

Threshold

Region

A light controlled by a switch. S x L Battery Light

Representation of Logic Function

State of the light L can be described as a function of the input variable x. · (^) If switch is ON, light is ON Thus L(x) = x · (^) We say that L ( x ) is a logic function and that x is a logic variable

AND/OR Functions

  • (^) Let’s use two switches to control the state of the light.
    • (^) Let x 1 and x 2 be the control inputs for these switches
  • (^) How can we make sure that light is ON when both switches are ON? How can we describe the light function? L ( x 1 , x 2 ) = x 1  x 2 The “·” symbol is called the AND operator, and the circuit implements a logical AND function.

Combining AND/OR

  • (^) The AND and OR functions are two of the most important logic functions. Together with some other simple functions, they can be used as building blocks for the implementation of all logic circuits.
  • (^) What does the following do? What is the logic function?

L ( x

1

, x

2

, x

3

More circuits

  • (^) How does the following circuit behave?

Logical operations

  • (^) The three basic logical operations are:
    • (^) AND
    • (^) OR
    • (^) NOT
  • (^) AND is denoted by a dot (·)
  • (^) OR is denoted by a plus (+)
  • NOT is denoted by an over bar ( ¯ ), a single quote mark (') after the variable, or (~) before the variable.
  • (^) Examples:
    • (^) Y = AB is read “Y is equal to A AND B”
    • (^) Z = X + Y is read “z is equal to X OR Y”
    • (^) X = A′ is read “X is equal to NOT A”

Examples

Be careful: These operators are not the same as the usual arithmetic operators · (^) The statement 1 + 1 = 2 (read “one PLUS one equals two”) is not the same as 1 + 1 = 1 (read “1 OR 1 equals 1”)

Truth Tables

  • (^) Truth table - a tabular listing of the values of a function for all possible combinations of values on its arguments - (^) The first two columns (to the left of the heavy vertical line) give all possible combinations of the values for the input variables. AND OR

Truth tables (cont.)

  • (^) The truth table is a useful aid for depicting information involving logic functions. - (^) Can be used to define specific functions and to show the validity of certain relations. - (^) Truth tables, however, grow exponentially in size with the number of variables. Truth table for x 1
  • x 2
  • x 3

How many rows for 4 variables?

AND gates NOT gate OR gates

Logic Gates

Logic Gates