Showing posts with label and gate. Show all posts
Showing posts with label and gate. Show all posts

Thursday, September 11, 2014

Logic Gates (Comalod)

LOGIC GATES

TYPES OF GATE


1. SPECIAL GATE (TRUE GATE)
     - one input gate into which output will be based on its input signal
     ex. if the input is 1 the output will be also 1
           X   |   Y
           0    |   0
           1    |   1


2. BASIC GATES

     A. NOT GATE - one input gate into which input is inverted to get the equivalent output
                                  signal.
                                  ex. if the input is 1 the output will be 0
                                        if the input is 0 the output will be 1
                                        X  |  Y
                                        1   |  0
                                        0   |  1


    B. AND GATE - a type of gate which will trigger a high output if and only if all input signals
                                 are high.
                                 ex.if the input of A is 0 and B is 0 the output will be 0
                                      if the input of A is 0 and B is 1 the output will be 0
                                      if the input of A is 1 and B is 0 the output will be 0
                                      if the input of A is 1 and B is 1 the output will be 1
                                      the output will become 1 only if the both input is 1 (high)
                                      A B  |  Y
                                      0  0   |  0
                                      0  1   |  0
                                      1  0   |  0
                                      1  1   |  1
    
    C. OR GATE -  a type of gate which will trigger a low output if and only if all input signals
                                are low.
                                ex. if the input of A is 0 and B is also a 0 the output will become 0
                                      if the input of A is 0 and B is 1 the output will become 1
                                      if the input of A is 1 and B is 0 the output will become 1
                                      if the input of A is 1 and B is 1 the output will become 1
                                      the output will become 0 only if the both input is 0 (low)
                                      A B  |  Y
                                      0  0   |  0
                                      0  1   |  1
                                      1  0   |  1
                                      1  1   |  1

3. UNIVERSAL GATES

    A.NAND GATE - a type of gate which will trigger a low output if and only if all input signals
                                   are HIGH.
                                     ex. if the input of A is 0 and B is also a 0 the output will become 1
                                      if the input of A is 0 and B is 1 the output will become 1
                                      if the input of A is 1 and B is 0 the output will become 1
                                      if the input of A is 1 and B is 1 the output will become 0
                                      the output will become 0 only if the both input is 1 (high)
                                      A B  |  Y
                                      0  0   |  1
                                      0  1   |  1
                                      1  0   |  1
                                      1  1   |  0


    B. NOR GATE - a type of gate which will trigger a high output if and only if all input signals
                                 are LOW.
                                  ex. if the input of A is 0 and B is also a 0 the output will become 1
                                      if the input of A is 0 and B is 1 the output will become 0
                                      if the input of A is 1 and B is 0 the output will become 0
                                      if the input of A is 1 and B is 1 the output will become 0
                                      the output will become 1 only if the both input is 0 (low)
                                      A B  |  Y
                                      0  0   |  1
                                      0  1   |  0
                                      1  0   |  0
                                      1  1   |  0

4. COMBINATION GATES

    A. X - OR GATE - a type of gate which will trigger a high output if input signals are NOT
                                     THE SAME.
                                      ex. if the input of A is 0 and B is also a 0 the output will become 0
                                      if the input of A is 0 and B is 1 the output will become 1
                                      if the input of A is 1 and B is 0 the output will become 1
                                      if the input of A is 1 and B is 1 the output will become 0
                                      the output will become 1 only if the input is 0 and 1 or 1 and 0 
                                      (not the same)
                                      A B  |  Y
                                      0  0   |  0
                                      0  1   |  1
                                      1  0   |  1
                                      1  1   |  0



    B. X-NOR GATE -a type of gate which will trigger a high output if input signals are 
                                    THE SAME
                                     ex. if the input of A is 0 and B is also a 0 the output will become 1
                                      if the input of A is 0 and B is 1 the output will become 0
                                      if the input of A is 1 and B is 0 the output will become 0
                                      if the input of A is 1 and B is 1 the output will become 1
                                      the output will become 1 only if the input is 0 and 0 or 1 and 1 
                                      (the same)
                                      A B  |  Y
                                      0  0   |  1
                                      0  1   |  0
                                      1  0   |  0
                                      1  1   |  1