Docsity

Logic Gates and Boolean Algebra, Cheat Sheet of Digital Logic Design and Programming

Partial preview of the text

Download Logic Gates and Boolean Algebra and more Cheat Sheet Digital Logic Design and Programming in PDF only on Docsity!

Digital Logic Design

Chapter 2 Logic Gates and Boolean Algebra By Bhushan Inje

Outline

  • (^) Logic Gates
  • (^) Universal Gates
  • (^) Boolean Algebra
  • (^) SOP and POS
  • (^) Canonical Form
  • (^) K-Map

Binary Boolean Logic Functions

  • (^) Boolean functions, sometimes also called switching functions, are functions that take as their input zero or more Boolean values (1 or 0, true or false, etc.) and output a single Boolean value.
  • (^) The number of inputs to the function is is called the arity of the function and is denoted as k.
  • (^) Every k-ary function can be written as a propositional formula, a sentence in propositional logic.
  • (^) A binary Boolean function, a Boolean function with two arguments, can be described by one out of sixteen canonical formulas.
  • (^) Consider a function that has two binary-valued inputs and outputs a binary value.
  • (^) Two inputs that can each take on one of two values, 0 or 1, means that there are 2 k possible combinations of input values. Boolean Logic Functions Cont..
  • (^) Considering that there are 4 possible output values, one for each of the input combinations, this means that there are 2 4 , or 16, possible combinations of output values, ie., for a pair of binary inputs there are exactly 16 possible Boolean functions that can be applied to them.
  • (^) These are called canonical functions, because any binary Boolean function can be reduced to one of these 16 forms.
  • (^) In general, for k inputs, there are 22k^ canonical Boolean functions. Boolean Logic Functions Cont..
  • (^) The table lists the 16 canonical binary Boolean functions: Boolean Logic Functions Cont..
  • (^) Basic Laws and Proofs
  • (^) The basic rules and laws of Boolean algebraic system are known as “Laws of Boolean algebra”. Some of the basic laws (rules) of the Boolean algebra are - (^) i. Associative law - (^) ii. Distributive law - (^) iii. Commutative law - (^) iv. Absorption law - (^) v. Consensus law Boolean Algebra Laws and Theorems Cont..
  • (^) Ex5:
  • (^) Ex6:

Boolean Algebra Truth Tables

  • (^) Boolean Algebra Expressions can be used to construct digital logic truth tables for their respective functions.
  • (^) As well as a standard Boolean Expression, the input and output information of any Logic Gate or circuit can be plotted into a standard table to give a visual representation of the switching function of the system.
  • (^) The table used to represent the Boolean expression of a logic gate function is commonly called a Truth Table.
  • (^) A logic gate truth table shows each possible input combination to the gate or circuit with the resultant output depending upon the combination of these input(s).
  • (^) 2-input OR (Inclusive OR) Gate
  • (^) For a 2-input OR gate, the output Q is true if EITHER input A “OR” input B is true, giving the Boolean Expression of: ( Q = A or B ). Truth Tables Cont..
  • (^) NOT Gate (Inverter)
  • (^) For a single input NOT gate, the output Q is ONLY true when the input is “NOT” true, the output is the inverse or complement of the input giving the Boolean Expression of: ( Q = NOT A ). Truth Tables Cont..