Digital logic gates

Partho Sarathi

14 Apr, 2018 · 7 minutes read

  • Share:

Digital logic gates is an electronic component which results perticular ouput after implementing its logic on the input signals. Digital logic gates are the basic building block of any digital circuits. It can have one or more than inputs and exactly one output. Inputs or outputs signals are two types of voltage – High(1) voltage and Low(0) voltage, it can also be represented as On(1) and Off(0) or True(1) and False(0). Logic gate’s inputs and output represented using Truth table. Truth tablehelps us to understand the behaviour of logic gates. Truth tableshows all possible input combinations and resultant output on each input combinations. For example a 2-inputlogic gates will have four(2 2) input combinations – (0,0), (0,1), (1,0), (1,1). Therefore, 3-inputlogic gate will have eight(2 3) input combinations.

Basic gates:

AND gate:

ANDgate is an electronic circuit where output will be 1 when all its inputs are 1 otherwise 0. A 2-input ANDgate can be represented as:-

Truth Table:

Input-1Input-2Output
000
010
100
111

Using this Truth tablewe can easily perform ANDoperation on two binary numbers. If we want to perform ANDoperation on numbers with different base e.g. Octal, Decimalor Hexthen, we can first convert the number to binary number and then do the ANDoperation. We can use online Any base convertertool to convert numbers to binary equivalent. For example, if we want to do ANDon two decimal numbers 17 & 45 :-

17 (decimal) = 010001 (binary)
45 (decimal) = 101101 (binary)
-----------------------------------
        (AND)  000001 = 1 (decimal)

We can use online AND calculatortool to calculate ANDon Octal, Decimal, Hexor Binarynumbers.

OR gate:

ORgate is an electronic circuit where output will be 1 when any one inputs are 1 otherwise 0. A 2-input ORgate can be represented as:-

Truth Table:

Input-1Input-2Output
000
011
101
111

Using this Truth tablewe can easily perform ORoperation on two binary numbers. If we want to perform ORoperation on numbers with different base e.g. Octal, Decimalor Hexthen, we can first convert the number to binary number and then do the ORoperation. We can use online Any base convertertool to convert numbers to binary equivalent. For example, if we want to do ORon two decimal numbers 18 & 46 :-

18 (decimal) = 010010 (binary)
46 (decimal) = 101110 (binary)
-----------------------------------
         (OR)  111110 = 62 (decimal)

We can use online OR calculatortool to calculate ORon Octal, Decimal, Hexor Binarynumbers.

NOT gate:

NOTgate is a single input electronic circuit where output will be 1 when input is 0 and output will be 0 when input is 1. A NOTgate can be represented as:-

Truth Table:

InputOutput
01
10

Using this Truth tablewe can easily perform NOToperation on binary numbers. If we want to perform NOToperation on numbers with different base e.g. Octal, Decimalor Hexthen, we can first convert the number to binary number and then do the NOToperation. We can use online Any base convertertool to convert numbers to binary equivalent. For example, if we want to do NOTon decimal number 46 :-

46 (decimal) = 101110 (binary)
-----------------------------------
        (NOT)  010001 = 17 (decimal)

We can use online NOT calculatortool to calculate NOTon Octal, Decimal, Hexor Binarynumbers.

Universal gates:

NAND gate:

NANDgate is an electronic circuit where output will be 1 when any of the inputs are 0 otherwise 1. NANDgate is just opposite of ANDgate, it can be created using ANDgate followed by a NOTgate. A 2-input NANDgate can be represented as:-

Truth Table:

Input-1Input-2Output
001
011
101
110

Using this Truth tablewe can easily perform NANDoperation on two binary numbers. If we want to perform NANDoperation on numbers with different base e.g. Octal, Decimalor Hexthen, we can first convert the number to binary number and then do the NANDoperation. We can use online Any base convertertool to convert numbers to binary equivalent. For example, if we want to do NANDon two decimal numbers 17 & 45 :-

17 (decimal) = 010001 (binary)
45 (decimal) = 101101 (binary)
-----------------------------------
       (NAND)  111110 = 62 (decimal)

We can use online NAND calculatortool to calculate NANDon Octal, Decimal, Hexor Binarynumbers.

NOR gate:

NORgate is an electronic circuit where output will be 1 when both the inputs are 0 otherwise 0. NORgate is just opposite of ORgate, it can be created using ORgate followed by a NOTgate. A 2-input NORgate can be represented as:-

Truth Table:

Input-1Input-2Output
001
010
100
110

Using this Truth tablewe can easily perform NORoperation on two binary numbers. If we want to perform NORoperation on numbers with different base e.g. Octal, Decimalor Hexthen, we can first convert the number to binary number and then do the NORoperation. We can use online Any base convertertool to convert numbers to binary equivalent. For example, if we want to do NORon two decimal numbers 17 & 45 :-

17 (decimal) = 010001 (binary)
45 (decimal) = 101101 (binary)
-----------------------------------
        (NOR)  000010 = 2 (decimal)

We can use online NOR calculatortool to calculate NORon Octal, Decimal, Hexor Binarynumbers.

XOR gate:

XORgate is an electronic circuit which will give output 1 if either, but not both, of its two inputs are 1 otherwise 0. A XORgate can be represented as:-

Truth Table:

Input-1Input-2Output
000
011
101
110

Using this Truth tablewe can easily perform XORoperation on two binary numbers. If we want to perform XORoperation on numbers with different base e.g. Octal, Decimalor Hexthen, we can first convert the number to binary number and then do the XORoperation. We can use online Any base convertertool to convert numbers to binary equivalent. For example, if we want to do XORon two decimal numbers 17 & 45 :-

17 (decimal) = 010001 (binary)
45 (decimal) = 101101 (binary)
-----------------------------------
        (XOR)  111100 = 60 (decimal)

We can use online XOR calculatortool to calculate XORon Octal, Decimal, Hexor Binarynumbers.

XNOR gate:

XNORgate is an electronic circuit which will give output 0 if either, but not both, of its two inputs are 1 otherwise 1. XNORgate is just opposite of XORgate, it can be created using XORgate followed by a NOTgate. A XNORgate can be represented as:-

Truth Table:

Input-1Input-2Output
001
010
100
111

Using this Truth tablewe can easily perform XNORoperation on two binary numbers. If we want to perform XNORoperation on numbers with different base e.g. Octal, Decimalor Hexthen, we can first convert the number to binary number and then do the XNORoperation. We can use online Any base convertertool to convert numbers to binary equivalent. For example, if we want to do XNORon two decimal numbers 17 & 45 :-

17 (decimal) = 010001 (binary)
45 (decimal) = 101101 (binary)
-----------------------------------
       (XNOR)  000011 = 3 (decimal)

We can use online XNOR calculatortool to calculate XNORon Octal, Decimal, Hexor Binarynumbers.

  • Share:

The cleanest blogging platform


2024 © Maxotek. All rights reserved.