Analysis and Design of Combinational Logic Circuits - Logic Algebra

Publisher:码梦创想Latest update time:2011-07-25 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
At any time, the output state is determined only by the combination of the input states at the same time, and the logic circuit that is independent of the previous state is called a combinational logic circuit. The following figure is a general block diagram of a combinational logic circuit, which can be described by the following logic function, namely Li = f (A1 , A2 , ..., An ) (i = 1, 2, ..., m)
where A1 , A2 , ..., An are input variables.

Combinational logic circuits have the following characteristics:
(1) There is no feedback delay path between the output and input;
(2) The circuit does not contain memory units.

Section 1 Logical Algebra

Logical algebra is also called Boolean algebra. Its basic idea was proposed by British mathematician Boole in 1854. In 1938, Shannon used logical algebra to analyze and simplify switch and relay networks, and was the first to use logical algebra to solve practical problems. After decades of development, logical algebra has become an indispensable mathematical tool for analyzing and designing logic circuits. Logical
algebra provides a method, that is, using binary functions to perform logical operations. In this way
, some logical propositions that seem very complicated when described in words become simple algebraic expressions when using mathematical language. A logical proposition in a logic circuit not only contains the dual meanings of affirmation and negation, but also contains many possible combinations of conditions and results. For example, a 3-input NAND gate has eight possible combinations of input and output states. Using words to describe is both verbose and unclear, using a truth table is clear at a glance, and using the algebraic expression L=ABC is more concise.
Logical algebra has a series of laws and rules, which can be used to process mathematical expressions
to simplify, transform, analyze and design circuits.

1. Basic laws and identities of logical algebra

Commonly used logical algebraic laws and identities table:

The basic laws in the table are some basic laws of logical operations derived from the three basic operation rules of logical addition, multiplication and negation.
The most effective way to prove the laws listed in the table is to check whether the truth table of the function on the left side of the equation matches that of the function on the right side.

For example, to prove that A+A=A, you can follow the steps below to prove it:
1. Let A=1, then A+A=l+l=l=A;
2. Let A=0, then A+A=0+0=0=A;
Apart from this, there is no other possibility, so A+A=A.

The identity can be proved by other more basic laws. Let's prove the first one, namely, The proof

is as follows:

Among all the above laws, the inversion law is of special importance. The inversion law is also called Morgan's law. It is often used to find the non-function of a function or to transform a logical function
.

Example 1: Prove that the inversion law (Morgan's law) holds
Proof:
Because "when all inputs are 1, the output is 1" is logically equivalent to "when there are 0 inputs, the output is 0", this equivalent relationship can be written as


The basic formulas listed in this section reflect logical relationships, not relationships between quantities
. The operation rules of elementary algebra cannot be simply applied to them. For example, the rule of transposition in elementary algebra cannot be used because there is no subtraction and division in logical algebra. This must be noted when using it.

2. Basic Rules of Logical Algebra

1. Substitution rules

In any logical equation, if a variable A on both sides of the equation is replaced by a function, the equation still holds. This rule is called the substitution rule.
For example, in B(A+C)=BA+BC, if all occurrences of A are replaced by the function A+D, the equation still holds, that is, B[(A+D)+C]=B(A+D)+BC=BA+BD+BC
. The substitution rule can expand the scope of application of all basic laws.

2. Inversion rules

According to Morgan's law, when finding the negation of a logic function L , you can replace the AND (·) in L with OR (+), or OR (+) with AND (·); then replace the original variable with the non-variable (such as A ), the non-variable with the original variable; and replace 1 with 0, and 0 with 1; then the resulting logic function is . This rule is called the inversion rule.
Note that the order of the original expression must be maintained when exchanging, otherwise it is easy to make mistakes.
For example, when finding the negation of , according to the above rule, we can get , which cannot be written as .
When using the inversion rule, we must pay attention to two points:
(1) Maintain the original operation priority order, that is, if in the original function expression, AB is operated first, and then other variables are operated, then in the negation expression, AB is still operated first.
(2) The negation sign other than the inverse variable should remain unchanged.

3. Duality rule

L is a logical expression. If we replace the AND (·) in L with OR (+), OR (+) with AND (·); 1 with 0, and 0 with 1, we get a new logical function, which is the dual form of L, denoted as L.
For example, , then . When transforming, we still need to pay attention to keeping the order of AND first and OR later in the original formula.
The so-called dual rule means that when a certain logical identity is established, its dual form is also established.
Using the dual rule, we can get more operation formulas from known formulas.
For example, if the absorption law is established, its dual form is also established.

3. Algebraic transformation and simplification of logical functions

In Chapter 1, we obtained the logical expression of stair lighting control by writing a truth table, which is an exclusive OR function . So, corresponding to the unique truth table, are the logical function expression and the logic circuit that implements it unique? Let's discuss this issue below.

1. Transformation of Logical Functions

Example: Function The corresponding logic diagram is shown below. Use the basic laws of logic algebra to transform the above expression.

Answer:

The results show that the circuit shown is also an XNOR gate.

Example: Find the similarity or the non-function of a function.
Solution:

This function is called an XOR function, which means that when the two input variables have different values ​​(one is 0 and the other is 1), the output function value is 1.
In the MOS gate circuit, we have already come into contact with the XOR gate. The above derivation tells us more clearly that the XOR gate and the XNOR gate are each other's negation functions. Therefore, adding another inverter at the output end of the XOR gate circuit can also get the XNOR gate, as shown in the figure below.

So far, we have learned more than one XOR function, but the truth table of the XOR function is unique. In fact, many more can be listed. From this, we can conclude that for a specific logic problem, the corresponding truth table is unique, but the circuits that implement it are diverse. This brings convenience to circuit design. When we lack a certain logic gate device, we can avoid using this device and use other devices by transforming the function expression. This situation is often encountered in actual work.

2. Simplification of logical functions

According to the logical expression, the corresponding logic diagram can be drawn. However, the logical expression and its corresponding logic diagram directly derived from a certain logical requirement are often not the simplest form, which requires the simplification of the logical expression.
A logical function can have many different logical expressions, such as AND-OR expression, OR-AND expression, AND-NON-AND expression, OR-NON-OR expression, and AND-OR-NON expression.

The above five equations are the simplest expressions of the same function in different forms. The following will focus on the simplification of AND-OR expressions, because AND-OR expressions are easy to write directly from the truth table, and Morgan's law can be used only once to transform the simplest AND-OR expression into a NAND-NAND expression, which can be implemented using a NAND gate circuit.

The simplest AND/OR expression has the following two characteristics:
① The number of AND terms (i.e., product terms) is the least.
② The number of variables in each product term is the least.

Algebraic simplification of logical functions is to use the basic laws and identities of logical algebra to simplify. The following methods are commonly used:
① The method of conjunction


② Absorption method

③ Elimination method

④ Matching method

You need some experience to use the matching method, otherwise the matching will become more and more complicated. Usually, to simplify logical expressions, you need to use the above techniques in combination. Here are a few more examples.

Example 1

solution:



Example 2


Reference address:Analysis and Design of Combinational Logic Circuits - Logic Algebra

Previous article:Karnaugh Map Simplification Method for Logical Functions
Next article:Capacitor Withstand Voltage and Insulation Resistance

Latest Analog Electronics Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号