Saturday, March 17, 2012

LOGIC CIRCUITS





logic circuit, electric circuit whose output depends upon the input in a way that can be expressed as a function in symbolic logic; it has one or more binary inputs (capable of assuming either of two states, e.g., "on" or "off") and a single binary output. Logic circuits that perform particular functions are called gates. Basic logic circuits include the AND gate, the OR gate, and the NOT gate, which perform the logical functions AND, OR, and NOT. Logic circuits can be built from any binary electric or electronic devices, including switches, relays, electron tubes, solid-state diodes, and transistors; the choice depends upon the application and design requirements. Modern technology has produced integrated logic circuits, modules that perform complex logical functions. A major use of logic circuits is in electronic digital computers. Fluid logic circuits have been developed whose function depends on the flow of a liquid or gas rather than on an electric current




POS (PRODUCT OF SUM)

Find the logic 0 outputs and invert those inputs in the product of sum format:
A
B
C
F
0
0
0
0
0
0
1
1
0
1
0
0
0
1
1
1
1
0
0
1
1
0
1
1
1
1
0
0
1
1
1
0

POS expression=(A+B+C)(A+B'+C)(A'+B'+C)(A'+B'+C') 

SOP(SUM OF PRODUCT)
There are two commonly used techniques for deriving Boolean equations from a truth table. In the first technique, the minterms corresponding to each line in the truth table for which the output is logic 1 are extracted and combined using | OR operators. This method results in an equation said to be in the sum-of-products form. In the second technique, the maxterms corresponding to each line in the truth table for which the loutput is logic 0 are combined using & AND operators. This method results in an equation said to be in product-of-sums form.

A
B
C
F
0
0
0
0
0
0
1
1
0
1
0
0
0
1
1
1
1
0
0
1
1
0
1
1
1
1
0
0
1
1
1
0

SOP expression=A'B'C+A'BC+AB'C'+AB'C



 MINTERM


 For each combination of inputs to a logical fnction, there is an associated minterm.
A
B
C
Minterm
0
0
0
A'B'C'
0
0
1
A'B'C
0
1
0
A'BC'
0
1
1
A'BC
1
0
0
AB'C'
1
0
1
AB'C
1
1
0
ABC'
1
1
1
ABC


 MAXTERM


For each combination of inputs to a logical function, there is an associated maxterm.
A
B
C
Maxterm
0
0
0
A+B+C
0
0
1
A+B+C'
0
1
0
A+B'+C
0
1
1
A+B'+C'
1
0
0
A'+B+C
1
0
1
A'+B+C'
1
1
0
A'+B'+C
1
1
1
A'+B'+C'

BASIC LOGIC GATE



Type
Distinctive shape

Boolean algebra between A & B
Truth table
AND symbol            

A \cdot B
INPUT
OUTPUT
A
B
A AND B
0
0
0
0
1
0
1
0
0
1
1
1
OR symbol

A + B
INPUT
OUTPUT
A
B
A OR B
0
0
0
0
1
1
1
0
1
1
1
1
NOT symbol

\overline{A}
INPUT
OUTPUT
A
NOT A
0
1
1
0
In electronics a NOT gate is more commonly called an inverter. The circle on the symbol is called a bubble, and is generally used in circuit diagrams to indicate an inverted (active-low) input or output.[1]
NAND symbol

\overline{A \cdot B}
INPUT
OUTPUT
A
B
A NAND B
0
0
1
0
1
1
1
0
1
1
1
0
NOR symbol

\overline{A + B}
INPUT
OUTPUT
A
B
A NOR B
0
0
1
0
1
0
1
0
0
1
1
0

XOR symbol

A \oplus B
INPUT
OUTPUT
A
B
A XOR B
0
0
0
0
1
1
1
0
1
1
1
0
XNOR symbol

\overline{A \oplus B}
INPUT
OUTPUT
A
B
A XNOR B
0
0
1
0
1
0
1
0
0
1
1
1

BOOLEAN ALGEBRA

BOOLEAN ALGEBRA

The binary 0 and 1 states are naturally related to the true and false logic variables. We will find the following Boolean algebra useful. Consider two logic variables A and B and the result of some Boolean logic operation Q. We can define



Q is true if and only if A is true AND B is true.



Q is true if A is true OR B is true.



Q is true if A is false.
A useful way of displaying the results of a Boolean operation is with a truth table. We will make extensive use of truth tables later. If no ``-'' is available on your text processor or circuit drawing program an ``N'' can be used, ie.  .
We list a few trivial Boolean rules in table 7.2.

  
Table 7.2:  Properties of Boolean Operations.

The Boolean operations obey the usual commutative, distributive and associative rules of normal algebra (table 7.3).

  
Table 7.3:  Boolean commutative, distributive and associative rules.

We will also make extensive use of De Morgan's theorems (table 7.4).

  
Table 7.4:  De Morgan's theorems.