Method and system for constructing approximate triple modular redundancy based on decomposition multi-objective evolutionary algorithm
Through a multi-objective evolutionary algorithm based on decomposition, the approximate triple-module redundancy method for optimizing large-scale circuit design solves the problems of long calculation time and large resource usage of traditional methods, and achieves efficient circuit optimization and improved fault tolerance.
Patent Information
- Application Number
- CN202410677034.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-10-01
AI Technical Summary
In large-scale circuit design, the traditional multi-objective genetic algorithm to construct approximate triple-module redundancy has a heavy computational workload, resulting in a long time required to generate an approximate triple-module redundancy design, and it is difficult to reduce hardware while maintaining system reliability. Resource occupancy and improved algorithm efficiency.
A multi-objective evolutionary algorithm based on decomposition is used to generate dual-chromosome coding by analyzing the netlist of the original circuit, perform mutation operations and genotype evaluation, and combine the Chebyshev decomposition strategy and trashold calibration algorithm to optimize the approximate triple-module redundant circuit. area and error rate until the preset stopping conditions are met.
It achieves efficient optimization of the circuit, reduces physical space occupation and error rate, enhances the fault tolerance of the circuit, ensures stable operation of the system, and balances redundancy and performance levels under various working conditions.
Smart Images

Figure CN118734754A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of approximate triple modular redundancy, and in particular to a method and system for constructing approximate triple modular redundancy based on a decomposed multi-objective evolutionary algorithm. Background Art
[0002] Integrated circuits are increasingly affected by radiation effects, and fault-tolerant technologies can detect, shield or correct faults, thereby improving system reliability. Hardware fault tolerance is usually based on spatial, temporal or information redundancy, but it will lead to lower operating frequency, increased area and increased power consumption. Spatial redundancy adds hardware components, temporal redundancy repeats operations, and information redundancy uses redundant coding and check bits. When designing a fault-tolerant system, it is necessary to weigh these factors and choose the appropriate strategy based on the application scenario.
[0003] Triple-module redundancy technology corrects single-particle transient faults through logical shielding, but the area overhead is large. Approximate triple-module redundancy uses approximate circuits as redundant modules to reduce area overhead, but slightly reduces fault shielding capabilities. Currently, building approximate triple-module redundancy based on multi-objective genetic algorithms is a more commonly used method, but there is a problem of excessive computational workload for large circuits, and it may take weeks to generate results. Summary of the invention
[0004] In view of the fact that the traditional large-scale circuit design process needs to consume a lot of computing resources, especially when generating an approximate triple-module redundant design of a circuit composed of hundreds of logic gates, it may take several weeks to obtain a satisfactory result, the present invention is proposed.
[0005] Therefore, the problem to be solved by the present invention is how to reduce hardware resource usage, improve algorithm efficiency, and shorten the calculation time required to create an approximate triple-module redundant design for a large circuit while maintaining system reliability.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] In a first aspect, an embodiment of the present invention provides a method for constructing an approximate triple-modular redundancy method based on a decomposition-based multi-objective evolutionary algorithm, which includes analyzing a netlist of an original circuit to generate a dual-chromosome code of the original circuit containing gate information; performing a mutation operation on an approximate design replacement code Approx in the dual-chromosome code of the original circuit to generate a primary population; performing a genotype evaluation and update process on each individual in the primary population to generate valid individuals that meet the approximate triple-modular redundancy conditions; evaluating the area and error rate of the generated approximate triple-modular redundancy individuals, sorting the individuals according to the evaluation results, and selecting excellent individuals as parents; performing crossover recombination on the under-approximate circuit chromosomes and over-approximate circuit chromosomes of the parent individuals to generate a new generation of population candidate solutions; repeating the genotype evaluation update, individual selection and crossover recombination operations to perform a multi-objective evolution based on the Chebyshev decomposition strategy until a preset stop condition is met; and outputting a Pareto optimal solution set from the final evolved population as an approximate triple-modular redundancy circuit solution set that meets the reliability and redundancy requirements.
[0008] As a preferred solution of the method for constructing approximate triple modular redundancy based on decomposition-based multi-objective evolutionary algorithm described in the present invention, wherein: the original circuit double chromosome encoding containing gate information includes under-approximate circuit chromosomes and over-approximate circuit chromosomes, and the combination of the two is called genotype; the gene information in the under-approximate circuit chromosomes and the over-approximate circuit chromosomes includes the approximate design replacement code Approx, gate usage Used, gate type Gate, gate parity Parity, Input of the input port, Output of the output port, Over-num of the number of over-approximate replacement gates, and Under-num of the number of under-approximate replacement gates.
[0009] As a preferred solution of the method for constructing approximate triple-module redundancy based on the decomposition-based multi-objective evolutionary algorithm described in the present invention, wherein: the genotype evaluation and update process includes updating the gene information of the chromosomes of the under-approximate circuit and the over-approximate circuit; based on the updated chromosomes, the corresponding under-approximate circuit and over-approximate circuit netlist models are constructed; intelligent fault injection and adaptive simulation evaluation are performed on the constructed under-approximate and over-approximate netlist models, and multi-dimensional performance indicators of the circuit including area overhead and error rate are intelligently obtained; an improved multi-objective decision-making mechanism is used to determine whether the generated individuals meet the triple-module redundancy conditions. If the sum of the error rates of the under-approximate circuit and the over-approximate circuit is less than a preset threshold, and the power consumption and delay indicators meet the preset constraints, the triple-module redundancy conditions are met and recorded as a valid individual, otherwise it is recorded as an invalid individual; for invalid individuals, combined with the comprehensive score of their performance indicators, a tramhold calibration algorithm is executed to autonomously determine the adjustment priority, and the power consumption and delay are minimized, and the area overhead is optimized while maximizing the error shielding capability.
[0010] As a preferred solution of the method for constructing approximate triple modular redundancy based on the decomposition-based multi-objective evolutionary algorithm of the present invention, wherein: performing a mutation operation on the approximate design replacement code Approx in the original circuit double chromosome code includes the following steps: initializing the original circuit double chromosome code, setting the Approx gene in the under-approx circuit chromosome and the over-approx circuit chromosome to 0; traversing each Approx gene in the over-approx circuit chromosome, and determining the number of over-approx replacement gates Over-num according to the parity Parity of each gate; if Parity is an even attribute, randomly generating an integer value in the range of 0 to Over-num as the Approx gene value of the gate; if Parity is an odd ... An integer value is randomly generated between ver-num and Under-num as the Approx gene value of the gate; if Parity is neither odd nor even, mutation operation is prohibited on the gate; the approximate gate library is queried according to the Approx gene value of the mutated over-approximate circuit chromosome, and the corresponding gate in the original circuit is replaced with the approximate gate; other gene information in the under-approximate circuit chromosome and the over-approximate circuit chromosome is updated, and the other gene information includes gate usage Used, gate type Gate, input port Input, and output port Output; the updated under-approximate circuit chromosome and the over-approximate circuit chromosome are encoded and added to the primary population as an individual; the execution is repeated until the primary population reaches a preset size.
[0011] As a preferred solution of the method for constructing approximate triple modular redundancy based on the multi-objective evolutionary algorithm of decomposition of the present invention, wherein: the multi-objective evolution based on Chebyshev decomposition strategy includes the following steps: determining the optimization objective function f i (x) and its ideal reference point z * , the optimization goal is to minimize the area overhead and error rate of the approximate triple-module redundant circuit; for each individual i in the initial population, calculate its Chebyshev function value g i ; The current population is calculated according to the Chebyshev function value g i Sort from small to large, select the top N individuals as parents, and perform crossover recombination on the parent individuals to produce offspring; perform genotype update and evaluation process on the offspring, update the chromosome gene information of the offspring individuals, and evaluate the area cost f 1 and error rate f 2 ; Merge the parent and child generations according to the Chebyshev value g i Sort from small to large, select the top N individuals as the new generation population; if they meet the preset algebraic upper limit or the ideal reference point z * If no better solution can be found, the evolution stops; otherwise, the Chebyshev function value is recalculated and the next round of evolution is continued; the final Pareto non-dominated solution set is output.
[0012] As a preferred solution of the method for constructing approximate triple modular redundancy based on decomposition multi-objective evolutionary algorithm of the present invention, the specific formula of Chebyshev decomposition strategy is as follows:
[0013]
[0014] Among them, g te represents the Chebyshev function, x represents the decision variable vector, f i (x) represents the i-th optimization objective function, represents the ideal reference value of the i-th objective function, M represents the total number of objective functions, λ=(λ 1 ,λ 2 ,λ 3 ,...,λ M ) represents the weight vector of the objective function, represents the ideal reference point vector.
[0015] As a preferred solution of the method for constructing approximate triple-module redundancy based on the decomposition-based multi-objective evolutionary algorithm described in the present invention, the execution of the tramhold calibration algorithm includes the following steps: according to the error rate of invalid individuals, they are divided into multiple levels, and the higher the error rate, the higher the level; within the same error rate level, each gate circuit is adjusted: if the gate circuit error rate contribution is high and it belongs to an over-approximate circuit, it is replaced with an approximate gate with a smaller area cost, and if a replaceable approximate gate cannot be found, the gate circuit is restored to the original gate; if the gate circuit error rate contribution is high and it belongs to an under-approximate circuit, it is replaced with the original gate or an approximate gate with a smaller area cost; after completing the gate-level adjustment within the same level, for a high error level, if the error shielding requirement cannot be met, some individuals are selected from the low error level, and the error rate compensation is obtained by increasing their area cost; repeat the above steps to iteratively adjust the gate-level information of individuals of different levels.
[0016] In a second aspect, an embodiment of the present invention provides a multi-objective evolutionary algorithm based on decomposition to construct an approximate triple-modular redundancy system, which includes a chromosome code generation module for analyzing the netlist of the original circuit to generate a dual-chromosome code of the original circuit containing gate information; a mutation module for performing a mutation operation on the approximate design replacement code Approx in the dual-chromosome code of the original circuit to generate an initial population; an evaluation and update module for performing a genotype evaluation and update process on each individual in the initial population to generate valid individuals that meet the approximate triple-modular redundancy conditions; a sorting module for evaluating and sorting the valid individuals according to the area overhead and the error rate, and selecting excellent individuals as the parent generation; a crossover recombination module for crossover recombination of the under-approximate circuit chromosomes and over-approximate circuit chromosomes of the parent generation individuals to generate a new generation of population candidate solutions; a decomposition evolution module for performing a multi-objective evolution based on the Chebyshev decomposition strategy, repeating the genotype evaluation update, individual selection and crossover recombination operations until a preset stop condition is met; an optimal solution module for outputting a Pareto optimal solution set from the final evolved population as an approximate triple-modular redundancy circuit solution set that meets the reliability and redundancy requirements.
[0017] In a third aspect, an embodiment of the present invention provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program instructions are executed by the processor, the steps of constructing an approximate triple modular redundancy method based on a decomposition-based multi-objective evolutionary algorithm as described in the first aspect of the present invention are implemented.
[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program instructions are executed by a processor, the steps of constructing an approximate triple modular redundancy method based on a decomposition-based multi-objective evolutionary algorithm as described in the first aspect of the present invention are implemented.
[0019] The beneficial effects of the present invention are as follows: the present invention realizes efficient optimization of the circuit through a multi-objective evolutionary algorithm based on decomposition, while reducing the physical space occupied by the circuit and reducing the error rate. By designing an approximate triple-module redundant circuit, the fault tolerance of the circuit is enhanced to ensure stable operation of the system. By adopting a genotype evaluation and update process, the effective individuals in the generated primary population can quickly meet the approximate triple-module redundant conditions. Through multi-objective optimization, the redundancy and performance level of the circuit are balanced, ensuring the stability of the circuit under various working conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 Diagram of the model structure for constructing an approximate triple modular redundancy approach for a decomposition-based multi-objective evolutionary algorithm.
[0022] Figure 2 A schematic diagram of the generation of an approximate triple modular redundancy approach for a decomposition-based multi-objective evolutionary algorithm.
[0023] Figure 3 Plot of experimental results for building an approximate triple modular redundancy approach for a decomposition-based multi-objective evolutionary algorithm.
[0024] Figure 4 Computer equipment diagram for building an approximate triple modular redundancy approach for a decomposition-based multi-objective evolutionary algorithm. DETAILED DESCRIPTION
[0025] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0026] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0027] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0028] Example 1
[0029] Reference Figure 1 to Figure 4 , which is the first embodiment of the present invention, and provides a method for constructing approximate triple modular redundancy based on a decomposition-based multi-objective evolutionary algorithm, including:
[0030] Furthermore, this embodiment also provides a decomposition-based multi-objective evolutionary algorithm to construct an approximate triple modular redundancy system, including:
[0031] S1: Analyze the netlist of the original circuit and generate the double chromosome encoding of the original circuit.
[0032] Specifically, the original circuit double chromosome encoding includes an under-approximate circuit chromosome and an over-approximate circuit chromosome. The combination of the two is called a genotype, and the information in the chromosome is called a gene.
[0033] Furthermore, in order to determine the genotype of the approximate triple-module redundant circuit, the original circuit must first be analyzed to evaluate the genes of the circuit. In this analysis, parity, over-approximation, and under-approximation are evaluated to create a genetic map (i.e., genotype). The specific gene definition information is as follows: approximate design replacement code Approx, gate usage Used, gate type Gate, gate parity Parity, Input of the input port, Output of the output port, Over-num of the number of over-approximation replacement gates, and Under-num of the number of under-approximation replacement gates.
[0034] It should be noted that Approx means that the gate uses the approximate design in the approximate library to replace the corresponding code. Figure 2 An approximate replacement for each gate is given with a corresponding code. A value of 0 indicates the original gate, and a value greater than 0 indicates that the gate will be replaced by a gate corresponding to the approximate code. Used indicates whether the gate is being used in the circuit. 0 indicates that the gate is in use, and 1 indicates that it is no longer in use. Parity indicates the parity of the gate, including even attribute (1), odd attribute (-1), or neither odd nor even attribute (0). Over-num is obtained from the approximate library and indicates the number of over-approximate replacement gates for the gate. Under-num is obtained from the approximate library and indicates the number of under-approximate replacement gates for the gate.
[0035] Preferably, the original circuit is encoded into under-approximate circuit chromosomes and over-approximate circuit chromosomes respectively. This separate encoding method is conducive to better capturing and expressing the redundant and approximate information required for the approximate triple-modular redundant circuit; compared with the single chromosome encoding, the dual chromosome encoding can more flexibly control the construction process of the under-approximate circuit and the over-approximate circuit, so that they can evolve relatively independently, providing more possibilities for subsequent operations such as crossover recombination; the dual chromosome encoding contains rich information at the gate level, such as gate type, parity, input and output ports, etc., which can comprehensively describe the circuit characteristics and provide the necessary genetic knowledge base for accurately constructing the approximate triple-modular redundant circuit; this encoding method is closely related to the overall algorithm framework, conforms to the idea of evolutionary algorithm, and is conducive to the smooth implementation of genetic operations such as mutation and crossover recombination.
[0036] S2: Approx value represents different approximate transformations such as Figure 2 As shown, the initial population is generated by performing a mutation operation on the approximate design replacement code Approx in the double chromosome code of the original circuit.
[0037] Specifically, the original circuit double chromosome encoding is initialized, and the Approx gene in the under-approx circuit chromosome and the over-approx circuit chromosome is set to 0; each Approx gene in the over-approx circuit chromosome is traversed, and the number of over-approximation replacement gates Over-num is determined according to the parity Parity of each gate; if Parity is an even attribute, an integer value is randomly generated in the range of 0 to Over-num as the Approx gene value of the gate; if Parity is an odd attribute, an integer value is randomly generated from Over-num to Under-num as the Approx gene value of the gate; if Parity is a non-odd and non-even attribute, it is forbidden to perform mutation operations on the gate; according to the Approx gene value of the mutated over-approx circuit chromosome, the approximate gate library is queried, and the corresponding gate in the original circuit is replaced with an approximate gate; other gene information in the under-approx circuit chromosome and the over-approx circuit chromosome is updated, including the gate usage Used, the gate type Gate, the input port Input, and the output port Output; the updated under-approx circuit chromosome and the over-approx circuit chromosome encoding are added as an individual to the primary population; and the execution is repeated until the primary population reaches a preset size.
[0038] It should be noted that in Figure 2 In the circuit shown, the chromosome information of the initial circuit has an "Approx" value of 0 for all gates. Next, an over-approximated chromosome needs to be generated. For each gate, it can be replaced with its over-approximated gate. For example, if the mutation occurs at the position shown in the figure, the "Approx" value of the gate will change from 0 to 2. At this time, the parity of the gate needs to be analyzed. If its value is 1, it means that this is an even attribute gate. In order to create an over-approximation with an even attribute, the algorithm will look at the value of the "Over-num" gene, which is 3 in this example. Then the approximation gene will randomly take a value between 0 and 3. Assuming that the random value is 2, 2 will be set as the approximation gene of the gate; if the parity attribute is (-1), the algorithm will look for "Under-num" to evaluate the approximation; if the parity attribute is 0, it means that the current gate attribute is neither odd nor even, and the mutation will be prohibited. After the mutation is completed, the genetic information of the circuit needs to be re-evaluated and the circuit updated.
[0039] S3: Perform genotype evaluation and update process on each individual in the initial population to generate valid individuals that meet the approximate triple modular redundancy conditions.
[0040] Specifically, the genetic information of under-approximated circuit chromosomes and over-approximated circuit chromosomes is updated; based on the updated chromosomes, the corresponding under-approximated circuit and over-approximated circuit netlist models are constructed; intelligent fault injection and adaptive simulation evaluation are performed on the constructed under-approximated and over-approximated netlist models, and multi-dimensional performance indicators of the circuit including area overhead, error rate, power consumption, delay, etc. are intelligently obtained; an improved multi-objective decision-making mechanism is used to determine whether the generated individuals meet the triple-mode redundancy conditions. If the sum of the error rates of the under-approximated circuit and the over-approximated circuit is less than a preset threshold, and the power consumption and delay indicators meet the preset constraints, the triple-mode redundancy conditions are met and recorded as a valid individual, otherwise it is recorded as an invalid individual; for invalid individuals, combined with the comprehensive score of their performance indicators, a tramhold calibration algorithm is executed to autonomously determine the adjustment priority. On the premise of maximizing the error shielding capability, power consumption and delay are minimized first, and area overhead is optimized secondly.
[0041] Preferably, the execution steps of the tramhold calibration algorithm are as follows: according to the error rate of the invalid individuals, they are divided into multiple levels (high, medium, and low errors), and the higher the error rate, the higher the level. Within the same error rate level, for the invalid individuals in each level, each gate circuit is adjusted according to the following priority: first, pay attention to the gate circuits with high error rate contribution, and these gates belong to over-approximation circuits, and give priority to replacing these gates with approximation gates with smaller area overhead to reduce the area overhead; if a replaceable approximation gate cannot be found, consider restoring the gate to the original gate, so as to ensure reliability, but increase the area overhead; secondly, pay attention to the gate circuits with high error rate contribution, and these gates belong to under-approximation circuits, and consider replacing these gates with more reliable original gates or approximation gates with smaller area overhead. After completing the gate-level adjustment within the same level, for the high error level, if the error shielding requirements cannot be met, some individuals are selected from the low error level and their area overhead is appropriately increased to obtain a certain error rate compensation; repeat the above steps, and continuously adjust the gate-level information of individuals with high, medium, and low error levels, so that the error rate of the high level is gradually reduced, and the area overhead of the low level is also controlled, and finally the error rate meets the requirements and the overall area overhead is minimized.
[0042] It should be noted that the two-level strategy of level classification and gate-level adjustment, combined with iterative convergence, can more efficiently minimize the overall area overhead of invalid individuals without affecting the error shielding capability. At the same time, the balance and complementarity within and outside the level enhance the flexibility and controllability of the algorithm.
[0043] S4: Evaluate the area overhead and error rate of the generated approximate triple-module redundant individuals. The area is the sum of the number of transistors in the circuit, and the error rate is the error probability between the output of the approximate circuit after the fault is injected and the output of the original circuit without the fault injected. Sort the individuals according to the evaluation results and select the excellent individuals as the parent generation.
[0044] S5: Perform crossover recombination on the under-approximated circuit chromosomes and over-approximated circuit chromosomes of the parent individuals to generate a new generation of population candidate solutions.
[0045] It should be emphasized that in the present invention, since the chromosomes of the original circuit are the same, the chromosomes of the original circuit are not considered when constructing each approximate triple-modular redundant genotype. The approximate triple-modular redundant genotype is composed of over-approximate circuit chromosomes and under-approximate circuit chromosomes. Therefore, the crossover mechanism in the present invention is to obtain a new daughter chromosome by exchanging two parent approximate triple-modular redundant under-approximate chromosomes.
[0046] S6: Repeat the genotype evaluation and update, individual selection and crossover recombination operations to perform multi-objective evolution based on the Chebyshev decomposition strategy until the preset stopping condition is met.
[0047] Specifically, determine the optimization objective function f i (x) and its ideal reference point z * , the optimization goal is to minimize the area overhead and error rate of the approximate triple-module redundant circuit; for each individual i in the initial population, calculate its Chebyshev function value g i ; The current population is calculated according to the Chebyshev function value g i Sort from small to large, select the top N individuals as parents, and perform crossover recombination on the parent individuals to produce offspring; perform genotype update and evaluation process on the offspring, update the chromosome gene information of the offspring individuals, and evaluate the area cost f 1 and error rate f 2 ; Merge the parent and child generations according to the Chebyshev value g i Sort from small to large, select the top N individuals as the new generation population; if they meet the preset algebraic upper limit or the ideal reference point z * If no better solution can be found, the evolution stops; otherwise, the Chebyshev function value is recalculated and the next round of evolution is continued; the final Pareto non-dominated solution set is output.
[0048] Preferably, the specific formula of the Chebyshev decomposition strategy is as follows:
[0049]
[0050] Among them, g te represents the Chebyshev function, x represents the decision variable vector, f i (x) represents the i-th optimization objective function, represents the ideal reference value of the i-th objective function, M represents the total number of objective functions, λ=(λ 1 ,λ 2 ,λ 3,...,λ M ) represents the weight vector of the objective function, represents the ideal reference point vector.
[0051] Preferably, adding a penalty term to the Chebyshev decomposition strategy can well integrate the constraints into the multi-objective optimization algorithm, ensuring that the obtained Pareto optimal solution set is feasible, and after the introduction of the penalty term, the constraint processing can be directly embedded in the fitness function of the algorithm without additional steps, and the algorithm process is more concise and efficient.
[0052] S7: Output the Pareto optimal solution set from the final evolved population as the approximate triple-module redundant circuit solution set that meets the reliability and redundancy requirements.
[0053] This embodiment also provides a computer device, which is suitable for constructing an approximate triple modular redundancy method based on a decomposed multi-objective evolutionary algorithm, including a memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the construction of an approximate triple modular redundancy method based on a decomposed multi-objective evolutionary algorithm as proposed in the above embodiment.
[0054] The computer device may be a terminal, and the computer device includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0055] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the method for constructing approximate triple modular redundancy based on a decomposition-based multi-objective evolutionary algorithm as proposed in the above embodiment is implemented.
[0056] In summary, the present invention realizes efficient optimization of the circuit through multi-objective optimization based on genetic algorithm, while reducing the physical space occupied by the circuit and reducing the error rate. Through the design of the approximate triple-module redundant circuit, the fault tolerance of the circuit is enhanced to ensure the stable operation of the system. By adopting the genotype evaluation and update process, the effective individuals in the generated primary population can quickly meet the approximate triple-module redundant conditions. Through multi-objective optimization, the redundancy and performance level of the circuit are balanced, and the stability of the circuit under various working conditions is guaranteed.
[0057] Example 2
[0058] Reference Figure 1 to Figure 4 , which is the second embodiment of the present invention, provides a method for constructing approximate triple modular redundancy based on a decomposition-based multi-objective evolutionary algorithm. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.
[0059] Preferably, this experiment uses the newtag benchmark circuit from the public domain suite LGSynth93 benchmark circuit set of the International Logic Synthesis Workshop, which has 8 input terminals and 1 output terminal.
[0060] Furthermore, the approximate triple modular redundancy schemes generated by different methods on the newtag benchmark circuit are compared and analyzed. The experimental results are as follows: Figure 4 As shown. Figure 4 It can be seen that the increased area overhead (%) is negatively correlated with the error rate (%). In other words, as the area overhead increases, the error rate shows a downward trend; on the contrary, if the area overhead decreases, the error rate will increase. When the increased area overhead is 26.77%, the method proposed in the present invention shows a lower error rate than the traditional method. When the area overhead increases to 72.2%, the error rate of the method of the present invention is close to 3.5%, while the traditional method needs to increase the area to about 94% to achieve a similar error rate level, which means that the method proposed in the present invention can obtain a similar error rate effect with less area overhead.
[0061] It should be noted that the proposed method takes 46 minutes to run, while the traditional method takes 84 minutes. The proposed method reduces the running time by 45.24% compared with the traditional method.
[0062] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for constructing approximate triple modular redundancy based on a decomposed multi-objective evolutionary algorithm is characterized by: include, Analyze the netlist of the original circuit to generate a double chromosome encoding of the original circuit containing gate information; Perform mutation operation on the approximate design replacement code Approx in the double chromosome code of the original circuit to generate the initial population; Perform genotype evaluation and update process on individuals in the initial population to generate valid individuals that meet the approximate triple modular redundancy conditions; Evaluate and sort the effective individuals according to area cost and error rate, and select the excellent individuals as parents; Perform crossover recombination on under-approximated circuit chromosomes and over-approximated circuit chromosomes of parent individuals to generate a new generation of population candidate solutions; Carry out multi-objective evolution based on Chebyshev decomposition strategy, repeat genotype evaluation and update, individual selection and crossover recombination operations until the preset stop condition is met; The Pareto optimal solution set is output from the final evolved population as an approximate triple-module redundant circuit solution set that meets the reliability and redundancy requirements.
2. The method for constructing approximate triple modular redundancy based on a decomposition-based multi-objective evolutionary algorithm according to claim 1, characterized in that: The original circuit double chromosome encoding containing gate information includes an under-approximated circuit chromosome and an over-approximated circuit chromosome, and the combination of the two is called a genotype; The gene information in the under-approximated circuit chromosome and the over-approximated circuit chromosome includes the approximate design replacement code Approx, gate usage Used, gate type Gate, gate parity Parity, input port Input, output port Output, over-approximated replacement gate number Over-num and under-approximated replacement gate number Under-num.
3. The method for constructing approximate triple modular redundancy based on a decomposition-based multi-objective evolutionary algorithm according to claim 1, characterized in that: The genotype assessment and update process includes: Update the gene information of under-approximated circuit chromosomes and over-approximated circuit chromosomes; Based on the updated chromosome, the corresponding under-approximated circuit and over-approximated circuit netlist models are constructed; Perform intelligent fault injection and adaptive simulation evaluation on the constructed under-approximation and over-approximation netlist models, and intelligently obtain multi-dimensional performance indicators of the circuit including area overhead and error rate; An improved multi-objective decision-making mechanism is used to determine whether the generated individuals meet the triple-mode redundancy conditions. If the sum of the error rates of the under-approximated circuit and the over-approximated circuit is less than the preset threshold, and the power consumption and delay indicators meet the preset constraints, then the triple-mode redundancy condition is met and it is recorded as a valid individual, otherwise it is recorded as an invalid individual; For invalid individuals, the trashold calibration algorithm is executed based on the comprehensive score of their performance indicators to autonomously determine the adjustment priority, thereby minimizing power consumption, latency, and area overhead while maximizing the error shielding capability.
4. The method for constructing approximate triple modular redundancy based on a decomposition-based multi-objective evolutionary algorithm according to claim 1 or 2, characterized in that: The performing mutation operation on the approximate design replacement code Approx in the original circuit double chromosome code comprises the following steps: Initialize the original circuit double chromosome encoding, and set the Approx gene in the under-approximation circuit chromosome and the over-approximation circuit chromosome to 0; Traverse each Approx gene in the over-approximation circuit chromosome and determine the number of over-approximation replacement gates Over-num according to the parity of each gate; If Parity is an even attribute, a random integer value is generated in the range of 0 to Over-num as the Approx gene value of the gate; If Parity is an odd attribute, a random integer value is generated from Over-num to Under-num as the Approx gene value of the gate; If Parity is neither odd nor even, mutation operations are prohibited on this gate. According to the Approx gene value of the over-approximate circuit chromosome after mutation, the approximate gate library is searched, and the corresponding gate in the original circuit is replaced with the approximate gate; Updating other gene information in the under-approximated circuit chromosome and the over-approximated circuit chromosome, wherein the other gene information includes gate usage, gate type, input port, and output port; Encode the updated under-approximated circuit chromosome and over-approximated circuit chromosome and add them to the initial population as an individual; Repeat until the initial population reaches the preset size.
5. The method for constructing approximate triple modular redundancy based on a decomposition-based multi-objective evolutionary algorithm according to claim 1, characterized in that: The multi-objective evolution based on Chebyshev decomposition strategy comprises the following steps: Determine the optimization objective function f i (x) and its ideal reference point z * , the optimization goal is to minimize the area overhead and error rate of the approximate triple-module redundant circuit; For individual i in the initial population, calculate its Chebyshev function value g i ; The current population is divided into two groups according to the Chebyshev function value g. i Sort from small to large, select the top N individuals as parents, and the parent individuals perform crossover recombination to produce offspring; Execute the genotype update and evaluation process for the offspring, update the chromosome gene information of the offspring individuals, and evaluate the area cost f1 and error rate f2; Merge the parent and child generations according to the Chebyshev value g i Sort from small to large, and select the top N individuals as the new generation population; If the preset algebraic upper limit or ideal reference point z is satisfied * If no better solution can be found, the evolution stops, otherwise it returns to recalculate the Chebyshev function value and continues the next round of evolution; Output the final Pareto non-dominated solution set.
6. The method for constructing approximate triple modular redundancy based on a decomposition-based multi-objective evolutionary algorithm according to claim 1, characterized in that: The specific formula of the Chebyshev decomposition strategy is as follows: ming te (x|λ,z * )=1m ≤i≤ a M x{λ i (f i (x)-z i * )} Among them, g te represents the Chebyshev function, x represents the decision variable vector, f i (x) represents the i-th optimization objective function, z i * represents the ideal reference value of the i-th objective function, M represents the total number of objective functions, λ=(λ1,λ2,λ3,...,λ M ) represents the weight vector of the objective function, z * =(z1 * ,z2 * ,z3 * ,...,z * M ) represents the ideal reference point vector.
7. The method for constructing approximate triple modular redundancy based on a decomposition-based multi-objective evolutionary algorithm as claimed in claim 3, characterized in that: The execution of the tramhold calibration algorithm comprises the following steps: According to the error rate of invalid individuals, they are divided into multiple levels, and the higher the error rate, the higher the level; Within the same error rate level, adjust each gate circuit: If the gate circuit has a high error rate contribution and is an over-approximation circuit, replace it with an approximate gate with a smaller area overhead. If no replaceable approximate gate can be found, the gate circuit is restored to the original gate; If the gate circuit has a high error rate contribution and is an under-approximated circuit, replace it with the original gate or an approximate gate with a smaller area overhead; After completing the door-level adjustment within the same level, For high error levels, if the error shielding requirement cannot be met, some individuals are selected from low error levels and the error rate compensation is obtained by increasing their area overhead; Repeat the above steps to iteratively adjust the gate-level information of individuals of different levels.
8. A method for constructing an approximate triple modular redundancy system based on a decomposition-based multi-objective evolutionary algorithm, based on a method for constructing an approximate triple modular redundancy system based on a decomposition-based multi-objective evolutionary algorithm according to any one of claims 1 to 7, characterized in that: Also includes, A chromosome code generation module is used to analyze the netlist of the original circuit and generate a double chromosome code of the original circuit containing gate information; The mutation module is used to perform mutation operations on the approximate design replacement code Approx in the double chromosome code of the original circuit to generate an initial generation population; The evaluation and update module is used to perform genotype evaluation and update processes on each individual in the initial population to generate valid individuals that meet the approximate triple modulus redundancy conditions; The sorting module is used to evaluate and sort the valid individuals according to the area cost and error rate, and select the excellent individuals as the parents; The crossover recombination module is used to perform crossover recombination on the under-approximated circuit chromosomes and over-approximated circuit chromosomes of the parent individuals to generate a new generation of population candidate solutions; Decomposition evolution module, used to carry out multi-objective evolution based on Chebyshev decomposition strategy, repeating genotype evaluation and updating, individual selection and crossover recombination operations until the preset stop condition is met; The optimal solution module is used to output the Pareto optimal solution set from the final evolved population as an approximate triple-module redundant circuit solution set that meets the reliability and redundancy requirements.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of constructing an approximate triple modular redundancy method based on a decomposition-based multi-objective evolutionary algorithm as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of constructing an approximate triple modular redundancy method based on a decomposition-based multi-objective evolutionary algorithm as described in any one of claims 1 to 7 are implemented.
