A logic circuit simplification method and system based on matrix decomposition
Through the logic circuit simplification method based on matrix decomposition, the logic circuit structure is simplified, the problems of system complexity and cumbersome calculations in the existing technology are solved, more efficient circuit design and production management are achieved, and the reliability and reliability of the electronic system are improved. Economic benefits.
Patent Information
- Application Number
- CN202210452825.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-04-27
AI Technical Summary
Existing logic circuits ignore the simplification of system structure when pursuing high performance and functions, resulting in system complexity, reduced failure rate, reduced reliability, and increased production costs. Moreover, complex structures are not conducive to technology promotion and innovation, especially when dealing with variables. The calculation process is cumbersome when there are many circuits.
The logic circuit simplification method based on matrix decomposition is adopted, through the Kronecker integral decomposition of the logic matrix and the algebraic form simplification of the logic function, the circuit structure is simplified, the number of input gates is reduced, and the simplification of the system structure and standardized production management are achieved.
It achieves the simplification of the system structure, improves the operating speed and stability, reduces the production cost, simplifies the detection and maintenance process of the electronic system, improves the economic benefits, and promotes the promotion and innovation of technology.
Smart Images

Figure CN114781296B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of control technology, and in particular relates to a logic circuit simplification method and system based on matrix decomposition. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] As the most basic logic element of digital circuits, logic circuits control the transmission and processing of signals according to certain conditions. For example, the thermostatic integrated circuit of an electric water heater determines the voltage at the output end through the two logic inputs of the water level sensor and the water temperature sensor, thereby controlling the heating switch of the kettle; the fire alarm device changes the resistance of the thermistor caused by the increase in ambient temperature, causing the NOT gate circuit to output a high voltage, turn on the bell, and realize the alarm. These are the indispensable roles played by logic circuits.
[0004] Existing logic circuits face the following problems:
[0005] (1) Unilateral pursuit of high product performance indicators and excessive functions while ignoring the simplification of system structure leads to system complexity, increased system failure rate, and direct reduction of system reliability. At the same time, complex system structure makes production process complex, production costs increase, and product competitiveness in the market is reduced.
[0006] (2) The variety, specifications and production sites of system components are complicated, which is not conducive to the standardized production management of logic components and reduces the reliability of the components themselves. At the same time, complex circuit structures are not conducive to the promotion and innovation of technology.
[0007] (3) Complex circuit structures require higher technical costs, especially in the inspection and maintenance of electronic equipment, where the process is cumbersome, maintenance is difficult, and the cost is high.
[0008] At present, the more representative methods for simplifying logic circuits are Karnaugh maps and Quine-McCluskey algorithms. The former is intuitive and fast to draw Karnaugh maps for circuits with up to 6 variables, while the latter has exponential complexity, but can be used to simplify circuits with up to 10 variables. The new algorithm based on this can process circuits with up to 25 variables. In addition, some scholars have proposed some graph-based methods, such as binary decision diagrams and cube algebra. Unfortunately, minimizing Boolean functions with many variables is a computationally intensive problem. This problem is an NP-complete problem, so there is no polynomial time algorithm for minimizing logic circuits. In recent years, some scholars have combined the matrix semi-tensor product tool with the Boolean network for the first time to realize the mutual conversion between logic functions and their algebraic forms. The establishment of this theoretical framework has opened up a new path for the numerical analysis of logic circuits.
[0009] During the research and development process, the inventors found that there is currently a lack of systematic methods for processing circuits with a large number of variables. The existing methods have cumbersome calculation processes and are very complicated to implement using computers or manual calculations. Summary of the invention
[0010] In order to solve at least one technical problem existing in the above-mentioned background technology, the present invention provides a logic circuit simplification method and system based on matrix decomposition, which obtains a more simplified logic circuit through Kronecker integral decomposition of logic matrix and simplification method of some algebraic forms of logic functions.
[0011] In order to achieve the above object, the present invention adopts the following technical solution:
[0012] A first aspect of the present invention provides a logic circuit simplification method based on matrix decomposition, comprising the following steps:
[0013] Vectorize the original circuit variables to obtain the structure matrix of the logic function;
[0014] Determine whether the structure matrix satisfies the preset form. If so, simplify the structure matrix to remove redundant circuit variables. Otherwise, expand the logic function into the disjunctive form of two equivalent conjunction formulas. Check the order of the structure matrix corresponding to the logic function in the conjunction formula. If the structure matrix is of second order, a logic function in the form of a disjunction of multiple conjunction formulas can be obtained. If not, return to the step of simplifying and deforming the logic matrix.
[0015] Determine whether the logic function formed by disjunctive formulas of multiple conjunctions contains the extracted individual variables. If so, further simplify the logic function according to the number of the extracted individual variables and the form of the remaining conjunction formulas except the individual variables. Otherwise, the logic function is the final simplified logic function.
[0016] A second aspect of the present invention provides a logic circuit simplification system based on matrix decomposition, comprising:
[0017] A structure matrix acquisition module is used to vectorize the original circuit variables and obtain the structure matrix of the logic function;
[0018] The logic circuit simplification module is used to determine whether the structure matrix satisfies the preset form. If so, the structure matrix is simplified to remove redundant circuit variables. Otherwise, the logic function is expanded into the disjunctive form of two equivalent conjunction formulas, and the order of the structure matrix corresponding to the logic function in the conjunction formula is checked. If the structure matrix is of second order, a logic function in the form of a disjunction of multiple conjunction formulas can be obtained. If not, the module returns to the step of simplifying and deforming the logic matrix.
[0019] Determine whether the logic function formed by disjunctive formulas of multiple conjunctions contains the extracted individual variables. If so, further simplify the logic function according to the number of the extracted individual variables and the form of the remaining conjunction formulas except the individual variables. Otherwise, the logic function is the final simplified logic function.
[0020] A third aspect of the present invention provides a computer-readable storage medium.
[0021] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the above-mentioned logic circuit simplification method based on matrix decomposition.
[0022] A fourth aspect of the present invention provides a computer device.
[0023] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the above-mentioned method for simplifying a logic circuit based on matrix decomposition are implemented.
[0024] Compared with the prior art, the present invention has the following beneficial effects:
[0025] (1) The circuit simplification method designed in the present invention simplifies the system structure by reducing the number of input gates in the circuit, thereby solving the problems caused by the complex system structure, such as reduced system operation speed, reduced stability, larger product size (larger scale), and increased production cost.
[0026] (2) The present invention reduces the types of input gates in the circuit, thereby achieving more standardized production management of logic elements, and solves the problem of reduced reliability of the elements themselves due to the complexity of system component varieties, specifications and production sites.
[0027] (3) The logic circuit simplification method proposed in the present disclosure helps to speed up the process of electronic system detection and maintenance, achieve more accurate fault location and diagnosis, and thus reduce life cycle costs and improve economic benefits.
[0028] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0030] Figure 1 is a flow chart of a logic circuit simplification method according to a first embodiment of the present invention;
[0031] Figure 2 It is a simplified logic circuit diagram of the first embodiment of the present invention. DETAILED DESCRIPTION
[0032] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0033] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0034] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0035] Embodiment 1
[0036] like Figure 1-Figure 2 As shown, this embodiment provides a logic circuit simplification method based on matrix decomposition, comprising the following steps:
[0037] S101: vectorize the original circuit variables to obtain a structure matrix L of the logic function f;
[0038] Assume that there are n variables in the original logic circuit, let y, x 1 , x 2 , ..., x n Represent the circuit output and the vectors corresponding to n variables respectively.
[0039] For the logistic function y=f(x 1 ,x 2 ,...,x n ): There is a unique matrix Make
[0040] y=Lx 1 x 2 ...x n ,
[0041] Where L is the structure matrix of f, represents the i-th column vector of the n-th order identity matrix, △ 2 Represents the set of columns of the 2nd-order identity matrix. D: = {0, 1}, Indicates n The Cartesian product of . is an n×r order logical matrix. Unless otherwise specified, multiplication is performed in the sense of semi-tensor product.
[0042] It is important to note that the order of variables often affects the simplification of logical functions. Because different orders correspond to different algebraic expressions, different orders will lead to different simplification results.
[0043] S102: Determine whether the structure matrix satisfies a preset form. If so, simplify the structure matrix into the form of the Kronecker product of the corresponding logic matrix and remove redundant circuit variables. Otherwise, proceed to S103;
[0044] Among them, simplifying the structure matrix into the form of the Kronecker product of the corresponding logic matrix and removing redundant circuit variables specifically include:
[0045] S201: Simplify the structure matrix into the form of the Kronecker product of the corresponding logic matrix, specifically:
[0046] (1) If the logic matrix L = [L 1 L 2 ...L k ], Meet Col 1 (L i )=Col 2 (L i )=...=Col l (L i ), i = 1, 2, ..., k, then L can be simplified as:
[0047]
[0048] in, Col j (M) is the jth column of matrix M, 1 n is a column vector consisting of n 1s.
[0049] (2) If the logic matrix L = [L 1 L 2 ...L k ], Meet L 1 =L 2 =... =L k , then L can be simplified as:
[0050]
[0051] in,
[0052] (3) If the logic matrix L = [L 1 L 2 ...L k ], Meet L 1 =L 2 =... =L k , Col αh+1 (L i )=Col αh+2 (L i )=...=Col αh+h (L i ), where α=0, 1, …, l-1, i=1, 2, …, k, then L can be simplified as:
[0053]
[0054] in,
[0055] (4) If the logic matrix L = [L 1 L 2 ...L k ], and satisfy Then L can be simplified as:
[0056]
[0057] in, I n is the n-th order identity matrix.
[0058] S202: According to S201, the algebraic form of the logic function f based on the matrix Kronecker product simplification is obtained: f = Lx 1 x 2 ...x n , x i ∈△ 2 .
[0059] Eliminate unnecessary variables according to the following four criteria, including:
[0060] (1) If there exists a positive integer l<n, satisfying So
[0061]
[0062] (2) If there exists a positive integer k<n, satisfying So
[0063]
[0064] (3) If there exist positive integers k, l and k+l<n, satisfying So
[0065]
[0066] (4) If there exist positive integers k, h, l and k+h+l<n, then So
[0067]
[0068] S103: Expand the logic function f into the disjunctive form of two equivalent conjunction formulas, specifically including:
[0069] Specifically, if is the logic function f(x 1 ,x 2 ,...,x n ) structure matrix, then we have:
[0070]
[0071] Among them, f i The structure matrix of (·) is represents the complement of x, The corresponding structure matrix is M n =δ 2 [2,1]; ∧ represents conjunction, x∧y:=min(x,y), The corresponding structure matrix is M c =δ 2[1,2,2,2]; ∨ represents disjunction, x∨y:=max(x,y), The corresponding structure matrix is M n =δ 2 [1,1,1,2].
[0072] S104: Checking the order of the structure matrix corresponding to the logic function in the conjunction formula, if the structure matrix is of second order, a logic function in the form of a disjunction of multiple conjunction formulas can be obtained;
[0073] Check L i Is it a 2×2 logical matrix? If so, then L i =δ 2 [1,1] or L i =δ 2 [1,2] or L i =δ 2 [2,1] or L i =δ 2 [2,2]. Specifically,
[0074] (1) When L i =δ 2 When [1,1], f i =1.
[0075] (2) When L i =δ 2 When [1,2], f i (x) = x.
[0076] (3) When L i =δ 2 When [2,1],
[0077] (4) When L i =δ 2 When [2,2], f i =0.
[0078] At this time, each f i Substituting them back into f one by one, we can obtain the logical function formed by disjunction of multiple conjunction formulas.
[0079] If not, for i=1,2, let L=L i , the corresponding logic function is f i , return to step S102.
[0080] S105: Check whether the logic function obtained in S104, which is formed by extracting multiple conjunction formulas, contains the extracted individual variables. If so, further simplify the logic function according to the number of the extracted individual variables and the forms of the remaining conjunction formulas except the individual variables. Otherwise, the logic function is the final simplified logic function.
[0081] The logic function is further simplified according to the number of individual variables to be extracted and the form of the conjunction formula other than the individual variables, specifically including:
[0082] If there is only one single variable being extracted, the following simplification is applied to the logic function:
[0083] (1) For the conjunction formula containing the complement of the single variable, delete the single variable in the formula.
[0084] (2) For the conjunction formula containing the single variable itself, delete the formula.
[0085] If there are two or more separate variables to be extracted, the following simplification is adopted for the logical function:
[0086] (1) For a conjunction formula containing a single variable, if the single variable is in complement form, the single variable in the formula is deleted; if the single variable is itself, the formula is deleted.
[0087] (2) For a conjunction formula containing two or more independent variables, delete all independent variables in the formula.
[0088] Experiment and simulation
[0089] The logic circuit simplification method proposed in this embodiment is applied to a simple logic circuit design. Consider using an OR gate, an AND gate, and a NOT gate to design a simple circuit that outputs 1 when the decimal number is not less than 5 and outputs 0 when the decimal number is less than 5.
[0090] Let f(w,x,y,z) represent the output of the circuit, where wxyz is a binary expansion of a decimal number. The values of the output f corresponding to different known numbers are shown in Table 1.
[0091] Table 1 The values of f corresponding to different numbers
[0092]
[0093] As shown in the table, there are 10 four-bit binary numbers composed of wxyz, and a four-bit binary number can express at most 16, so the redundant 6 binary numbers are not used for encoding. Therefore, the redundant part can be configured with output values arbitrarily, which provides space for simplifying the circuit structure.
[0094] Take the variable order w, x, y, z. Let F, W, X, Y, Z be the vector representation of the variables f, w, x, y, z respectively. From Table 1, we can get the algebraic expression of the logic function f
[0095] F=LWXYZ,
[0096] Where L = δ 2 [* * * * * * * 1 1 1 1 1 2 2 2 2 2] is the structure matrix of the logic function f, where * represents any value between 1 and 2.
[0097] If * is 1, then we have
[0098]
[0099] Among them, the logic function f 1 and f 2 The structure matrices are L 1 =δ 2 [1 1 1 1 1 1 1 1], L 2 =δ 2 [1 1 12 2 2 2 2]. Because L 1 =δ 2 [1 1 1 1 1 1 1 1], so it is easy to get f 1 ≡1. At the same time,
[0100]
[0101] Among them, the logic function f 21 and f 22 The structure matrices are L 21 =δ 2 [1 1 1 2], L 22 =δ 2 [2 2 2 2]. Then, f 22 ≡0. Similarly, there is
[0102]
[0103] The logic function f 211 and f 212 The structure matrices are L 211 =δ 2 [1 1] and L 212 =δ 2 [1 2].
[0104] By L 211 =δ 2 [1 1] and L 212 =δ 2[1 2], we get f 211 (z)=1,f 212 (z) = z. Therefore, it can be deduced that
[0105]
[0106] Further, we can get
[0107]
[0108] At this point, we have a logical function f that is a disjunction of multiple conjunction formulas, where there is a conjunction formula for a single variable w. Therefore, the logical function can be simplified to
[0109]
[0110] At this point, only four logic gates are needed to realize the target logic circuit. Figure 2 shown.
[0111] The circuit simplification method designed by the disclosed design reduces the number of input gates in the circuit and simplifies the circuit structure, thereby making it faster, smaller (smaller in scale), cheaper, and more stable in operation. At the same time, the disclosed design not only helps the standardized production management of logic components and improves the reliability of the components themselves, but also facilitates the promotion and innovation of technology. In addition, the simplified circuit design helps to speed up the process of electronic system detection and maintenance, achieve more accurate fault location and diagnosis, and thus reduce life cycle costs and improve economic benefits.
[0112] Embodiment 2
[0113] This embodiment provides a logic circuit simplification system based on matrix decomposition, including:
[0114] A structure matrix acquisition module is used to vectorize the original circuit variables and obtain the structure matrix of the logic function;
[0115] The logic circuit simplification module is used to determine whether the structure matrix satisfies the preset form. If so, the structure matrix is simplified to remove redundant circuit variables. Otherwise, the logic function is expanded into the disjunctive form of two equivalent conjunction formulas, and the order of the structure matrix corresponding to the logic function in the conjunction formula is checked. If the structure matrix is of second order, a logic function in the form of a disjunction of multiple conjunction formulas can be obtained. If not, the module returns to the step of simplifying and deforming the logic matrix.
[0116] Determine whether the logic function formed by disjunctive formulas of multiple conjunctions contains the extracted individual variables. If so, further simplify the logic function according to the number of the extracted individual variables and the form of the remaining conjunction formulas except the individual variables. Otherwise, the logic function is the final simplified logic function.
[0117] The logic function is further simplified according to the number of individual variables to be extracted and the form of the conjunction formula other than the individual variables, specifically including:
[0118] If there is only one single variable being extracted, the following simplification is applied to the logic function:
[0119] For the conjunction formula containing the complement of the single variable, delete the single variable in the formula.
[0120] For conjunction formulas containing the single variable itself, delete the formula.
[0121] If there are two or more separate variables to be extracted, the following simplification is adopted for the logical function:
[0122] For a conjunction formula containing a single variable, if the single variable is in complement form, the single variable in the formula is deleted; if the single variable is itself, the formula is deleted.
[0123] For a conjunction formula containing two or more independent variables, delete all the independent variables in the formula.
[0124] Embodiment 3
[0125] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the logic circuit simplification method based on matrix decomposition as described above are implemented.
[0126] Embodiment 4
[0127] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the logic circuit simplification method based on matrix decomposition as described above are implemented.
[0128] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0129] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0130] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0131] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0132] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0133] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A logic circuit simplification method based on matrix decomposition, It is characterized in that The steps include: Vectorize the original circuit variables to obtain the structure matrix of the logic function; Determine whether the structure matrix satisfies the preset form. If so, simplify the structure matrix to remove redundant circuit variables. Otherwise, expand the logic function into the disjunctive form of two equivalent conjunction formulas. Check the order of the structure matrix corresponding to the logic function in the conjunction formula. If the structure matrix is of second order, a logic function in the form of disjunction of multiple conjunction formulas can be obtained. If not, return to the step of simplifying and deforming the logic matrix. Determine whether the logic function formed by disjunctive formulas of multiple conjunctions contains the extracted individual variables. If so, further simplify the logic function according to the number of the extracted individual variables and the form of the remaining conjunction formulas except the individual variables. Otherwise, the logic function is the final simplified logic function.
2. A logic circuit simplification method based on matrix decomposition as claimed in claim 1, It is characterized in that The original circuit variables are vectorized to obtain the structure matrix of the logic function, which specifically includes: For logical functions There exists a unique matrix Make y=Lx 1 x 2 …x n , Where y represents the circuit output, x 1 , x 2 ,...x n They respectively represent the vectors corresponding to the n variables in the logic circuit, and L is the structural matrix of f.
3. A logic circuit simplification method based on matrix decomposition as claimed in claim 1, It is characterized in that The simplification of the structure matrix to remove redundant circuit variables specifically includes: Simplify the structure matrix into the form of the Kronecker product of the corresponding logic matrix; Remove redundant variables based on the form of the Kronecker product of the logic matrix and the simplification criteria.
4. A logic circuit simplification method based on matrix decomposition as claimed in claim 3, It is characterized in that The method of simplifying the structure matrix into the form of the Kronecker product of the corresponding logic matrix specifically includes: If the logical matrix Meet Col 1 (L i )=Col 2 (L i )=...=Col l (L i ), i = 1, 2, ..., k, then L can be simplified as: in, Col j (M) is the jth column of matrix M, 1 n is a column vector consisting of n 1s, If the logical matrix Meet L 1 =L 2 =... =L k , then L can be simplified as: in, If the logical matrix Meet L 1 =L 2 =... =L k , Col αh+1 (L i )=Col αh+2 (L i )=...=Col αh+h (L i ), where α=0, 1, …, l-1, i=1, 2, …, k, then L can be simplified as: in, If the logical matrix and satisfy Then L can be simplified as: in, I n is the n-th order identity matrix.
5. A logic circuit simplification method based on matrix decomposition as claimed in claim 1, It is characterized in that The disjunctive form of expanding the logic function into two equivalent conjunction formulas is: Among them, f i The structure matrix of (·) is Represents x i Of supplement, ∧ represents conjunction and ∨ represents disjunction.
6. A logic circuit simplification method based on matrix decomposition as claimed in claim 1, It is characterized in that The logic function is further simplified according to the number of individual variables to be extracted and the form of the conjunction formula other than the individual variables, specifically including: If there is only one single variable being extracted, the following simplification is applied to the logic function: For the conjunction formula containing the complement of the single variable, delete the single variable in the formula. For the conjunction formula containing the single variable itself, delete the formula. If there are two or more separate variables to be extracted, the following simplification is adopted for the logical function: For a conjunction formula containing a single variable, if the single variable is in complement form, delete the single variable in the formula; if the single variable is itself, delete the formula. For a conjunction formula containing two or more independent variables, delete all independent variables in the formula.
7. A logic circuit simplification system based on matrix decomposition, It is characterized in that include: A structure matrix acquisition module is used to vectorize the original circuit variables and obtain the structure matrix of the logic function; The logic circuit simplification module is used to determine whether the structure matrix satisfies the preset form. If so, the structure matrix is simplified to remove redundant circuit variables. Otherwise, the logic function is expanded into the disjunctive form of two equivalent conjunction formulas, and the order of the structure matrix corresponding to the logic function in the conjunction formula is checked. If the structure matrix is of second order, a logic function in the form of a disjunction of multiple conjunction formulas can be obtained. If not, the module returns to the step of simplifying and deforming the logic matrix. Determine whether the logic function formed by disjunctive formulas of multiple conjunctions contains the extracted individual variables. If so, further simplify the logic function according to the number of the extracted individual variables and the form of the remaining conjunction formulas except the individual variables. Otherwise, the logic function is the final simplified logic function.
8. A logic circuit simplification method based on matrix decomposition as claimed in claim 7, It is characterized in that The logic function is further simplified according to the number of individual variables to be extracted and the form of the conjunction formula other than the individual variables, specifically including: If there is only one single variable being extracted, the following simplification is applied to the logic function: For the conjunction formula containing the complement of the single variable, delete the single variable in the formula. For the conjunction formula containing the single variable itself, delete the formula. If there are two or more separate variables to be extracted, the following simplification is adopted for the logical function: For a conjunction formula containing a single variable, if the single variable is in complement form, delete the single variable in the formula; if the single variable is itself, delete the formula. For a conjunction formula containing two or more independent variables, delete all independent variables in the formula.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps in a logic circuit simplification method based on matrix decomposition as described in any one of claims 1 to 6 are implemented.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps in the logic circuit simplification method based on matrix decomposition as described in any one of claims 1 to 6 are implemented.
