LEARNING OUTCOMES At the end of this chapter, you should be able to Describe the operation of NOT, AND, OR, NAND, NOR, XOR and XNOR gates and express them with Boolean expression Design a combinational logic circuit for a given Boolean output expression and truth table
BOOLEAN CONSTANT & VARIABLE Boolean variable is a quantity that may be equal to either or 1 at different times. Boolean variables represent only the state of a voltage variable in terms of and 1 , called the logic level . Different terms used to represent logic 0 and logic 1
TRUTH TABLE Truth tables list all possible input combinations and the corresponding output level. The number of input combination depends on the number of inputs. The number of input combinations will be equal to 2 N for an N -input truth table. For instance, for a 5-input truth table, the input combinations will be 2 5 = 32.
TRUTH TABLE EXAMPLES
BASIC GATES, FUNCTION AND PULSE WAVEFORMS There are 7 basic gates available: INVERTER gate AND gate OR gate NAND gate NOR gate XOR gate XNOR gate
INVERTER Also known as NOT gate It changes one logic level to the opposite level The symbol is Truth table
INVERTER Timing diagram A graph that accurately displays the relationship of two or more waveforms on time basis. Boolean expression of an Inverter with input A and output B is
AND gate AND gate can have two or more inputs but only 1 output. Operation: logical multiplication. Output is HIGH only when all the inputs are HIGH. The symbol is
AND gate EXERCISE Determine the AND gate output for the following figure.
AND gate EXERCISE Determine the AND gate output for the following figure.
OR gate OR gate can have two or more inputs but only 1 output. Operation: logical addition. Output is LOW only when all the inputs are LOW. The symbol is
OR gate EXERCISE Determine the OR gate output for the following figure.
NAND gate NAND gate can have two or more inputs but only 1 output. Operation: in combination AND, and INVERTER Output is LOW only when all the inputs are HIGH. The symbol is
NAND gate EXERCISE
NAND gate EXERCISE
NOR gate NOR gate can have two or more inputs but only 1 output. Operation: in combination OR and INVERTER Output is HIGH only when all the inputs are LOW. The symbol is
NOR gate EXERCISE
NOR gate EXERCISE
XOR gate XOR gate can have two or more inputs but only 1 output. Output is HIGH only when the inputs are at opposite logic levels. The symbol is
XOR gate EXERCISE
XOR gate EXERCISE
XNOR gate XNOR gate can have two or more inputs but only 1 output. Output is LOW only when the inputs are at opposite logic levels. The symbol is
XNOR gate EXERCISE
XNOR gate EXERCISE
EXAMPLES ON SIMPLE LOGIC DESIGN QUESTION UNDERSTAND THE QUESTION - DEVELOP THE TRUTH TABLE
EXAMPLE 1 Develop the truth table for a logic circuit with four input (A, B, C and D) that will produce a HIGH output whenever majority of the input are HIGH.
Quiz 2 Develop the truth table for a logic circuit to produce an output HIGH only if the inputs, represented by a 4-bit binary numbers, have an odd numbers of HIGH inputs.
LAB 1
END OF PART 1
ANALYSING A COMBINATIONAL LOGIC CIRCUIT In digital system, different gates are connected together to perform different function combinational logic circuit Obtain the Boolean expression and analyse it to form the truth table for that particular combinational logic circuit.
EXAMPLE 1: Boolean Expression and Truth Table
STEP 1 STEP 2
STEP 3
STEP 4
STEP 5
EXAMPLE 2: Boolean Expression and Truth Table STEP 1
The Boolean expression Truth table STEP 2
Exercise For the combinational circuits given below, find its Boolean expression and truth table. (a) (b)
DESIGN A COMBINATIONAL LOGIC CIRCUIT FROM BOOLEAN EXPRESSION To draw a logic circuit, Step 1: Group the variables together in a bracket Step 2: Start to draw from either input or output
EXAMPLE 3 DESIGN A COMBINATIONAL LOGIC CIRCUIT FROM BOOLEAN EXPRESSION From the Boolean expression Bracket the expression STEP 1 STEP 2
STEP 3
Exercise Draw the combinational circuit represented by the Boolean expression below.
QUIZ 3 Design a logic circuit with four input (A, B, C and D) that will produce a HIGH output, Z whenever both A and C is HIGH as long as both B and D are either both HIGH or both LOW.
FOR A LONG AND COMPLICATED LOGIC DESIGN QUESTION..?? …..continued in CHAPTER 4 # BooleanTheorem #SOP #POS #K-Map
Exercise Design an electronic circuit that takes two 2-bit binary numbers X(x1, x0) and Y(y1, y0) and produces an output binary number Z(z3, z2, z1, z0) that is equal to the function Z = X*Y of the two input numbers.
Exercise Design an electronic circuit that takes two 2-bit binary numbers X(x1, x0) and Y(y1, y0) and produces an output binary number Z(z3, z2, z1, z0) that is equal to the function Z = X+2Y of the two input numbers.