CN105306075A - Best polarity search method for power consumption of three-value FPRM circuit - Google Patents

Best polarity search method for power consumption of three-value FPRM circuit Download PDF

Info

Publication number
CN105306075A
CN105306075A CN201510532191.0A CN201510532191A CN105306075A CN 105306075 A CN105306075 A CN 105306075A CN 201510532191 A CN201510532191 A CN 201510532191A CN 105306075 A CN105306075 A CN 105306075A
Authority
CN
China
Prior art keywords
input
modulo
power consumption
gate
fitness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510532191.0A
Other languages
Chinese (zh)
Other versions
CN105306075B (en
Inventor
厉康平
汪鹏君
张会红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ningbo University
Original Assignee
Ningbo University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ningbo University filed Critical Ningbo University
Priority to CN201510532191.0A priority Critical patent/CN105306075B/en
Publication of CN105306075A publication Critical patent/CN105306075A/en
Application granted granted Critical
Publication of CN105306075B publication Critical patent/CN105306075B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Logic Circuits (AREA)

Abstract

The invention discloses a best polarity search method for power consumption of a three-value FPRM circuit. The best polarity search method comprises the following steps: at first, expressing a three-value FPRM circuit by use of the three-value FPRM logic function under p polarity, decomposing multi-input operation contained in the three-value FPRM logic function to obtain multiple two-input module 3 addition doors and multiple two-input module 3 multiplication doors under the p polarity, using power consumption generated by the two-input module 3 addition doors and the two-input module 3 multiplication doors as the power consumption of the three-value FPRM circuit under the p polarity, establishing a power consumption estimation model of the three-value FPRM circuit, and finally, using a genetic simulated annealing algorithm to carry out best polarity search on the power consumption of the three-value FPRM circuit to optimize the power consumption of the three-value FPRM circuit. The best polarity search method has the advantages of achieving the best polarity search of the power consumption of the three-value FPRM circuit to optimize the power consumption of the three-value FPRM circuit; 13 MCNC Benchmark circuits are randomly adopted to carry out simulation verification, compared with 0 polarity, in the best polarity of the power consumption searched by the best polarity search method disclosed by the invention, the number of the module 3 addition doors is saved for 57.6% on average, the number of the two-input module 3 multiplication doors is saved for 46.25% on average, and the power consumption is saved for 73.98%.

Description

Method for searching power consumption optimal polarity of three-value FPRM circuit
Technical Field
The invention relates to a power consumption optimization method for a three-value FPRM circuit, in particular to a power consumption optimal polarity search method for the three-value FPRM circuit.
Background
With the continuous development of the scale and integration of integrated circuits, digital circuits must suffer from problems of power consumption, area, speed, etc. Most of traditional digital circuits adopt binary logic, but the low information content of binary signals becomes a main factor restricting the development of integrated circuits. The multi-value logic circuit increases the information carrying capacity of a single wire, can effectively improve the utilization rate of space or time, reduces the connecting wires of a digital system, and saves the circuit area and the cost. The three-valued logic with the base number of 3 has the smallest base number in a multi-valued logic algebraic system, is easy to realize and is representative.
Any logic function can be represented by Boolean logic and Reed-Muller (RM) logic, and compared with the traditional Boolean logic circuit, the RM logic-based circuit has the following advantages in three aspects: first, among some functional circuits (e.g., communication circuits, parity check circuits, arithmetic circuits, etc.), circuits represented by RM logic exhibit great advantages in terms of power consumption, area, speed, and the like; secondly, the circuit expressed by RM logic has strong testability; finally, the circuit structure represented by the RM logic is more compact. The RM logic function generally adopts two expressions of Fixed-polarity reed-Muller (FPRM) and Mixed-polarity reed-Muller (MPRM). There are 3 in the three-valued FPRM logical function of the n variablenA fixed polarity, 3nA fixed polarity corresponds to 3nThe simplicity or non-simplicity of the ternary FPRM expression is determined by the corresponding polarity, and the simplicity or non-simplicity of the ternary FPRM expression directly determines performance indexes such as power consumption and area of the ternary FPRM circuit, so that the polarity has great influence on the performance indexes such as power consumption and area of the FPRM circuit.
Due to the many advantages of multivalued logic and RM logic, many experts and scholars at home and abroad have studied multivalued RM logic. However, experts and scholars at home and abroad mainly concentrate on researching the polarity conversion technology of the multi-valued RM logic circuit, and do not research the power consumption optimization technology of the multi-valued RM logic circuit. Therefore, a power consumption optimal polarity searching method of the three-value FPRM circuit is designed based on the simulated annealing genetic algorithm to search the power consumption optimal polarity of the three-value FPRM circuit, and the method has important significance for power consumption optimization of the three-value FPRM circuit.
Disclosure of Invention
The invention aims to provide a method for searching the optimal polarity of the power consumption of a three-value FPRM circuit. The method can quickly search the optimal polarity of the power consumption, thereby realizing the optimization of the power consumption.
The technical scheme adopted by the invention for solving the technical problems is as follows: a power consumption optimal polarity searching method for a three-value FPRM circuit comprises the following steps:
establishing a power consumption estimation model of a three-value FPRM circuit:
phi-1 represents a three-valued FPRM circuit in the form of a three-valued FPRM logic function:
f p ( x n - 1 , x n - 2 , ... , x 0 ) = ⊕ Σ i = 0 3 n - 1 a i * Π j = 0 n - 1 x · j i j - - - ( 1 )
wherein n is a function fp(xn-1,xn-2,…,x0) Number of input variables, xn-1,xn-2,…,x0Representing function fp(xn-1,xn-2,…,x0) N input variables of (a) and p represents a function fp(xn-1,xn-2,…,x0) Of (1), the polarity p being represented in ternary form as pn-1pn-2…p0,pj∈ {0,1,2}, j-0, 1,2, …, n-1, ⊕ denotes a modulo-3 addition, ∑ is the cumulative sign, the sign "×" is the multiplication sign, and the subscript i-0, 1,2, …,3n1, i is represented in ternary form as in-1in-2…i0,aiIs the FPRM coefficient; a isi∈ {0,1,2}, pi represents a modulo-3 multiplication operation,the expansion formula is as follows:wherein ij∈{0,1,2}, x · j = ( x j ⊕ p j ) , x · j 0 = 1 , x · j 1 = x · j , x · j 2 = x · j * x · j , Polarity p and subscript i determine the variablesA representation of (a);
the ternary FPRM logical function under the polarity of-2 p comprises two types of multi-input operations, wherein the two types of multi-input operations are respectively a multi-input modulo-3 addition operation and a multi-input modulo-3 multiplication operation, the ternary FPRM logical function is decomposed into a plurality of multi-input modulo-3 addition operations and a plurality of multi-input modulo-3 multiplication operations according to a ternary FPRM logical function expansion formula, then each multi-input operation is respectively decomposed into a two-input operation, and the two-input modulo-3 addition operation and the two-input modulo-3 multiplication operation are obtained, and the specific decomposition process is as follows:
taking the 1 st input variable and the 2 nd input variable of the multi-input operation as two input variables of the first second input operation to obtain an output variable of the first second input operation; taking the output variable of the first second input operation and the 3 rd input variable of the multiple input operation as two input variables of the second input operation to obtain the output variable of the second input operation; taking the output variable of the second two-input operation and the 4 th input variable of the multiple-input operation as two input variables of the third two-input operation to obtain the output variable of the third two-input operation; repeating the operation steps until all the input variables of the multi-input operation are used as the input variables of the two-input operation, and completing the decomposition of the multi-input operation;
decomposing the three-valued FPRM logic function under the p polarity to obtain a plurality of multi-input modulo-3 addition operations and a plurality of multi-input modulo-3 multiplication operations, wherein the multi-input modulo-3 addition operations are also called multi-input modulo-3 addition gates, the multi-input modulo-3 multiplication operations are also called multi-input modulo-3 multiplication gates, the number of the multi-input modulo-3 addition gates decomposed by the three-valued FPRM logic function under the p polarity is recorded as N, and the number of the multi-input modulo-3 multiplication gates decomposed by the three-valued FPRM logic function under the p polarity is recorded as W; decomposing each multi-input modulo-3 addition operation to obtain a plurality of binary input modulo-3 addition operations, decomposing each multi-input modulo-3 multiplication operation to obtain a plurality of binary input modulo-3 multiplication operations, wherein the binary input modulo-3 addition operation is also called a binary input modulo-3 addition gate, and the binary input modulo-3 multiplication operation is also called a binary input modulo-3 multiplication gate; recording the number of the two input module 3 adding gates after the H-th multiple input module 3 adding gates are decomposed as NHH ═ 1,2, …, N; recording the number of the second input modulo 3 times gate after the o-th multiple input modulo 3 times gate is decomposed as Wo,o=1,2,…,W;
Firstly, power consumption caused by a two-input modulo-3 adding gate and a two-input modulo-3 multiplying gate obtained after a ternary FPRM logic function under the p polarity is decomposed is taken as power consumption of a ternary FPRM circuit under the p polarity, power consumption caused by the two-input modulo-3 adding gate is expressed by the switching activity of the binary input modulo-3 multiplying gate, power consumption caused by the two-input modulo-3 multiplying gate is expressed by the switching activity of the binary input modulo-3 multiplying gate, the switching activity of the gate circuit is expressed by the output variable probability of an output end of the gate circuit, power consumption caused by the two-input modulo-3 adding gate is expressed by the output variable probability of an output end of the gate circuit, and power consumption caused by the two-input modulo-3 multiplying gate is expressed by;
① -4 calculating the output variable probability of the kth second input modulo-3 adding gate after H multiple input modulo-3 adding gate decomposition according to the formulas (2), (3) and (4), wherein k is 1,2, …, NH
P1(k)H=Pky11*Pky20+Pky10*Pky21+Pky12*Pky22(2)
P2(k)H=Pky12*Pky20+Pky11*Pky21+Pky10*Pky22(3)
P0(k)H=1-P1(k)H-P2(k)H(4)
Calculating the output variable probability of the g-th two-input modulo 3 times gate after the o-th multiple-input modulo 3 times gate decomposition according to the formulas (5), (6) and (7), wherein g is 1,2, …, Wo
Q1(g)o=Qgr11*Qgr21+Qgr12*Qgr22(5)
Q2(g)o=Qgr11*Qgr22+Qgr12*Qgr21(6)
Q0(g)o=1-Q1(g)o-Q2(g)o(7)
Wherein,P1(k)Hdenotes the probability that the output variable of the kth second input modulo 3 plus gate after the H multiple input modulo 3 plus gate decomposition is 1, P2(k)HDenotes the probability that the output variable of the kth second input modulo 3 plus gate after the H multiple input modulo 3 plus gate decomposition is 2, P0(k)HDenotes the probability that the k-th two-input modulo-3-add-gate output variable after the H-th multiple-input modulo-3-add-gate decomposition is 0, y1 and y2 denote the two input variables of the two-input modulo-3-add-gate, Pky1mRepresents the probability that the input variable y1 is m in the kth two-input modulo 3 adder, m ∈ {0,1,2}, Pky2mDenotes the probability that the input variable y2 is m in the k-th two-input modulo-3 adder gate, and when k is 1, Pk isy1mProbability of m being the 1 st input variable for multiple-input modulo-3 addition, Pky2mProbability of m being the 2 nd input variable for multiple input modulo 3 addition, when k>1 time, Pky1mFor the k-1 th two-input modulo-3 plus-gate output variable, the probability of m, Pky2mProbability that the (k + 1) th input variable of the add gate for multiple input modulo 3 is m;
Q1(g)odenotes the probability that the output variable of the g-th second input modulo 3 by gate after the o-th multiple input modulo 3 by gate decomposition is 1, Q2(g)oDenotes the probability that the output variable of the g-th second input modulo 3 by gate after the o-th multiple input modulo 3 by gate decomposition is 2, Q0(g)oDenotes the probability that the output variable of the g-th multi-input modulo 3 gate after the o-th multi-input modulo 3 gate decomposition is 0, r1 and r2 denote the two input variables of the two-input modulo 3 gate, Qgr1mRepresents the probability that the input variable r1 is m in the g-th two-input modulo 3 multiplication gate, Qgr2mRepresents the probability that the g-th two-input modulo 3 multiplied by the input variable r2 in the gate is m; when g is 1, Qgr1mProbability of the 1 st input variable being m, Qg, for a multiple-input modulo-3 multiplicationr2mProbability of m being the 2 nd input variable of the multiple input modulo 3 multiplication, when g>At 1 hour, Qgr1mFor the g-1 st probability that the two-input modulo 3 is the output variable of m, Qgr2mThe probability that the g +1 th input variable of the multiple input modulo 3 by gate is m;
input variable xjThe probabilities of 1 and 2 are determined byProbability pairs generated by random functions (P1, P2), P0 is 1-P1-P2; p0, P1 and P2 are each a value between 0 and 1, P0 denotes the probability that the input variable is 0, P1 denotes the probability that the input variable is 1, and P2 denotes the probability that the input variable is 2;
firstly, calculating the power consumption of the three-value FPRM circuit according to the output variable probability of the two-input modulo 3 addition gate and the output variable probability of the two-input modulo 3 multiplication gate, and expressing a power consumption estimation model of the three-value FPRM circuit as follows:
E s w d = 2 ( Σ H = 1 N ( Σ k = 1 N H ( P 1 ( k ) H + P 2 ( k ) H ) ) + Σ o = 1 W ( Σ g = 1 W o ( Q 1 ( g ) o + Q 2 ( g ) o ) ) ) - - - ( 8 )
wherein E isswdThe power consumption of the three-value FPRM circuit under the p polarity is represented, N is the number of the multi-input modulo-3 addition gates after the three-value FPRM logic function under the p polarity is decomposed, and W is the number of the multi-input modulo-3 addition gates after the three-value FPRM logic function under the p polarity is decomposed;
setting a fitness function for calculating individual fitness in the simulated annealing genetic algorithm:
according to the power consumption estimation model, a fitness function for calculating individual fitness in the simulated annealing genetic algorithm is set: in the simulated annealing genetic algorithm, the higher the fitness is, the stronger the adaptability of an individual is, but the optimal polarity of power consumption requires the lower the power consumption is, the better the fitness is, so that in order to facilitate the combination of the two, the inverse of the power consumption is adopted to represent the fitness, and the fitness function is obtained as follows:
fitness=α/Eswd
wherein, the symbol "/" represents a division operation symbol, and the fitness represents the fitness of an individual; eswdα is an amplification factor, and the value is a natural number which is greater than or equal to 1000;
establishing a corresponding relation between a three-value FPRM circuit and a simulated annealing genetic algorithm:
the simulated annealing genetic algorithm comprises the following key elements: individual, individual fitness, individual with the maximum fitness, cross operation, mutation operation and annealing selection operation;
the power consumption optimization of the three-value FPRM circuit comprises the following key elements: polarity, power consumption of corresponding polarity, optimal polarity, minimum power consumption, polarity exchange, polarity mutation and polarity conversion;
mapping the individuals to a three-valued FPRM circuit power consumption optimization, expressed as polarity; mapping the fitness of the individual to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as the power consumption of corresponding polarity; mapping the individual with the maximum fitness to a three-value FPRM circuit for power consumption optimization, and expressing the power consumption optimization as the optimal polarity; mapping the maximum fitness to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as the minimum power consumption; mapping the crossover operation to a three-valued FPRM circuit power consumption optimization, expressed as polarity interchange; mapping the variant operation to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as polarity mutation; mapping the annealing selection operation to a three-valued FPRM circuit power consumption optimization, expressed as a polarity inversion;
setting relevant parameters of the simulated annealing genetic algorithm:
the simulated annealing genetic algorithm needs to set 4 parameters: individual size w, individual number of iterationsz, gene mutation probability q, onset temperature T0(ii) a Let the individual scale w be 50, the individual iteration number z be 20, the gene mutation probability q be 0.01, and the starting temperature T0=100℃;
Obtaining the maximum fitness individual and the maximum fitness by adopting a simulated annealing genetic algorithm, wherein the maximum fitness individual is the power consumption optimal polarity of the three-value FPRM circuit; the maximum fitness is the minimum power consumption of the three-value FPRM circuit.
The specific process of obtaining the individual with the maximum fitness and the maximum fitness by adopting the simulated annealing genetic algorithm in the fifth step is as follows:
fifthly, -1, generating w individuals represented by an n-bit ternary system by using a random function rand (), and respectively marking the w individuals as P1, P2, … and Pw;
fifthly-2, calculating the fitness of the v individual Pv through a fitness function, wherein v is 1,2, 3, …, w, and obtaining the fitness of individuals P1, P2, … and Pw;
fifthly-3, comparing the fitness of individuals P1, P2, … and Pw, screening the individual with the maximum fitness as the individual with the maximum fitness, and recording the individual with the maximum fitness and the maximum fitness;
fifthly-4, the individuals P1, P2, … and Pw are subjected to cross operation to generate the individuals F1, F2, … and Fw: if w is an even number, performing crossing operation on P1 and P2, P3 and P4, …, and Pw-1 and Pw in pairs respectively; if w is an odd number, carrying out cross operation on P1 and P2, P3 and P4, …, Pw-2 and Pw-1 in pairs respectively, wherein Pw does not participate in the cross operation, and Fw directly inherits Pw; performing cross operation on two individuals Pe and Pu to generate individuals Fe and Fu, wherein the specific process comprises the following steps: assigning Pe to fe and Pu to fu, randomly generating an n-bit binary code, marking the n-bit binary code as A, updating fe and fu according to the binary code A, and keeping the h bit of fe and fu unchanged when the h bit of the binary code A is 1; when the h bit of the binary code a is 0, the h bit of Fe inherits the h bit of Fu, the h bit of Fu inherits the h bit of Fe, h is 1,2, 3, …, n, Fe after the completion of the crossover operation is recorded as Fe, and Fu after the completion of the crossover operation is recorded as Fu; wherein u is e +1, when w is an even number, e is 1, 3, 5, …, w-1; u-2, 4, 6, …, w; when w is an odd number, e is 1, 3, 5, …, w-2; u-2, 4, 6, …, w-1;
fifthly, calculating the fitness of the v individual Fv through a fitness function to obtain the fitness of the individuals F1, F2, … and Fw;
fifthly-6, comparing the fitness of the individuals F1, F2, … and Fw with the fitness of the individual with the maximum fitness at present, and updating the individual with the maximum fitness and the maximum fitness;
7, carrying out mutation operation on individuals F1, F2, … and Fw: generating a value between 0 and 1 for each bit of the Fv by using a random function rand (), if the value is less than the gene mutation probability q, the bit corresponding to the value is the mutation bit of the Fv, and the mutation bit of the Fv is mutated, wherein the mutation rule is '0 → 1, 1 → 2, 2 → 0';
fifthly-8, treating the individuals F1, F2, … and Fw according to the steps of fifthly-5 to fifthly-6 to obtain the updated individuals with the maximum fitness and the maximum fitness;
fifthly-9, sorting individuals P1, P2, … and Pw according to the size of the fitness value, and sorting individuals F1, F2, … and Fw according to the size of the fitness value; selecting 2w/3 individuals with optimal fitness values from individuals P1, P2, … and Pw and individuals F1, F2, … and Fw respectively to form a new group of individuals, wherein the new individuals comprise 4w/3 individuals;
-10 multiple rounds of annealing selection on a new group of individuals: in each round of annealing selection, firstly generating an annealing temperature according to a formula (9), sequentially calculating the selection probability P (c) of each individual according to a formula (10) for the annealing temperature, and simultaneously generating a screening probability t by using a random function rand (), wherein 0< t < 1; when the individual selection probability is greater than the screening probability, the individual is selected in the round of annealing selection, the selected individual does not participate in the next round of annealing selection, other unselected individuals enter the next round of annealing selection, and the annealing selection is finished until w individual updating individuals P1, P2, … and Pw are screened;
Tl=1/ln(l/T0+1)(9)
P ( c ) = e f ( c ) / T l / &Sigma; d = 0 4 w / 3 e f ( d ) / T l - - - ( 10 )
wherein, TlDenotes the annealing temperature of the first round, l ═ 1,2, …; when the first round of annealing selection is carried out, l is 1, when the second round of annealing selection is carried out, l is 2, and the rest can be analogized; ln represents a logarithmic operation; t is0Represents the initial temperature; p (c) represents the probability of the individual c; (f) (c) indicates the fitness value of the c-th individual of the new individuals; c is 1,2, 3, …, 4 w/3; (d) indicates the fitness value of the d-th individual of the new individuals; d is 1,2, 3, …, 4 w/3;
fifthly-11, processing the individuals P1, P2, … and Pw updated in the step fifthly-10 according to the step fifthly-2 to the step fifthly-3 to obtain the individual with the maximum fitness and the maximum fitness;
fifthly-12, repeating the steps of fifthly-4 to fifthly-11 until the individual iteration times z are met, and finishing the algorithm to obtain the individual with the maximum fitness and the maximum fitness;
fifthly-13, outputting the maximum fitness individual and the maximum fitness obtained in the last time, wherein the maximum fitness individual is the optimal polarity of the three-value FPRM circuit; the maximum fitness is the minimum power consumption of the three-value FPRM circuit.
Compared with the prior art, the method has the advantages that the ternary FPRM circuit is represented by a ternary FPRM logic function under the p polarity, then three-input operation contained in the ternary FPRM logic function is decomposed to obtain a plurality of two-input modulo-3 addition gates and a plurality of two-input modulo-3 multiplication gates under the p polarity, power consumption caused by the two-input modulo-3 addition gates and the two-input modulo-3 multiplication gates is used as power consumption of the ternary FPRM circuit under the p polarity, a power consumption estimation model of the ternary FPRM circuit is constructed, and finally, the power consumption optimal polarity search is carried out on the ternary FPRM circuit by adopting a simulated annealing genetic algorithm to obtain the power consumption optimal polarity search and the minimum power consumption; the method realizes the power consumption optimal polarity search of the ternary FPRM circuit by combining the established power consumption estimation model of the ternary FPRM circuit with the simulated annealing genetic algorithm, thereby realizing the power consumption optimization of the ternary FPRM circuit; the simulation verification is carried out by randomly adopting 13 MCNCBenchmark circuits, the power consumption optimal polarity searched by the method is compared with 0 polarity, the average saving of the modulo 3 plus gate number is 57.64%, the average saving of the modulo 3 plus gate number is 46.25%, and the average saving of the power consumption is 73.98%.
Detailed Description
The present invention will be described in further detail with reference to examples.
The first embodiment is as follows: a power consumption optimal polarity searching method for a three-value FPRM circuit comprises the following steps:
establishing a power consumption estimation model of a three-value FPRM circuit:
phi-1 represents a three-valued FPRM circuit in the form of a three-valued FPRM logic function:
f p ( x n - 1 , x n - 2 , ... , x 0 ) = &CirclePlus; &Sigma; i = 0 3 n - 1 a i * &Pi; j = 0 n - 1 x &CenterDot; j i j - - - ( 1 )
wherein n is a function fp(xn-1,xn-2,…,x0) Number of input variables, xn-1,xn-2,…,x0Representing function fp(xn-1,xn-2,…,x0) N input variables of (a) and p represents a function fp(xn-1,xn-2,…,x0) Of (1), the polarity p being represented in ternary form as pn-1pn-2…p0,pj∈ {0,1,2}, j-0, 1,2, …, n-1, ⊕ denotes a modulo-3 addition, ∑ is the cumulative sign, the sign "×" is the multiplication sign, and the subscript i-0, 1,2, …,3n1, i is represented in ternary form as in-1in-2…i0,aiIs the FPRM coefficient; a isi∈ {0,1,2}, pi represents a modulo-3 multiplication operation,the expansion formula is as follows:wherein ij∈{0,1,2}, x &CenterDot; j = ( x j &CirclePlus; p j ) , x &CenterDot; j 0 = 1 , x &CenterDot; j 1 = x &CenterDot; j , x &CenterDot; j 2 = x &CenterDot; j * x &CenterDot; j , Polarity p and subscript i determine the variablesA representation of (a);
the ternary FPRM logical function under the polarity of-2 p comprises two types of multi-input operations, wherein the two types of multi-input operations are respectively a multi-input modulo-3 addition operation and a multi-input modulo-3 multiplication operation, the ternary FPRM logical function is decomposed into a plurality of multi-input modulo-3 addition operations and a plurality of multi-input modulo-3 multiplication operations according to a ternary FPRM logical function expansion formula, then each multi-input operation is respectively decomposed into a two-input operation, and the two-input modulo-3 addition operation and the two-input modulo-3 multiplication operation are obtained, and the specific decomposition process is as follows:
taking the 1 st input variable and the 2 nd input variable of the multi-input operation as two input variables of the first second input operation to obtain an output variable of the first second input operation; taking the output variable of the first second input operation and the 3 rd input variable of the multiple input operation as two input variables of the second input operation to obtain the output variable of the second input operation; taking the output variable of the second two-input operation and the 4 th input variable of the multiple-input operation as two input variables of the third two-input operation to obtain the output variable of the third two-input operation; repeating the operation steps until all the input variables of the multi-input operation are used as the input variables of the two-input operation, and completing the decomposition of the multi-input operation;
decomposing the three-valued FPRM logic function under the p polarity to obtain a plurality of multi-input modulo-3 addition operations and a plurality of multi-input modulo-3 multiplication operations, wherein the multi-input modulo-3 addition operations are also called multi-input modulo-3 addition gates, the multi-input modulo-3 multiplication operations are also called multi-input modulo-3 multiplication gates, the number of the multi-input modulo-3 addition gates decomposed by the three-valued FPRM logic function under the p polarity is recorded as N, and the number of the multi-input modulo-3 multiplication gates decomposed by the three-valued FPRM logic function under the p polarity is recorded as W; decomposing each multi-input modulo-3 addition operation to obtain a plurality of binary input modulo-3 addition operations, decomposing each multi-input modulo-3 multiplication operation to obtain a plurality of binary input modulo-3 multiplication operations, wherein the binary input modulo-3 addition operation is also called a binary input modulo-3 addition gate, and the binary input modulo-3 multiplication operation is also called a binary input modulo-3 multiplication gate; recording the number of the two input module 3 adding gates after the H-th multiple input module 3 adding gates are decomposed as NHH ═ 1,2, …, N; recording the number of the second input modulo 3 times gate after the o-th multiple input modulo 3 times gate is decomposed as Wo,o=1,2,…,W;
Firstly, power consumption caused by a two-input modulo-3 adding gate and a two-input modulo-3 multiplying gate obtained after a ternary FPRM logic function under the p polarity is decomposed is taken as power consumption of a ternary FPRM circuit under the p polarity, power consumption caused by the two-input modulo-3 adding gate is expressed by the switching activity of the binary input modulo-3 multiplying gate, power consumption caused by the two-input modulo-3 multiplying gate is expressed by the switching activity of the binary input modulo-3 multiplying gate, the switching activity of the gate circuit is expressed by the output variable probability of an output end of the gate circuit, power consumption caused by the two-input modulo-3 adding gate is expressed by the output variable probability of an output end of the gate circuit, and power consumption caused by the two-input modulo-3 multiplying gate is expressed by;
① -4 calculating the output variable probability of the kth second input modulo-3 adding gate after H multiple input modulo-3 adding gate decomposition according to the formulas (2), (3) and (4), wherein k is 1,2, …, NH
P1(k)H=Pky11*Pky20+Pky10*Pky21+Pky12*Pky22(2)
P2(k)H=Pky12*Pky20+Pky11*Pky21+Pky10*Pky22(3)
P0(k)H=1-P1(k)H-P2(k)H(4)
Calculating the output variable probability of the g-th two-input modulo 3 times gate after the o-th multiple-input modulo 3 times gate decomposition according to the formulas (5), (6) and (7), wherein g is 1,2, …, Wo
Q1(g)o=Qgr11*Qgr21+Qgr12*Qgr22(5)
Q2(g)o=Qgr11*Qgr22+Qgr12*Qgr21(6)
Q0(g)o=1-Q1(g)o-Q2(g)o(7)
Wherein, P1(k)HDenotes the probability that the output variable of the kth second input modulo 3 plus gate after the H multiple input modulo 3 plus gate decomposition is 1, P2(k)HDenotes the probability that the output variable of the kth second input modulo 3 plus gate after the H multiple input modulo 3 plus gate decomposition is 2, P0(k)HDenotes the probability that the k-th two-input modulo-3-add-gate output variable after the H-th multiple-input modulo-3-add-gate decomposition is 0, y1 and y2 denote the two input variables of the two-input modulo-3-add-gate, Pky1mRepresents the probability that the input variable y1 is m in the kth two-input modulo 3 adder, m ∈ {0,1,2}, Pky2mDenotes the probability that the input variable y2 is m in the k-th two-input modulo-3 adder gate, and when k is 1, Pk isy1mProbability of m being the 1 st input variable for multiple-input modulo-3 addition, Pky2mProbability of m being the 2 nd input variable for multiple input modulo 3 addition, when k>1 time, Pky1mFor the k-1 th two-input modulo-3 plus-gate output variable, the probability of m, Pky2mIs a plurality ofThe probability that the (k + 1) th input variable of the input modulo-3 plus gate is m;
Q1(g)odenotes the probability that the output variable of the g-th second input modulo 3 by gate after the o-th multiple input modulo 3 by gate decomposition is 1, Q2(g)oDenotes the probability that the output variable of the g-th second input modulo 3 by gate after the o-th multiple input modulo 3 by gate decomposition is 2, Q0(g)oDenotes the probability that the output variable of the g-th multi-input modulo 3 gate after the o-th multi-input modulo 3 gate decomposition is 0, r1 and r2 denote the two input variables of the two-input modulo 3 gate, Qgr1mRepresents the probability that the input variable r1 is m in the g-th two-input modulo 3 multiplication gate, Qgr2mRepresents the probability that the g-th two-input modulo 3 multiplied by the input variable r2 in the gate is m; when g is 1, Qgr1mProbability of the 1 st input variable being m, Qg, for a multiple-input modulo-3 multiplicationr2mProbability of m being the 2 nd input variable of the multiple input modulo 3 multiplication, when g>At 1 hour, Qgr1mFor the g-1 st probability that the two-input modulo 3 is the output variable of m, Qgr2mThe probability that the g +1 th input variable of the multiple input modulo 3 by gate is m;
input variable xjThe probabilities of 1 and 2 are the pairs of probabilities generated by random functions (P1, P2), P0 ═ 1-P1-P2; p0, P1 and P2 are each a value between 0 and 1, P0 denotes the probability that the input variable is 0, P1 denotes the probability that the input variable is 1, and P2 denotes the probability that the input variable is 2;
firstly, calculating the power consumption of the three-value FPRM circuit according to the output variable probability of the two-input modulo 3 addition gate and the output variable probability of the two-input modulo 3 multiplication gate, and expressing a power consumption estimation model of the three-value FPRM circuit as follows:
E s w d = 2 ( &Sigma; H = 1 N ( &Sigma; k = 1 N H ( P 1 ( k ) H + P 2 ( k ) H ) ) + &Sigma; o = 1 W ( &Sigma; g = 1 W o ( Q 1 ( g ) o + Q 2 ( g ) o ) ) ) - - - ( 8 )
wherein E isswdThe power consumption of the three-value FPRM circuit under the p polarity is represented, N is the number of the multi-input modulo-3 addition gates after the three-value FPRM logic function under the p polarity is decomposed, and W is the number of the multi-input modulo-3 addition gates after the three-value FPRM logic function under the p polarity is decomposed;
setting a fitness function for calculating individual fitness in the simulated annealing genetic algorithm:
according to the power consumption estimation model, a fitness function for calculating individual fitness in the simulated annealing genetic algorithm is set: in the simulated annealing genetic algorithm, the higher the fitness is, the stronger the adaptability of an individual is, but the optimal polarity of power consumption requires the lower the power consumption is, the better the fitness is, so that in order to facilitate the combination of the two, the inverse of the power consumption is adopted to represent the fitness, and the fitness function is obtained as follows:
fitness=α/Eswd
wherein, the symbol "/" represents a division operation symbol, and the fitness represents the fitness of an individual; eswdα is an amplification factor, and the value is a natural number which is greater than or equal to 1000;
establishing a corresponding relation between a three-value FPRM circuit and a simulated annealing genetic algorithm:
the simulated annealing genetic algorithm comprises the following key elements: individual, individual fitness, individual with the maximum fitness, cross operation, mutation operation and annealing selection operation;
the power consumption optimization of the three-value FPRM circuit comprises the following key elements: polarity, power consumption of corresponding polarity, optimal polarity, minimum power consumption, polarity exchange, polarity mutation and polarity conversion;
mapping the individuals to a three-valued FPRM circuit power consumption optimization, expressed as polarity; mapping the fitness of the individual to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as the power consumption of corresponding polarity; mapping the individual with the maximum fitness to a three-value FPRM circuit for power consumption optimization, and expressing the power consumption optimization as the optimal polarity; mapping the maximum fitness to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as the minimum power consumption; mapping the crossover operation to a three-valued FPRM circuit power consumption optimization, expressed as polarity interchange; mapping the variant operation to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as polarity mutation; mapping the annealing selection operation to a three-valued FPRM circuit power consumption optimization, expressed as a polarity inversion;
setting relevant parameters of the simulated annealing genetic algorithm:
the simulated annealing genetic algorithm needs to set 4 parameters: individual scale w, individual iteration number z, gene mutation probability q, and initial temperature T0(ii) a Let the individual scale w be 50, the individual iteration number z be 20, the gene mutation probability q be 0.01, and the starting temperature T0=100℃;
Obtaining the maximum fitness individual and the maximum fitness by adopting a simulated annealing genetic algorithm, wherein the maximum fitness individual is the power consumption optimal polarity of the three-value FPRM circuit; the maximum fitness is the minimum power consumption of the three-value FPRM circuit.
In this embodiment, the simulated annealing genetic algorithm is a mature algorithm in the prior art.
Example two: a power consumption optimal polarity searching method for a three-value FPRM circuit comprises the following steps:
establishing a power consumption estimation model of a three-value FPRM circuit:
phi-1 represents a three-valued FPRM circuit in the form of a three-valued FPRM logic function:
f p ( x n - 1 , x n - 2 , ... , x 0 ) = &CirclePlus; &Sigma; i = 0 3 n - 1 a i * &Pi; j = 0 n - 1 x &CenterDot; j i j - - - ( 1 )
wherein n is a function fp(xn-1,xn-2,…,x0) Number of input variables, xn-1,xn-2,…,x0Representing function fp(xn-1,xn-2,…,x0) The number of n input variables of (a),p represents a function fp(xn-1,xn-2,…,x0) Of (1), the polarity p being represented in ternary form as pn-1pn-2…p0,pj∈ {0,1,2}, j-0, 1,2, …, n-1, ⊕ denotes a modulo-3 addition, ∑ is the cumulative sign, the sign "×" is the multiplication sign, and the subscript i-0, 1,2, …,3n1, i is represented in ternary form as in-1in-2…i0,aiIs the FPRM coefficient; a isi∈ {0,1,2}, pi represents a modulo-3 multiplication operation,the expansion formula is as follows:wherein ij∈{0,1,2}, x &CenterDot; j = ( x j &CirclePlus; p j ) , x &CenterDot; j 0 = 1 , x &CenterDot; j 1 = x &CenterDot; j , x &CenterDot; j 2 = x &CenterDot; j * x &CenterDot; j , Polarity p and subscript i determine the variablesA representation of (a);
the ternary FPRM logical function under the polarity of-2 p comprises two types of multi-input operations, wherein the two types of multi-input operations are respectively a multi-input modulo-3 addition operation and a multi-input modulo-3 multiplication operation, the ternary FPRM logical function is decomposed into a plurality of multi-input modulo-3 addition operations and a plurality of multi-input modulo-3 multiplication operations according to a ternary FPRM logical function expansion formula, then each multi-input operation is respectively decomposed into a two-input operation, and the two-input modulo-3 addition operation and the two-input modulo-3 multiplication operation are obtained, and the specific decomposition process is as follows:
taking the 1 st input variable and the 2 nd input variable of the multi-input operation as two input variables of the first second input operation to obtain an output variable of the first second input operation; taking the output variable of the first second input operation and the 3 rd input variable of the multiple input operation as two input variables of the second input operation to obtain the output variable of the second input operation; taking the output variable of the second two-input operation and the 4 th input variable of the multiple-input operation as two input variables of the third two-input operation to obtain the output variable of the third two-input operation; repeating the operation steps until all the input variables of the multi-input operation are used as the input variables of the two-input operation, and completing the decomposition of the multi-input operation;
decomposing the three-valued FPRM logic function under the p polarity to obtain a plurality of multi-input modulo-3 addition operations and a plurality of multi-input modulo-3 multiplication operations, wherein the multi-input modulo-3 addition operations are also called multi-input modulo-3 addition gates, the multi-input modulo-3 multiplication operations are also called multi-input modulo-3 multiplication gates, the number of the multi-input modulo-3 addition gates decomposed by the three-valued FPRM logic function under the p polarity is recorded as N, and the number of the multi-input modulo-3 multiplication gates decomposed by the three-valued FPRM logic function under the p polarity is recorded as W; decomposing each multi-input modulo-3 addition operation to obtain a plurality of binary input modulo-3 addition operations, decomposing each multi-input modulo-3 multiplication operation to obtain a plurality of binary input modulo-3 multiplication operations, wherein the binary input modulo-3 addition operation is also called a binary input modulo-3 addition gate, and the binary input modulo-3 multiplication operation is also called a binary input modulo-3 multiplication gate; recording the number of the two input module 3 adding gates after the H-th multiple input module 3 adding gates are decomposed as NHH ═ 1,2, …, N; recording the number of the second input modulo 3 times gate after the o-th multiple input modulo 3 times gate is decomposed as Wo,o=1,2,…,W;
Firstly, power consumption caused by a two-input modulo-3 adding gate and a two-input modulo-3 multiplying gate obtained after a ternary FPRM logic function under the p polarity is decomposed is taken as power consumption of a ternary FPRM circuit under the p polarity, power consumption caused by the two-input modulo-3 adding gate is expressed by the switching activity of the binary input modulo-3 multiplying gate, power consumption caused by the two-input modulo-3 multiplying gate is expressed by the switching activity of the binary input modulo-3 multiplying gate, the switching activity of the gate circuit is expressed by the output variable probability of an output end of the gate circuit, power consumption caused by the two-input modulo-3 adding gate is expressed by the output variable probability of an output end of the gate circuit, and power consumption caused by the two-input modulo-3 multiplying gate is expressed by;
① -4 calculating the output variable probability of the kth second input modulo-3 adding gate after H multiple input modulo-3 adding gate decomposition according to the formulas (2), (3) and (4), wherein k is 1,2, …, NH
P1(k)H=Pky11*Pky20+Pky10*Pky21+Pky12*Pky22(2)
P2(k)H=Pky12*Pky20+Pky11*Pky21+Pky10*Pky22(3)
P0(k)H=1-P1(k)H-P2(k)H(4)
Calculating the output variable probability of the g-th two-input modulo 3 times gate after the o-th multiple-input modulo 3 times gate decomposition according to the formulas (5), (6) and (7), wherein g is 1,2, …, Wo
Q1(g)o=Qgr11*Qgr21+Qgr12*Qgr22(5)
Q2(g)o=Qgr11*Qgr22+Qgr12*Qgr21(6)
Q0(g)o=1-Q1(g)o-Q2(g)o(7)
Wherein, P1(k)HDenotes the probability that the output variable of the kth second input modulo 3 plus gate after the H multiple input modulo 3 plus gate decomposition is 1, P2(k)HDenotes the probability that the output variable of the kth second input modulo 3 plus gate after the H multiple input modulo 3 plus gate decomposition is 2, P0(k)HDenotes the probability that the k-th two-input modulo-3-add-gate output variable after the H-th multiple-input modulo-3-add-gate decomposition is 0, y1 and y2 denote the two input variables of the two-input modulo-3-add-gate, Pky1mRepresents the probability that the input variable y1 is m in the kth two-input modulo 3 adder, m ∈ {0,1,2}, Pky2mDenotes the probability that the input variable y2 is m in the k-th two-input modulo-3 adder gate, and when k is 1, Pk isy1mProbability of m being the 1 st input variable for multiple-input modulo-3 addition, Pky2mProbability of m being the 2 nd input variable for multiple input modulo 3 addition, when k>1 time, Pky1mFor the k-1 th two-input modulo 3 plus probability of the output variable being m, Pky2mProbability that the (k + 1) th input variable of the add gate for multiple input modulo 3 is m;
Q1(g)odenotes the probability that the output variable of the g-th second input modulo 3 by gate after the o-th multiple input modulo 3 by gate decomposition is 1, Q2(g)oDenotes the probability that the output variable of the g-th second input modulo 3 by gate after the o-th multiple input modulo 3 by gate decomposition is 2, Q0(g)oDenotes the probability that the output variable of the g-th multi-input modulo 3 gate after the o-th multi-input modulo 3 gate decomposition is 0, r1 and r2 denote the two input variables of the two-input modulo 3 gate, Qgr1mRepresents the probability that the input variable r1 is m in the g-th two-input modulo 3 multiplication gate, Qgr2mRepresents the probability that the g-th two-input modulo 3 multiplied by the input variable r2 in the gate is m; when g is 1, Qgr1mProbability of the 1 st input variable being m, Qg, for a multiple-input modulo-3 multiplicationr2mProbability of m being the 2 nd input variable of the multiple input modulo 3 multiplication, when g>At 1 hour, Qgr1mFor the g-1 st probability that the two-input modulo 3 is the output variable of m, Qgr2mThe probability that the g +1 th input variable of the multiple input modulo 3 by gate is m;
input variable xjThe probabilities of 1 and 2 are the pairs of probabilities generated by random functions (P1, P2), P0 ═ 1-P1-P2; p0, P1 and P2 are each a value between 0 and 1, P0 denotes the probability that the input variable is 0, P1 denotes the probability that the input variable is 1, and P2 denotes the probability that the input variable is 2;
firstly, calculating the power consumption of the three-value FPRM circuit according to the output variable probability of the two-input modulo 3 addition gate and the output variable probability of the two-input modulo 3 multiplication gate, and expressing a power consumption estimation model of the three-value FPRM circuit as follows:
E s w d = 2 ( &Sigma; H = 1 N ( &Sigma; k = 1 N H ( P 1 ( k ) H + P 2 ( k ) H ) ) + &Sigma; o = 1 W ( &Sigma; g = 1 W o ( Q 1 ( g ) o + Q 2 ( g ) o ) ) ) - - - ( 8 )
wherein E isswdThe power consumption of the three-value FPRM circuit under the p polarity is represented, N is the number of the multi-input modulo-3 addition gates after the three-value FPRM logic function under the p polarity is decomposed, and W is the number of the multi-input modulo-3 addition gates after the three-value FPRM logic function under the p polarity is decomposed;
setting a fitness function for calculating individual fitness in the simulated annealing genetic algorithm:
according to the power consumption estimation model, a fitness function for calculating individual fitness in the simulated annealing genetic algorithm is set: in the simulated annealing genetic algorithm, the higher the fitness is, the stronger the adaptability of an individual is, but the optimal polarity of power consumption requires the lower the power consumption is, the better the fitness is, so that in order to facilitate the combination of the two, the inverse of the power consumption is adopted to represent the fitness, and the fitness function is obtained as follows:
fitness=α/Eswd
wherein, the symbol "/" represents a division operation symbol, and the fitness represents the fitness of an individual; eswdα is an amplification factor, and the value is a natural number which is greater than or equal to 1000;
establishing a corresponding relation between a three-value FPRM circuit and a simulated annealing genetic algorithm:
the simulated annealing genetic algorithm comprises the following key elements: individual, individual fitness, individual with the maximum fitness, cross operation, mutation operation and annealing selection operation;
the power consumption optimization of the three-value FPRM circuit comprises the following key elements: polarity, power consumption of corresponding polarity, optimal polarity, minimum power consumption, polarity exchange, polarity mutation and polarity conversion;
mapping the individuals to a three-valued FPRM circuit power consumption optimization, expressed as polarity; mapping the fitness of the individual to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as the power consumption of corresponding polarity; mapping the individual with the maximum fitness to a three-value FPRM circuit for power consumption optimization, and expressing the power consumption optimization as the optimal polarity; mapping the maximum fitness to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as the minimum power consumption; mapping the crossover operation to a three-valued FPRM circuit power consumption optimization, expressed as polarity interchange; mapping the variant operation to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as polarity mutation; mapping the annealing selection operation to a three-valued FPRM circuit power consumption optimization, expressed as a polarity inversion;
setting relevant parameters of the simulated annealing genetic algorithm:
the simulated annealing genetic algorithm needs to set 4 parameters: individual scale w, individual iteration number z, gene mutation probability q, and initial temperature T0(ii) a Let the individual scale w be 50, the individual iteration number z be 20, the gene mutation probability q be 0.01, and the starting temperature T0=100℃;
Obtaining the maximum fitness individual and the maximum fitness by adopting a simulated annealing genetic algorithm, wherein the maximum fitness individual is the power consumption optimal polarity of the three-value FPRM circuit; the maximum fitness is the minimum power consumption of the three-value FPRM circuit.
In this embodiment, the specific process of obtaining the individual with the maximum fitness and the maximum fitness by using the simulated annealing genetic algorithm in the fifth step is as follows:
fifthly, -1, generating w individuals represented by an n-bit ternary system by using a random function rand (), and respectively marking the w individuals as P1, P2, … and Pw;
fifthly-2, calculating the fitness of the v individual Pv through a fitness function, wherein v is 1,2, 3, …, w, and obtaining the fitness of individuals P1, P2, … and Pw;
fifthly-3, comparing the fitness of individuals P1, P2, … and Pw, screening the individual with the maximum fitness as the individual with the maximum fitness, and recording the individual with the maximum fitness and the maximum fitness;
fifthly-4, the individuals P1, P2, … and Pw are subjected to cross operation to generate the individuals F1, F2, … and Fw: if w is an even number, performing crossing operation on P1 and P2, P3 and P4, …, and Pw-1 and Pw in pairs respectively; if w is an odd number, carrying out cross operation on P1 and P2, P3 and P4, …, Pw-2 and Pw-1 in pairs respectively, wherein Pw does not participate in the cross operation, and Fw directly inherits Pw; performing cross operation on two individuals Pe and Pu to generate individuals Fe and Fu, wherein the specific process comprises the following steps: assigning Pe to fe and Pu to fu, randomly generating an n-bit binary code, marking the n-bit binary code as A, updating fe and fu according to the binary code A, and keeping the h bit of fe and fu unchanged when the h bit of the binary code A is 1; when the h bit of the binary code a is 0, the h bit of Fe inherits the h bit of Fu, the h bit of Fu inherits the h bit of Fe, h is 1,2, 3, …, n, Fe after the completion of the crossover operation is recorded as Fe, and Fu after the completion of the crossover operation is recorded as Fu; wherein u is e +1, when w is an even number, e is 1, 3, 5, …, w-1; u-2, 4, 6, …, w; when w is an odd number, e is 1, 3, 5, …, w-2; u-2, 4, 6, …, w-1;
fifthly, calculating the fitness of the v individual Fv through a fitness function to obtain the fitness of the individuals F1, F2, … and Fw;
fifthly-6, comparing the fitness of the individuals F1, F2, … and Fw with the fitness of the individual with the maximum fitness at present, and updating the individual with the maximum fitness and the maximum fitness;
7, carrying out mutation operation on individuals F1, F2, … and Fw: generating a value between 0 and 1 for each bit of the Fv by using a random function rand (), if the value is less than the gene mutation probability q, the bit corresponding to the value is the mutation bit of the Fv, and the mutation bit of the Fv is mutated, wherein the mutation rule is '0 → 1, 1 → 2, 2 → 0';
fifthly-8, treating the individuals F1, F2, … and Fw according to the steps of fifthly-5 to fifthly-6 to obtain the updated individuals with the maximum fitness and the maximum fitness;
fifthly-9, sorting individuals P1, P2, … and Pw according to the size of the fitness value, and sorting individuals F1, F2, … and Fw according to the size of the fitness value; selecting 2w/3 individuals with optimal fitness values from individuals P1, P2, … and Pw and individuals F1, F2, … and Fw respectively to form a new group of individuals, wherein the new individuals comprise 4w/3 individuals;
-10 multiple rounds of annealing selection on a new group of individuals: in each round of annealing selection, firstly generating an annealing temperature according to a formula (9), sequentially calculating the selection probability P (c) of each individual according to a formula (10) for the annealing temperature, and simultaneously generating a screening probability t by using a random function rand (), wherein 0< t < 1; when the individual selection probability is greater than the screening probability, the individual is selected in the round of annealing selection, the selected individual does not participate in the next round of annealing selection, other unselected individuals enter the next round of annealing selection, and the annealing selection is finished until w individual updating individuals P1, P2, … and Pw are screened;
Tl=1/ln(l/T0+1)(9)
P ( c ) = e f ( c ) / T l / &Sigma; d = 0 4 w / 3 e f ( d ) / T l - - - ( 10 )
wherein, TlDenotes the annealing temperature of the first round, l ═ 1,2, …; when the first round of annealing selection is carried out, l is 1, when the second round of annealing selection is carried out, l is 2, and the rest can be analogized; ln represents a logarithmic operation; t is0Represents the initial temperature; p (c) represents the probability of the individual c; (f) (c) indicates the fitness value of the c-th individual of the new individuals; c is 1,2, 3, …, 4 w/3; (d) indicates the fitness value of the d-th individual of the new individuals; d is 1,2, 3, …, 4 w/3;
fifthly-11, processing the individuals P1, P2, … and Pw updated in the step fifthly-10 according to the step fifthly-2 to the step fifthly-3 to obtain the individual with the maximum fitness and the maximum fitness;
fifthly-12, repeating the steps of fifthly-4 to fifthly-11 until the individual iteration times z are met, and finishing the algorithm to obtain the individual with the maximum fitness and the maximum fitness;
fifthly-13, outputting the maximum fitness individual and the maximum fitness obtained in the last time, wherein the maximum fitness individual is the optimal polarity of the three-value FPRM circuit; the maximum fitness is the minimum power consumption of the three-value FPRM circuit.
The method for searching the optimal power consumption polarity is realized by C language through VC6.0 compiling under the operating environment of a Windows764 bit operating system, Intel (R) core (TM) i3-2130CPU3.40GHZ and 4GRAM, and randomly adopts 13 MCNCBenchmark circuits for simulation verification to compare the optimal power consumption polarity searched by the method with the 0 polarity. To calculate the switching activity of a ternary FPRM circuit, 15 sets of input signal probabilities were randomly generated: (P1, P2) { (0.21,0.53), (0.49,0.30), (0.33,0.24), (0.68,0.13), (0.15,0.26), (0.57,0.22), (0.18,0.51), (0.71,0.24), (0.08,0.35), (0.57,0.32), (0.46,0.28), (0.17,0.05), (0.32,0.43), (0.14,0.72), (0.25,0.61) }.
The results of the optimal polarity search using the power consumption optimal polarity search method of the present invention are shown in table 1. In the table, a column 1 indicates a circuit name, and a column 2 indicates the number of input/output variables; the row 3, the row 4 and the row 5 respectively represent the number of gates added by the second input module 3 under the polarity of 0, the number of gates multiplied by the second input module 3 and the power consumption of the circuit in sequence; the column 6, the column 7, the column 8 and the column 9 respectively show the second input modulo 3 plus gate number, the second input modulo 3 multiplying gate number and the power consumption of the three-valued FPRM circuit under the optimum polarity and the optimum polarity searched by the method of the invention.
TABLE 1 ternary FPRM circuits optimal polarity search results
The optimal polarity is shown in table 2 as the percentage savings in modulo 3 plus gate number, modulo 3 times gate number, and power consumption compared to 0 polarity. The number of gates modulo 3 plus, the number of gates modulo 3 times, and the percentage of power savings are defined as follows:
Save M o d 3 - A % = M o d 3 - A 0 - M o d 3 - A S A G A M o d 3 - A 0 &times; 100 % - - - ( 11 )
Save M o d 3 - M % = M o d 3 - M 0 - M o d 3 - M S A G A M o d 3 - M 0 &times; 100 % - - - ( 12 )
Save P o w e r % = Power 0 - Power S A G A Power 0 &times; 100 % - - - ( 13 )
wherein, SaveMod3-A、SaveMod3-MAnd SavePowerSequentially and respectively representing the modulo 3 plus gate number, the modulo 3 by gate number and the power consumption saving; mod3-A0、Mod3-M0And Power0Sequentially and respectively representing the gate adding quantity of the lower die 3 with the polarity of 0, the gate multiplying quantity of the die 3 and the power consumption; mod3-ASAGA、Mod3-MSAGAAnd SASAGASequentially and respectively representing the gate adding quantity of the lower die 3 with the optimal polarity, the gate multiplying quantity of the die 3 and the power consumption size searched by the method. Using the method of the present invention, the gate count and the power savings percentage of the ternary FPRM circuit are shown in Table 2.
TABLE 2 three-valued FPRM circuit gate count and percentage power savings
The analysis data shows that the optimal power consumption polarity searched by the method has obvious optimization effect compared with the 0 polarity, wherein the clpl circuit saves 80.00 percent, 66.67 percent and 89.78 percent of the modulo 3 gate adding quantity, the modulo 3 gate multiplying quantity and the power consumption respectively, and the 13 test circuits save 57.64 percent, 46.25 percent and 73.98 percent of the modulo 3 gate adding quantity, the modulo 3 gate multiplying quantity and the power consumption averagely.

Claims (2)

1. A power consumption optimal polarity searching method for a three-value FPRM circuit is characterized by comprising the following steps:
establishing a power consumption estimation model of a three-value FPRM circuit:
phi-1 represents a three-valued FPRM circuit in the form of a three-valued FPRM logic function:
wherein n is a function fp(xn-1,xn-2,…,x0) Number of input variables, xn-1,xn-2,…,x0Representing function fp(xn-1,xn-2,…,x0) N input variables of (a) and p represents a function fp(xn-1,xn-2,…,x0) Of (1), the polarity p being represented in ternary form as pn-1pn-2…p0,pj∈{0,1,2},j=0,1,2,…,n-1,Indicating a modulo-3 addition, ∑ an accumulated sign, a sign "×" a multiplying sign, a subscript i 0,1,2, …,3n1, i is represented in ternary form as in-1in-2…i0,aiIs the FPRM coefficient; a isi∈ {0,1,2}, pi represents a modulo-3 multiplication operation,the expansion formula is as follows:wherein ij∈{0,1,2}, Polarity p and subscript i determine the variablesA representation of (a);
the ternary FPRM logical function under the polarity of-2 p comprises two types of multi-input operations, wherein the two types of multi-input operations are respectively a multi-input modulo-3 addition operation and a multi-input modulo-3 multiplication operation, the ternary FPRM logical function is decomposed into a plurality of multi-input modulo-3 addition operations and a plurality of multi-input modulo-3 multiplication operations according to a ternary FPRM logical function expansion formula, then each multi-input operation is respectively decomposed into a two-input operation, and the two-input modulo-3 addition operation and the two-input modulo-3 multiplication operation are obtained, and the specific decomposition process is as follows:
taking the 1 st input variable and the 2 nd input variable of the multi-input operation as two input variables of the first second input operation to obtain an output variable of the first second input operation; taking the output variable of the first second input operation and the 3 rd input variable of the multiple input operation as two input variables of the second input operation to obtain the output variable of the second input operation; taking the output variable of the second two-input operation and the 4 th input variable of the multiple-input operation as two input variables of the third two-input operation to obtain the output variable of the third two-input operation; repeating the operation steps until all the input variables of the multi-input operation are used as the input variables of the two-input operation, and completing the decomposition of the multi-input operation;
decomposing the three-valued FPRM logic function under the p polarity to obtain a plurality of multi-input modulo-3 addition operations and a plurality of multi-input modulo-3 multiplication operations, wherein the multi-input modulo-3 addition operations are also called multi-input modulo-3 addition gates, the multi-input modulo-3 multiplication operations are also called multi-input modulo-3 multiplication gates, the number of the multi-input modulo-3 addition gates decomposed by the three-valued FPRM logic function under the p polarity is recorded as N, and the number of the multi-input modulo-3 multiplication gates decomposed by the three-valued FPRM logic function under the p polarity is recorded as W; decomposing each multi-input modulo-3 addition operation to obtain a plurality of binary input modulo-3 addition operations, decomposing each multi-input modulo-3 multiplication operation to obtain a plurality of binary input modulo-3 multiplication operations, wherein the binary input modulo-3 addition operation is also called a binary input modulo-3 addition gate, and the binary input modulo-3 multiplication operation is also called a binary input modulo-3 multiplication gate; recording the number of the two input module 3 adding gates after the H-th multiple input module 3 adding gates are decomposed as NHH ═ 1,2, …, N; recording the number of the second input modulo 3 times gate after the o-th multiple input modulo 3 times gate is decomposed as Wo,o=1,2,…,W;
Firstly, power consumption caused by a two-input modulo-3 adding gate and a two-input modulo-3 multiplying gate obtained after a ternary FPRM logic function under the p polarity is decomposed is taken as power consumption of a ternary FPRM circuit under the p polarity, power consumption caused by the two-input modulo-3 adding gate is expressed by the switching activity of the binary input modulo-3 multiplying gate, power consumption caused by the two-input modulo-3 multiplying gate is expressed by the switching activity of the binary input modulo-3 multiplying gate, the switching activity of the gate circuit is expressed by the output variable probability of an output end of the gate circuit, power consumption caused by the two-input modulo-3 adding gate is expressed by the output variable probability of an output end of the gate circuit, and power consumption caused by the two-input modulo-3 multiplying gate is expressed by;
① -4 calculating the output variable probability of the kth second input modulo-3 adding gate after H multiple input modulo-3 adding gate decomposition according to the formulas (2), (3) and (4), wherein k is 1,2, …, NH
P1(k)H=Pky11*Pky20+Pky10*Pky21+Pky12*Pky22(2)
P2(k)H=Pky12*Pky20+Pky11*Pky21+Pky10*Pky22(3)
P0(k)H=1-P1(k)H-P2(k)H(4)
Calculating the output variable probability of the g-th two-input modulo 3 times gate after the o-th multiple-input modulo 3 times gate decomposition according to the formulas (5), (6) and (7), wherein g is 1,2, …, Wo
Q1(g)o=Qgr11*Qgr21+Qgr12*Qgr22(5)
Q2(g)o=Qgr11*Qgr22+Qgr12*Qgr21(6)
Q0(g)o=1-Q1(g)o-Q2(g)o(7)
Wherein, P1(k)HDenotes the probability that the output variable of the kth second input modulo 3 plus gate after the H multiple input modulo 3 plus gate decomposition is 1, P2(k)HDenotes the probability that the output variable of the kth second input modulo 3 plus gate after the H multiple input modulo 3 plus gate decomposition is 2, P0(k)HDenotes the probability that the k-th two-input modulo-3-add-gate output variable after the H-th multiple-input modulo-3-add-gate decomposition is 0, y1 and y2 denote the two input variables of the two-input modulo-3-add-gate, Pky1mDenotes the probability of m being the input variable y1 in the kth two-input modulo 3 adder, m ∈ {0,1,2}, Pky2mDenotes the probability that the input variable y2 is m in the k-th two-input modulo-3 adder gate, and when k is 1, Pk isy1mProbability of m being the 1 st input variable for multiple-input modulo-3 addition, Pky2mProbability of m being the 2 nd input variable for multiple input modulo 3 addition, when k>1 time, Pky1mFor the k-1 th two-input modulo-3 plus-gate output variable, the probability of m, Pky2mProbability that the (k + 1) th input variable of the add gate for multiple input modulo 3 is m;
Q1(g)odenotes the probability that the output variable of the g-th second input modulo 3 by gate after the o-th multiple input modulo 3 by gate decomposition is 1, Q2(g)oDenotes the probability that the output variable of the g-th second input modulo 3 by gate after the o-th multiple input modulo 3 by gate decomposition is 2, Q0(g)oDenotes the probability that the output variable of the g-th multi-input modulo 3 gate after the o-th multi-input modulo 3 gate decomposition is 0, r1 and r2 denote the two input variables of the two-input modulo 3 gate, Qgr1mRepresents the probability that the input variable r1 is m in the g-th two-input modulo 3 multiplication gate, Qgr2mRepresents the probability that the g-th two-input modulo 3 multiplied by the input variable r2 in the gate is m; when g is 1, Qgr1mProbability of the 1 st input variable being m, Qg, for a multiple-input modulo-3 multiplicationr2mProbability of m being the 2 nd input variable of the multiple input modulo 3 multiplication, when g>At 1 hour, Qgr1mFor the g-1 st probability that the two-input modulo 3 is the output variable of m, Qgr2mThe probability that the g +1 th input variable of the multiple input modulo 3 by gate is m;
input variable xjThe probabilities of 1 and 2 are the pairs of probabilities generated by random functions (P1, P2), P0 ═ 1-P1-P2; p0, P1 and P2 are each a value between 0 and 1, P0 denotes the probability that the input variable is 0, P1 denotes the probability that the input variable is 1, and P2 denotes the probability that the input variable is 2;
firstly, calculating the power consumption of the three-value FPRM circuit according to the output variable probability of the two-input modulo 3 addition gate and the output variable probability of the two-input modulo 3 multiplication gate, and expressing a power consumption estimation model of the three-value FPRM circuit as follows:
wherein E isswdThe power consumption of the three-value FPRM circuit under the p polarity is represented, N is the number of the multi-input modulo-3 addition gates after the three-value FPRM logic function under the p polarity is decomposed, and W is the number of the multi-input modulo-3 addition gates after the three-value FPRM logic function under the p polarity is decomposed;
setting a fitness function for calculating individual fitness in the simulated annealing genetic algorithm:
according to the power consumption estimation model, a fitness function for calculating individual fitness in the simulated annealing genetic algorithm is set: in the simulated annealing genetic algorithm, the higher the fitness is, the stronger the adaptability of an individual is, but the optimal polarity of power consumption requires the lower the power consumption is, the better the fitness is, so that in order to facilitate the combination of the two, the inverse of the power consumption is adopted to represent the fitness, and the fitness function is obtained as follows:
fitness=α/Eswd
wherein, the symbol "/" represents a division operation symbol, and the fitness represents the fitness of an individual; eswdα is an amplification factor, and the value is a natural number which is greater than or equal to 1000;
establishing a corresponding relation between a three-value FPRM circuit and a simulated annealing genetic algorithm:
the simulated annealing genetic algorithm comprises the following key elements: individual, individual fitness, individual with the maximum fitness, cross operation, mutation operation and annealing selection operation;
the power consumption optimization of the three-value FPRM circuit comprises the following key elements: polarity, power consumption of corresponding polarity, optimal polarity, minimum power consumption, polarity exchange, polarity mutation and polarity conversion;
mapping the individuals to a three-valued FPRM circuit power consumption optimization, expressed as polarity; mapping the fitness of the individual to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as the power consumption of corresponding polarity; mapping the individual with the maximum fitness to a three-value FPRM circuit for power consumption optimization, and expressing the power consumption optimization as the optimal polarity; mapping the maximum fitness to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as the minimum power consumption; mapping the crossover operation to a three-valued FPRM circuit power consumption optimization, expressed as polarity interchange; mapping the variant operation to the power consumption optimization of the three-value FPRM circuit, and expressing the power consumption optimization as polarity mutation; mapping the annealing selection operation to a three-valued FPRM circuit power consumption optimization, expressed as a polarity inversion;
setting relevant parameters of the simulated annealing genetic algorithm:
the simulated annealing genetic algorithm needs to set 4 parameters: individual scale w, individual iteration number z, gene mutation probability q, and initial temperature T0(ii) a Let the individual scale w be 50, the individual iteration number z be 20, the gene mutation probability q be 0.01, and the starting temperature T0=100℃;
Obtaining the maximum fitness individual and the maximum fitness by adopting a simulated annealing genetic algorithm, wherein the maximum fitness individual is the power consumption optimal polarity of the three-value FPRM circuit; the maximum fitness is the minimum power consumption of the three-value FPRM circuit.
2. The method as claimed in claim 1, wherein the step (v) of obtaining the individual with the maximum fitness and the maximum fitness by using the simulated annealing genetic algorithm comprises:
fifthly, -1, generating w individuals represented by an n-bit ternary system by using a random function rand (), and respectively marking the w individuals as P1, P2, … and Pw;
fifthly-2, calculating the fitness of the v individual Pv through a fitness function, wherein v is 1,2, 3, …, w, and obtaining the fitness of individuals P1, P2, … and Pw;
fifthly-3, comparing the fitness of individuals P1, P2, … and Pw, screening the individual with the maximum fitness as the individual with the maximum fitness, and recording the individual with the maximum fitness and the maximum fitness;
fifthly-4, the individuals P1, P2, … and Pw are subjected to cross operation to generate the individuals F1, F2, … and Fw: if w is an even number, performing crossing operation on P1 and P2, P3 and P4, …, and Pw-1 and Pw in pairs respectively; if w is an odd number, carrying out cross operation on P1 and P2, P3 and P4, …, Pw-2 and Pw-1 in pairs respectively, wherein Pw does not participate in the cross operation, and Fw directly inherits Pw; performing cross operation on two individuals Pe and Pu to generate individuals Fe and Fu, wherein the specific process comprises the following steps: assigning Pe to fe and Pu to fu, randomly generating an n-bit binary code, marking the n-bit binary code as A, updating fe and fu according to the binary code A, and keeping the h bit of fe and fu unchanged when the h bit of the binary code A is 1; when the h bit of the binary code a is 0, the h bit of Fe inherits the h bit of Fu, the h bit of Fu inherits the h bit of Fe, h is 1,2, 3, …, n, Fe after the completion of the crossover operation is recorded as Fe, and Fu after the completion of the crossover operation is recorded as Fu; wherein u is e +1, when w is an even number, e is 1, 3, 5, …, w-1; u-2, 4, 6, …, w; when w is an odd number, e is 1, 3, 5, …, w-2; u-2, 4, 6, …, w-1;
fifthly, calculating the fitness of the v individual Fv through a fitness function to obtain the fitness of the individuals F1, F2, … and Fw;
fifthly-6, comparing the fitness of the individuals F1, F2, … and Fw with the fitness of the individual with the maximum fitness at present, and updating the individual with the maximum fitness and the maximum fitness;
7, carrying out mutation operation on individuals F1, F2, … and Fw: generating a value between 0 and 1 for each bit of the Fv by using a random function rand (), if the value is less than the gene mutation probability q, the bit corresponding to the value is the mutation bit of the Fv, and the mutation bit of the Fv is mutated, wherein the mutation rule is '0 → 1, 1 → 2, 2 → 0';
fifthly-8, treating the individuals F1, F2, … and Fw according to the steps of fifthly-5 to fifthly-6 to obtain the updated individuals with the maximum fitness and the maximum fitness;
fifthly-9, sorting individuals P1, P2, … and Pw according to the size of the fitness value, and sorting individuals F1, F2, … and Fw according to the size of the fitness value; selecting 2w/3 individuals with optimal fitness values from individuals P1, P2, … and Pw and individuals F1, F2, … and Fw respectively to form a new group of individuals, wherein the new individuals comprise 4w/3 individuals;
-10 multiple rounds of annealing selection on a new group of individuals: in each round of annealing selection, firstly generating an annealing temperature according to a formula (9), sequentially calculating the selection probability P (c) of each individual according to a formula (10) for the annealing temperature, and simultaneously generating a screening probability t by using a random function rand (), wherein 0< t < 1; when the individual selection probability is greater than the screening probability, the individual is selected in the round of annealing selection, the selected individual does not participate in the next round of annealing selection, other unselected individuals enter the next round of annealing selection, and the annealing selection is finished until w individual updating individuals P1, P2, … and Pw are screened;
Tl=1/ln(l/T0+1)(9)
wherein, TlDenotes the annealing temperature of the first round, l ═ 1,2, …; when the first round of annealing selection is carried out, l is 1, when the second round of annealing selection is carried out, l is 2, and the rest can be analogized; ln represents a logarithmic operation; t is0Represents the initial temperature; p (c) represents the probability of the individual c; (f) (c) indicates the fitness value of the c-th individual of the new individuals; c is 1,2, 3, …, 4 w/3; (d) indicates the fitness value of the d-th individual of the new individuals; d is 1,2, 3, …, 4 w/3;
fifthly-11, processing the individuals P1, P2, … and Pw updated in the step fifthly-10 according to the step fifthly-2 to the step fifthly-3 to obtain the individual with the maximum fitness and the maximum fitness;
fifthly-12, repeating the steps of fifthly-4 to fifthly-11 until the individual iteration times z are met, and finishing the algorithm to obtain the individual with the maximum fitness and the maximum fitness;
fifthly-13, outputting the maximum fitness individual and the maximum fitness obtained in the last time, wherein the maximum fitness individual is the optimal polarity of the three-value FPRM circuit; the maximum fitness is the minimum power consumption of the three-value FPRM circuit.
CN201510532191.0A 2015-08-27 2015-08-27 A kind of three value FPRM circuit power consumption optimum polarity search methods Active CN105306075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510532191.0A CN105306075B (en) 2015-08-27 2015-08-27 A kind of three value FPRM circuit power consumption optimum polarity search methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510532191.0A CN105306075B (en) 2015-08-27 2015-08-27 A kind of three value FPRM circuit power consumption optimum polarity search methods

Publications (2)

Publication Number Publication Date
CN105306075A true CN105306075A (en) 2016-02-03
CN105306075B CN105306075B (en) 2017-09-29

Family

ID=55202913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510532191.0A Active CN105306075B (en) 2015-08-27 2015-08-27 A kind of three value FPRM circuit power consumption optimum polarity search methods

Country Status (1)

Country Link
CN (1) CN105306075B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107194023A (en) * 2017-03-30 2017-09-22 宁波大学 A kind of FPRM circuit areas and delay Optimization method
CN107679326A (en) * 2017-10-10 2018-02-09 宁波大学 A kind of two-value FPRM circuit areas and delay comprehensive optimization method
CN107748912A (en) * 2017-09-13 2018-03-02 宁波大学 A kind of three value FPRM circuit delay optimization methods using bat algorithm

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450627A (en) * 2003-05-21 2003-10-22 中国科学院计算技术研究所 Method for estimating maximum power comsumption of large scale digital circuit with parallel structure
CN102982205A (en) * 2012-11-21 2013-03-20 宁波大学 Fixed polarity conversion method for design of digital circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1450627A (en) * 2003-05-21 2003-10-22 中国科学院计算技术研究所 Method for estimating maximum power comsumption of large scale digital circuit with parallel structure
CN102982205A (en) * 2012-11-21 2013-03-20 宁波大学 Fixed polarity conversion method for design of digital circuit

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
FEI SUN等: "Best polarity searching for ternary FPRM logic circuit area based on whole annealing genetic algorithm", 《IEEE, INTERNATIONAL CONFERENCE ON ASIC》 *
JING DAI等: "A Novel Quantum Genetic Algorithm for Area Optimization of FPRM Circuits", 《IEEE COMPUTER SOCIETY》 *
孙飞: "三值FPRM逻辑电路面积最佳极性搜索", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
孙飞等: "基于遗传算法的三值FPRM电路面积优化", 《山东大学学报(理学版)》 *
张会红: "基于XNOR/OR的FPRM极性优化研究", 《中国博士学位论文全文数据库信息科技辑》 *
汪鹏君等: "基于整体退火遗传算法的低功耗最佳极性搜索", 《计算机辅助设计与图形学学报》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107194023A (en) * 2017-03-30 2017-09-22 宁波大学 A kind of FPRM circuit areas and delay Optimization method
CN107194023B (en) * 2017-03-30 2019-07-12 宁波大学 A kind of FPRM circuit area and delay Optimization method
CN107748912A (en) * 2017-09-13 2018-03-02 宁波大学 A kind of three value FPRM circuit delay optimization methods using bat algorithm
CN107748912B (en) * 2017-09-13 2020-11-27 宁波大学 Three-value FPRM circuit delay optimization method utilizing bat algorithm
CN107679326A (en) * 2017-10-10 2018-02-09 宁波大学 A kind of two-value FPRM circuit areas and delay comprehensive optimization method
CN107679326B (en) * 2017-10-10 2019-07-09 宁波大学 A kind of two-value FPRM circuit area and the comprehensive optimization method that is delayed

Also Published As

Publication number Publication date
CN105306075B (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN107124251B (en) Polarization code encoding method based on any kernel
CN108052696B (en) Three-value FPRM circuit area and delay optimization method using particle swarm optimization
CN105160097B (en) A kind of three value FPRM circuit area optimization methods of utilization Population Migration Algorithm
CN105306075A (en) Best polarity search method for power consumption of three-value FPRM circuit
CN105162494A (en) Frequency hopping sequence model reconstructing method based on RS code generation
CN102982205A (en) Fixed polarity conversion method for design of digital circuit
CN114399052A (en) Quantum AND logic gate, inverse quantum and logic gate and logic operation circuit generation method
CN116975778A (en) Social network information propagation influence prediction method based on information cascading
CN107122573B (en) Automobile operation condition design method based on Markov chain evolution
CN108804593A (en) The subgraph query method of undirected weighted graph based on collection of illustrative plates and reachable path number
CN109710973B (en) Method for optimizing area, power consumption and time delay of three-value fixed polarity RM circuit
Li et al. LSTM-based frequency hopping sequence prediction
De et al. Fitness evaluation in genetic algorithms with ancestors’ influence
CN105205534A (en) Ternary FPRM circuit area and power consumption optimum polarity searching method
CN114219027A (en) Lightweight time series prediction method based on discrete wavelet transform
CN107330201A (en) A kind of fixed polarity Reed Muller logic circuit polarity search methods
CN110765730A (en) Method for simplifying combined logic circuit
CN107679326A (en) A kind of two-value FPRM circuit areas and delay comprehensive optimization method
CN116257210A (en) Spatial parallel hybrid multiplier based on probability calculation and working method thereof
CN114925640A (en) Multi-stage MPRM logic circuit power consumption optimization method
CN114266199A (en) Solving method and system for internal variables of magnetic saturation synchronous generator in steady-state operation
US20220121938A1 (en) Method and apparatus for a neural network
CN101436864B (en) Method and apparatus for decoding low density parity check code
CN113838505A (en) CAM-based memory entry counting circuit and memory device
CN109033506B (en) Optimization method for area and power consumption of three-value fixed-polarity RM circuit

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant