Sunday, August 28, 2022
HomeElectronicsPrimary Logic Gates and Fact Tables

Primary Logic Gates and Fact Tables


Logic Gates are the inspiration of all digital methods, whether or not combinational or sequential, the circuit follows some logic. In easy phrases, a logic gate is a digital circuit with a number of inputs and a single output. The connection between inputs and output of the logic gate follows a sure logic. This logic sticks to the foundations of Boolean Algebra. To develop a deep understanding of logic gates, we must always perceive the fundamentals of digital alerts, binary quantity system, and Boolean Algebra.

Logic Gate
Logic Gate

NOTE: There is no such thing as a suggestions loop or reminiscence unit in logic circuits.

Digital Sign

An analog sign is a steady time-varying present or voltage sign, whereas a digital sign is a pulsating waveform of two discrete values-high and low. These two discrete values are represented by binary numbers 0 and 1. A digital circuit is an digital circuit that processes digital alerts.

Merely, it’s both a YES or NO, nothing in between.

In digital circuits,

0 = No, False, Swap Off, Open Circuit, and Low.
1 = Sure, True, Swap On, Closed Circuit, and Excessive.

Binary Numbers

The decimal system has a base or radix of 10 that means that the quantity is represented by ten digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. Equally, the binary system has a base or radix of two with solely two digits: 0 and 1.

The Binary quantity system represents a quantity both by 0 or 1. For any quantity to be represented in Binary type, it undergoes a binary conversion.

Instance: 1 is 001, 2 is 010, 3 is 011, 4 is 0100, 5 is 0101,… 15 is 1111 and so forth.

Boolean Algebra

An Irish mathematician George Boole developed a mathematical system with the usage of symbols. The system behaves equally to algebra for fixing binary or logic issues.

An equation represented by symbols however follows the legal guidelines of Boolean Algebra is named Boolean Expression.

Three operations utilized in Boolean Algebra are
1) OR Operation
2) AND Operation
3) NOT Operation

Logic Operations

1) OR Operation:

OR Operation is a type of logic addition represented by (+) signal with two or a number of inputs producing one output. The OR Operation produces HIGH output (1) provided that one or all of the inputs to the digital circuit is HIGH (1). If each of the inputs are LOW (0), the output of the digital circuit may even be LOW (0).

Allow us to perceive this with an instance: Think about a circuit with two switches linked in parallel to a LED. The LED can be ON if the present flows by the circuit. For the present to movement, one of many switches have to be closed.

NOTE: We will use a bulb as nicely

Case 1:

Swap A=OPEN, Swap B= OPEN
If each the switches are open, no present flows by the circuit and the LED doesn’t glow.

Case 2:

Swap A=OPEN, Swap B=CLOSED
Because of the parallel connection, even when one of many switches is closed and the opposite is open, present flows by the circuit. This causes the LED to glow.

Case 3:

Swap A=CLOSED, Swap B= OPEN
Present flows by the circuit, and the LED glows

Case 4:

Swap A=CLOSED, Swap B= CLOSED
If each the switches are closed, excessive present flows by the circuit, and the LED glows.

S. NO. SWITCH A SWITCH B LED
CASE 1 OPEN OPEN OFF
CASE 2 OPEN CLOSED ON
CASE 3 CLOSED OPEN ON
CASE 4 CLOSED CLOSED ON

The Boolean expression for OR Operation is
Y= A + B

The place,
Y= Output
A= Enter 1
B= Enter 2

2) AND Operation:

AND Operation is a type of logic multiplication represented by the (.) signal with two or a number of inputs producing a single output. The AND Operation produces HIGH output (1) provided that all of the inputs to the digital circuit are HIGH (1). If one or each of the inputs are LOW (0), the output of the digital circuit may even be LOW (0).

Allow us to perceive this with an instance: Think about a circuit with two switches linked in sequence to a LED. The LED can be ON if the present flows by the circuit. For the present to movement, each of the switches have to be closed. If both one of many switches is open, the present won’t movement.

Case 1:

Swap A=OPEN, Swap B= OPEN
As each the switches are open, the present doesn’t movement by the circuit and the LED doesn’t glow.

Case 2:

Swap A=OPEN, Swap B=CLOSED
If one of many change is open in a series-connection circuit, it’s unimaginable for the present to movement. Therefore, LED doesn’t glow.

Case 3:

Swap A=CLOSED, Swap B= OPEN
If one of many change is open, the present doesn’t movement by the circuit and the LED doesn’t glow.

Case 4:

Swap A=CLOSED, Swap B= CLOSED
If each the switches are closed, a excessive present flows by the circuit, and the LED glows.

S. NO. SWITCH A SWITCH B LED
CASE 1 OPEN OPEN OFF
CASE 2 OPEN CLOSED OFF
CASE 3 CLOSED OPEN OFF
CASE 4 CLOSED CLOSED ON

The Boolean expression for AND Operation is
Y= A . B

Largely, the dot (.) is eliminated
Y= AB

The place,
Y= Output
A= Enter 1
B= Enter 2

3) NOT Operation:

NOT is an Operation within the type of logic inversion, generally known as a complement. There’s a single enter producing the one output. NOT operation produces a HIGH (1) output for a LOW (0) enter and a LOW (0) output for a HIGH (1) enter.
It’s represented by a bar (ˉ) over the variable.

Allow us to perceive this with an instance: Think about a ganged change. If one of many change is open, the opposite is routinely closed and vice versa.

SWITCH A SWITCH B
OPEN CLOSED
CLOSED OPEN


The Boolean expression for NOT Operation is
Y= Aˉ

The place,
Y= Output
A= Enter

Logic Gates

A logic gate is a digital circuit with a single output whose worth relies upon upon the logical relationship between the enter(s) and output. In easy phrases, The connection between the enter values and the output is predicated on a sure ‘logic’, therefore these circuits are addressed as logic gates. The logic gates have just one output for single enter or variety of inputs. For understanding the operation of a logic gate, a Fact Desk is ready by stating all of the mixtures of inputs along with the output.

There are classifications of logic gates-

1) Primary Gates: OR, AND, and NOT Gates.

2) Common Gates: NAND, and NOR Gates.

3) Derived Gates: XOR Gates, and XNOR Gates.

1) Primary Gates

There are three sorts of primary logic gates- OR, AND, and NOT gates. A Primary logic gate behaves the identical because the corresponding logic operator.

A) OR Gate: For 2 or extra inputs, OR gate produces a HIGH (1) output provided that one or all of the inputs are HIGH (1). It really works much like the OR Logic operation.

The logic expression for an OR Gate is
Y= A OR B

And Gate Symbol
And Gate Image

Case 1: A= 0, B= 0; Y= 0

On this case, each the inputs are LOW (O), the OR Gate produces LOW (0) output.

Case 2: A= 0, B= 1; Y= 1

On this case, one of many inputs is HIGH (1), and the OR Gate produces the HIGH (1) output.

Case 3: A= 1, B= 0; Y= 1

On this case, one of many inputs is HIGH (1), the OR Gate produces the HIGH (1) output.

Case 4: A= 1, B= 1; Y= 1

On this case, each the inputs are HIGH (1), the OR Gate produces the HIGH (1) output.

A B Y=A OR B
0 0 0
0 1 1
1 0 1
1 1 1

B) AND Gate: For 2 or extra inputs, AND gate produces a HIGH (1) output provided that each the inputs are HIGH (1). It produces a LOW (O) output even when one of many inputs are LOW (0). It really works much like AND Logic operation

The logic expression for an AND Gate is
Y= A AND B

or gate symbol
And Gate Image

Case 1: A= 0, B= 0; Y= 0

On this case, each the inputs are LOW (O), the AND Gate produces LOW (0) output.

Case 2: A= 0, B= 1; Y= 0

On this case, one of many inputs is LOW (0), the AND Gate produces LOW (0) output.

Case 3: A= 1, B= 0; Y= 0

On this case, one of many inputs is LOW (0), the AND Gate produces LOW (0) output.

Case 4: A= 1, B= 1; Y= 1

On this case, each the inputs are HIGH (1), the AND Gate produces HIGH (1) output.

A B Y=A AND B
0 0 0
0 1 0
1 0 0
1 1 1

C) NOT Gate: For a single enter, NOT gate produces the output as a complement of the enter. NOT gate produces a HIGH (1) output provided that the enter is LOW (0) and a LOW (0) output if the enter is HIGH (1). It really works equally to NOT logic operation.

The logic expression for a NOT Gate is
Y=Aˉ

Case 1: A=0; Y= 1

The enter of the NOT gate is LOW (0) , output turns into HIGH (1).

Case 2: A=1; Y= 0

The enter of the NOT gate is HIGH (1), the output turns into LOW (0).

2) Common Logic Gates

The Common Logic Gates can implement any Boolean expression by itself, this implies they don’t require some other gate for implementation. A single Common Logic Gate is able to constructing a logic circuit. There are two sorts of Common Logic Gates

A) NAND Gate

A NAND Gate is a complement of AND Gate or just, a mixture of NOT Gate and AND Gate. It’s referred to as NAND as N stands for NOT, that means a NOT AND Gate. For 2 or extra inputs, the NAND gate produces a HIGH (1) output provided that one of many inputs is LOW (0).

The expression is denoted by a complement of AND.
Y= (AB)ˉ

nand gate symbol
nand gate image

Case 1: A= 0, B= 0; Y= 1

On this case, each the inputs are LOW (O), the NAND Gate produces HIGH (1) output.

Case 2: A= 0, B= 1; Y= 1

On this case, one of many inputs is LOW (0), the NAND Gate produces HIGH (1) output.

Case 3: A= 1, B= 0; Y= 1

On this case, one of many inputs is LOW (0), the NAND Gate produces HIGH (1) output.

Case 4: A= 1, B= 1; Y= 0

On this case, each the inputs are HIGH (1), the NAND Gate produces LOW (0) output.

B) NOR Gate

A NOR Gate is a complement of OR Gate or a mixture of NOT Gate and OR Gate. It’s referred to as NOR as N stands for NOT, that means a NOT OR Gate. For 2 or extra inputs, the NOR gate produces a HIGH (1) output; solely each the inputs are LOW (0).

The expression is denoted by a complement of OR.
Y= (A+B)ˉ

NOR Gate Symbol
NOR Gate Image

Case 1: A= 0, B= 0; Y= 1

On this case, each the inputs are LOW (O), the NOR Gate produces HIGH (1) output.

Case 2: A= 0, B= 1; Y= 0

On this case, one of many inputs is HIGH (1), the NOR Gate produces the LOW (0) output.

Case 3: A= 1, B= 0; Y= 0

On this case, one of many inputs is HIGH (1), the NOR Gate produces the LOW (0) output.

Case 4: A= 1, B= 1; Y= 0

On this case, each the inputs are HIGH (1), the NOR Gate produces the LOW (0) output.

A B Y=A NOR B
0 0 1
0 1 0
1 0 0
1 1 0

3) Derived Logic Gates:

The derived or particular gates are made for particular functions similar to half adders, full adders, and subtractors. There are two derived logic gates produced from OR and NOR gates.

A) Unique OR, EX-OR or XOR Gate

Ex-OR gate has two or extra inputs however a single output. Ex-OR gate generates a HIGH (1) output if each the inputs are usually not on the identical logic stage A≠B.

exclusive or gate symbol

Case 1: A= 0, B= 0; Y= 0

On this case, each the inputs are LOW (O) on the identical logic stage. Because of this, the Ex-OR Gate produces a LOW (0) output.

Case 2: A= 0, B= 1; Y= 1

On this case, one of many inputs is LOW (0) and the opposite is HIGH (1). Therefore, they don’t seem to be on the identical logic stage. Because of this, the Ex-OR Gate produces the HIGH (1) output.

Case 3: A= 1, B= 0; Y= 1

On this case, one of many inputs is HIGH (1) and the opposite is LOW (0). Therefore, they don’t seem to be on the identical logic stage. TAs a consequence, the Ex-OR Gate produces the HIGH (1) output.

Case 4: A= 1, B= 1; Y= 0

On this case, each the inputs are HIGH (1) on the identical logic stage. Because of this, the Ex-OR Gate produces the LOW (0) output.

A B Y=A XOR B
0 0 0
0 1 1
1 0 1
1 1 0

B) Unique NOR, EX-NOR, or XNOR Gate

EX-NOR gate has two or extra inputs however a single output. EX-NOR gate generates a HIGH (1) output if each the inputs are on the identical logic stage A=B.

Case 1: A= 0, B= 0; Y= 1

On this case, each the inputs are LOW (O) on the identical logic stage. Because of this, the EX-NOR Gate produces HIGH (1) output.

Case 2: A= 0, B= 1; Y= 0

On this case, one of many inputs is LOW (0) and the opposite is HIGH (1). Therefore, they don’t seem to be on the identical logic stage. Because of this, the EX-NOR Gate produces the LOW (0) output.

Case 3: A= 1, B= 0; Y= 0

On this case, one of many inputs is HIGH (1) and the opposite is LOW (0). Therefore, they don’t seem to be on the identical logic stage. Because of this, The EX-NOR Gate produces the LOW (0) output.

Case 4: A= 1, B= 1; Y= 1

On this case, each the inputs are HIGH (1) on the identical logic stage. Because of this, the EX-NOR Gate produces the HIGH (1) output.

A B Y=A XNOR B
0 0 1
0 1 0
1 0 0
1 1 1

You can even examine distinction between Latch and Flip-flops.



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments