The second chapter (logic algebra) digital electronic technology

2.1 Overview

1. Only two opposing logic states of logic becomes binary logic.
2. The so-called logic, in this case refers to the causal relationship between things. When two binary numbers represent different logic states, they can be inference operation between the specified causality. We call this operation a logical operation.
3.1849 British mathematician George Boole first proposed a mathematical method Boolean logic operations. Also known as Boolean algebra logic switching algebra or algebra. Chapter is spoken logical algebra Boolean algebra applied in binary logic circuits.
4. Logical Algebra also denote variable, this variable is called a logical variable.
The logical operation is represented by a logical inference operation between the logical state variables and constants, rather than between the number of calculation.

Three basic operations 2.2 Logical Algebra and (AND), or (OR), non (NOT) three kinds of

1. Introduction and non concepts:

Here Insert Picture DescriptionThe picture shows three LEDs as a control circuit.

FIG. (A)

Only when both switches are closed, the LED lights up. Show: all conditions only decide things along with the results, the result will occur. Causality and logic become, also known as logical multiplication.

FIG. (B)

If any of the switch is closed, the indicator lit. Shows that: as long as there is any meet, the results will take place in various conditions determine the outcome of things. This is called a logical or causal relationship, also known as logical addition.

FIG. (C)

When the switch is turned off lights, but the switch is closed the lamp does not light. It showed that: as long as the conditions are met, the result would not have happened; but when the conditions are not met, the result will occur. This logic is called non-causal relationship, also known as logical negation.

2. Introduction of truth table:

In terms of A, B represents a state of the switch, the switch is closed and is represented by 1, 0 indicates the switch is open; represented by Y status indicators and lights to represent 1, 0 indicates no light, it can be listed as 0 , aND, oR, NAND logic relationship graph represented. As shown below. This chart is called a logical truth table, the truth table for short.
Here Insert Picture Description

3. The introduction of graphical symbols and operation symbols

(1) arithmetic sign:

Logical Algebra, the AND, OR, logical variable is regarded as non-A, three basic logical operation between B.
When A and B can be written with the logic operation:
Here Insert Picture Description
can be written as A and B or when a logic operation:
Here Insert Picture Description
can be written when A non-logic operation:
Here Insert Picture Description
while the arithmetic and logic unit implemented referred to the AND gate circuit;
be implemented or arithmetic logic unit circuit or gate is called;
unit circuit will implement logical operations called non NAND gate (also referred to as an inverter).

(2) graphic symbols:

Here Insert Picture DescriptionWith a specific shape symbol more of this, we will use this again. Personal feeling better remember better looking!

4. Advanced Edition: See compound logical operation:

The actual logic problems more often than with, or non-complex, but they can be used, or a combination of Africa to achieve.

(1) and non (the NAND)

Definition: The A, B with the first operation, then the results negated, the resulting is the A, B and the NAND operation result.

1. Truth table:

Here Insert Picture Description

2. graphic symbols and operation symbols:

Here Insert Picture Description

(2) or (NOR)

Definition: The A, B to perform an OR operation, then the results negated, the resulting is the A, B or the result of calculation.

1. Truth table:

Here Insert Picture Description

2. graphic symbols and operation symbols:

Here Insert Picture Description

(3) or (AND-NOR)

Definition: the NOR logic, and the relation between all C, D between the A, B, as long as the A, B or C, D of any one group are 1, the output Y is 0; only when each is not a full set of inputs, the output Y is 1.

1. Truth table:

Here Insert Picture Description

2. The operation symbols and graphic symbols:

Here Insert Picture Description

(4)异或(EXCLUSIVE OR)

Definitions: When A, B are different, the output Y is 1; and when A, B are the same, the output Y is 0. It can also be used with, or combination of non-representation:
Here Insert Picture Description
. ##### 1 truth table:
Here Insert Picture Description

2. graphic symbols and operation symbols:

Here Insert Picture Description

(5) or with (EXCLUSIVE NOR)

Definition: the same or different and or the contrary, if A, B are the same, Y is equal to 1; if A, B are not simultaneously, Y is equal to 0. or may be written with the same, or a combination of non-:
Here Insert Picture Description
##### 1. Truth table:
Here Insert Picture Description

2. graphic symbols and operation symbols:

Here Insert Picture Description

Small knowledge:
XOR and with each other or the inverse operation, namely:
Here Insert Picture Description

The basic formula used and 2.3 of logic algebra formula

1. Basic formula:

Here Insert Picture Description

(1), 2, 11 and 12 shows operation rules between variables and constants.
(2) 3 and 13 are the same variable operation rules, also referred to as overlapping law.
(3) 4 and 14 represents a variable and its operation rules between the anti-variable, also termed complementarity law.
(4) Formula 5 to 15 and the commutative law; Formula 6 and 16 in conjunction with the law; Formula 7 and 17 the distributive law.
(5) formula 8 and 18 are known DeMorgan's theorem, also known as inversion law. In exchange simplification and logic functions in regular use of this formula.
(6) 9 show a variable for itself after reducing twice negates, which is called the so reducing law.
(7) 10 Formula 1 is 0 and negates rule, it indicates 0 and 1 results mutually negated.

Small knowledge:
the correctness 1. The formula can be verified using the method of truth table column. If equality holds, then any of the values of a set of variables into the results obtained should be equal on both sides of the equation. Thus, the corresponding sides of the equation are bound to the same truth table.
2. Carefully Observe that: Equation 1 and 11; 12 and 2; 3 and 13; 14 and 4; 5 and 15; 16 and 6; 17 and 7; 8 and 18 are all dual type. Therefore, if proven formulas 1-8 set up, the formula is no longer subject to doing 11-18 proved.

2. A number of commonly used formula :( These formulas are derived using the basic formula!)

Here Insert Picture Description

(1) 21 proof:

Here Insert Picture Description
Description formula: When two product terms are added to one another when a factor, it is unnecessary that can be deleted.

(2) Proof of formula 22:Here Insert Picture Description

It indicates that the formula: When adding two product terms, if a negated is another factor, then this factor is redundant, can be eliminated.

(3) 23 proof:

Here Insert Picture Description
Indicates that the formula: When the two product terms are added, if they contain the B and B 'and the same two factors other factors, will be able to merge the two, and B and B can be' erased two factors.

(4) Proof of formula 24:

Here Insert Picture Description

Indicates that the formula: A variable containing the time A and the multiplied result is equal to A, and which can be eliminate.

(5) demonstrated 25;

Here Insert Picture Description
Here Insert Picture DescriptionIt indicates that the formula: If the two product terms included in each of A and A 'two factors, and the two remaining factors of product terms form a third product terms, the third product term is redundant and can be eliminated.

Proof (6) of formula 26:

Here Insert Picture Description
Description formula: When the product term A and a non-multiplied, and the product term A is a factor, the factor A that can be eliminated.
Here Insert Picture DescriptionIt indicates that the formula: When A 'and a non-product term by multiplying the product term and A is a factor, the result is equal to A'.

Fundamental theorem of algebra logic 2.4

1. assignment theorem

Substituting Theorem: In any logical variable A in equation contains, if the logical formula is substituted into another position wherein all of A, the equation still holds.

(1) understand:

Since only 0 and 1 two possible state variables A, whether all the A = 0 or A = 1 is substituted into logical equations, equations are necessarily true. And any type of logical value 0 and 1 do not go beyond two kinds, so that when substituted with the formula A, equation established naturally. So, this may be no need to prove the theorems as axioms.

(2) Examples Example :( to DeMorgan theorems)

Here Insert Picture Description
Small knowledge:
for when product term logic or negate formula, product term in parentheses should be logical expression or the outside, and negate the entire contents of the brackets.
Further, when a complex logical equation calculation, need to comply with normal algebra operation priority, i.e. the first count parentheses content, followed by the multiplication operator, and finally the addition operator.

2. Inverse Theorem

Here Insert Picture Description

Example 1:

Here Insert Picture Description

Example 2:

Here Insert Picture Description

3. duality theorem

Note: and inversion theorems difference: There inversion theorems original variables into a variable anti-anti-variable becomes the original variable! ! !
Here Insert Picture Description

example:

Here Insert Picture Description

Published 65 original articles · won praise 50 · views 3579

Guess you like

Origin blog.csdn.net/qq_44907926/article/details/104894360