CN103428804A - Method for searching mapping scheme between tasks and nodes of network-on-chip (NoC) and network code position - Google Patents

Method for searching mapping scheme between tasks and nodes of network-on-chip (NoC) and network code position Download PDF

Info

Publication number
CN103428804A
CN103428804A CN2013103306086A CN201310330608A CN103428804A CN 103428804 A CN103428804 A CN 103428804A CN 2013103306086 A CN2013103306086 A CN 2013103306086A CN 201310330608 A CN201310330608 A CN 201310330608A CN 103428804 A CN103428804 A CN 103428804A
Authority
CN
China
Prior art keywords
scheme
schemes
group
power consumption
task
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
CN2013103306086A
Other languages
Chinese (zh)
Other versions
CN103428804B (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN201310330608.6A priority Critical patent/CN103428804B/en
Publication of CN103428804A publication Critical patent/CN103428804A/en
Application granted granted Critical
Publication of CN103428804B publication Critical patent/CN103428804B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method for searching a mapping scheme between tasks and nodes of an NoC and a network code position. According to mapping of multicast applications on the wireless NoC, during searching of an optimal node distribution and route selection scheme, total power consumption and response time of the unicast task serve as priority indexes for checking the scheme, and meanwhile, the maximum throughput rate of the multicast task and the lowest network transmission power consumption of the multicast task are guaranteed. Thus, the performance of the network designed as per the scheme selected according to the method is optimal, and compared with other methods for searching priority schemes of mapping between the tasks and the nodes under the conditions of multiple objective functions, the method has the advantages of being low in complexity and easy to implement.

Description

Method for searching mapping scheme between network-on-chip task and node and network coding position
Technical Field
The invention belongs to the field of integrated circuit design, particularly relates to a method for searching a mapping scheme between tasks and nodes and a network coding position of a wireless network on chip, and aims at the task allocation of the wireless network on chip and the searching process of the network coding path and the coding position.
Background
In the information market, with the continuous expansion of the microchip technology scale, large-scale system on chip becomes possible. As a brand new communication architecture for designing a multi-core chip, the network on chip can well solve the problem of complex inter-chip global communication in the design of a system on chip. However, due to the two-dimensional metal connection of the network on chip, the network on chip has the problems of high delay and high energy consumption when multi-hop transmission is performed, and the reliability of the network on chip system cannot be guaranteed when the processor is scaled up. The wireless network-on-Chip (wireless network-on-Chip) replaces the wired connection with the wireless connection, inserts a faster wireless transmission channel between the network-on-Chip nodes, increases the transmission range of the network-on-Chip nodes, and reduces the hop count of the information transmission path in the multi-core system, so as to achieve the purposes of reducing the system delay and energy consumption and increasing the system throughput rate, and further improve the overall performance of the system.
Network coding is an information exchange technology combining coding and routing, and the core idea is to allow information processing at an intermediate node in a network to achieve the theoretical upper bound of information flow by improving coding efficiency. The network coding can improve the throughput rate and bandwidth utilization rate of the network, the network robustness and the network safety, and under the condition that the communication network has broadcasting, the application of the network coding is a theoretical upper bound which can reach the information flow rate proposed by the Shannon theorem. And the wireless transmitting node of the wireless network-on-chip system is usually provided with an on-chip antenna, which can well meet the requirement that the nodes can broadcast in the multicast transmission network.
By looking up new and widely gathering literature, we find that the methods for finding the mapping scheme between tasks and nodes on the network on chip have been disclosed in the following categories:
the method is characterized in that a NoC mapping based on an ant colony optimization algorithm, computer engineering and application 2005, 41(18): 7-10' is adopted to realize network-on-chip mapping by adopting an effective ant colony optimization algorithm, and communication power consumption of a system is reduced as much as possible while a task is mapped to a network-on-chip node. The objective function of the method is power consumption, and the method is roughly as follows:
according to the number of ants, tasks are circularly distributed to each unallocated node according to the probability (the probability is the probability of distributing a node to a certain task calculated in a mode), all the nodes are distributed to the corresponding tasks once in a circulation, then a two-exchange method is adopted to carry out local search, the optimal solution with the minimum power consumption is found out, the pheromone of the ant corresponding to the optimal solution is updated by the power consumption value pheromone attenuation degree of the optimal solution and the current pheromone value, and after the process is iterated for multiple times, the distribution scheme which enables the minimum power consumption is finally selected.
The mapping scheme obtained by the method has smaller communication power consumption, but does not consider the delay performance of the system.
Document "popsicle, li, tommy et al. NoC mapping method oriented to energy consumption and latency. e. 2008, 36 (5): 937-. The calculation formula of the objective function cost of the method is as follows:
cost=λ×E+(1-λ)×VAR
wherein, λ is a proportionality coefficient, E is energy consumption, and VAR is a link load variance. The method is substantially as follows:
according to the number of ants, tasks are circularly distributed to each unallocated node according to the probability (the probability is the probability of distributing a node to a certain task calculated in a mode), all the nodes are distributed to the corresponding tasks once in a circulation, then a two-exchange method is adopted to carry out local search, a solution with minimum power consumption is found out, the pheromone of the ant corresponding to the optimal solution is updated by the attenuation degree of the pheromone of the power consumption value of the optimal solution and the value of the current pheromone, and after the process is iterated for multiple times, a distribution scheme for enabling the objective function cost to be minimum is finally selected.
This method does not consider that communication power consumption and execution time are completely different physical quantities, and the obtained mapping scheme does not necessarily have excellent performance.
The document Tang lei, Shashi Kumar. A two-step genetic algorithm mapping task maps to a network on chip architecture. proceedings of the European Symphos on Digital System design2003.Antalya, Turkey: IEEE,2003: 180-. The method is substantially as follows:
(1) firstly, assuming that the time delays of all edges in a task flow graph are equal and are a constant, namely an average; functional units (e.g., processors, memory, etc.) are allocated to each task such that the overall latency of the system is minimized
(2) And (4) using the edge delay of the real data flow graph, further optimizing, and distributing the functional units to the nodes of the NoC.
The method divides the whole optimization stage into two steps, thereby reducing the complexity of calculation and shortening the calculation time, but the energy consumption and the time delay of the obtained mapping scheme can not be simultaneously minimum.
The literature YIou Chen, Jianhao Hu, Gengsheng Chen, Xiang Ling. "energy and Delay-Aware Mapping for Real-Time Digital Processing System on network on Chip Mapping", in Proceedings of IEEE International System on Chip Conference, Las Vegas, USA,2010, pp.375-378. It is proposed herein that:
(1) the data flow diagram defined autonomously obtains complete link information by using the weight and the connection relation of the data flow diagram, and can objectively reflect performance parameters such as delay, power consumption and the like of a digital signal system before mapping.
(2) Selecting a basic genetic algorithm as a prototype of a mapping algorithm, and enabling the algorithm to adapt to the NoC mapping problem through some improvements so as to obtain better algorithm convergence characteristics; meanwhile, a power consumption model, a delay model and a multi-target model are established aiming at the mapping target, and compared with a traditional mathematical model of power consumption and delay, the method can more accurately represent the performance change of the system before and after mapping.
The mapping method is simple in principle, fewer in steps and good in application value. However, the mapping method can only be applied to applications with unicast tasks, and is still deficient for applications including multicast tasks because the related performance after mapping of multicast tasks is not considered.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned drawbacks of the prior art, and provides a method for searching a mapping scheme between tasks and nodes and a network coding position of a wireless network-on-chip, which provides a method for searching for a wireless network-on-chip with multiple tasks and multiple nodes to minimize the total power consumption and response time of unicast tasks.
A further object of the present invention is to provide a method for finding a mapping scheme between tasks and nodes and a network coding location of a wireless network on chip, which ensures maximum throughput of multicast tasks and minimum network transmission power consumption of multicast tasks.
In order to achieve the purpose of the invention, the invention adopts the technical scheme that:
a method for searching a mapping scheme and a network coding position between a network-on-chip task and a node comprises the following steps:
1) randomly generating a scheme set comprising K allocation schemesAnd for each allocation scheme X = (X)1,x2,...,xN) Setting a probability p of a crosstaskAnd probability of mutation qtaskAnd the number of iterations T of the task maptaskAnd let variable t record the number of times of task mapping iterationtask=0 and the number of solutions Z =1 obtained by initialization, and sets the maximum number of solutions Zmax
2) Find a set of solutions
Figure BDA00003603858700042
In each scheme, the power consumption and the response time of the wireless network-on-chip unicast task are recorded, and the maximum power consumption and the maximum response time are recorded as a worst power consumption value and a worst response time value;
3) calculate the scheme groupThe size of the adaptability value reflects the priority of the scheme, the higher the value is, the higher the priority is, the priority is superior according to the total power consumption and the response time of the unicast task;
4) group of schemes
Figure BDA00003603858700054
Is randomly divided into
Figure BDA00003603858700051
Selecting the most superior schemes in each scheme group according to the priority relation determined in the step 3 to form a priority scheme group
Figure BDA00003603858700055
5) Group of priority schemes
Figure BDA00003603858700056
The schemes in (1) are paired randomly, and the pairing refers to grouping according to a group of two schemes and setting the probability p of intersection in step 1iInterchanging the serial numbers of the nodes at any same position on two schemes in each pair of schemes, and then combining all interchanged pairs of schemes to obtain a scheme group
Figure BDA00003603858700057
6) With the mutation probability q set in step 1iChanging scheme group
Figure BDA00003603858700058
The serial number of the node at any position in each scheme in the scheme obtains a scheme group
Figure BDA00003603858700059
7) The sequence of the fitness value calculated in step 3 from small to large, from the group of solutions
Figure BDA000036038587000510
In selection
Figure BDA00003603858700052
Individual schemes, and groups of schemes
Figure BDA000036038587000511
Are combined together to form a new scheme group containing K schemes
8) Group of schemes
Figure BDA000036038587000513
And
Figure BDA000036038587000514
are combined into a scheme group
Figure BDA000036038587000515
9) Set of calculation schemes
Figure BDA000036038587000516
The wireless network-on-chip unicasts the total power consumption and the response time under each scheme. When calculating, firstly, each scheme in the scheme group is judgedIf so, directly assigning the worst power consumption value and the worst corresponding time value to the power consumption and response time value of the scheme, and if not, calculating the scheme group
Figure BDA000036038587000517
The wireless network-on-chip unicasts the total power consumption and the response time under each scheme.
10) Group of schemes
Figure BDA000036038587000518
All 2K schemes are divided into a plurality of groups, each group represents a boundary set, and the groups are numbered, wherein the schemes in the groups with smaller numbers have higher priority than the schemes in the groups with larger numbers; the priority is preferably low in power consumption and response time.
11) Initializing a new recipe set without recipes
Figure BDA00003603858700061
Then adding the schemes in the subgroups into the subgroups divided from the 10 th step in sequence according to the descending order of the numbers of the subgroupsIn (1) up to scheme group
Figure BDA00003603858700063
The number of schemes in the scheme exceeds K, and then all the schemes of the group added finally are taken out.
12) 10) the specific method steps for determining the priority of the schemes in each group are as follows:
12-1 makes the distance value of each scheme in the subgroup 0, and the distance value indicates whether the scheme is closely related to other schemes.
12-2, arranging the schemes in a reverse order according to the power consumption of each scheme calculated in the step 9), wherein the scheme with lower power consumption is arranged in front of the scheme with higher power consumption,
12-3 calculating power consumption distances of the schemes, each power consumption distance of a scheme being a value obtained by subtracting a power consumption of a scheme ranked before from a power consumption of a scheme ranked after it,
12-4, arranging the schemes in a reverse order according to the response time sizes of the schemes calculated in the step 9), wherein the scheme with the smaller response time is arranged in front of the scheme with the larger response time,
12-5 calculating response time distances for the respective plans, the response time distance for each plan being a value obtained by subtracting the response time of the plan that is ranked before from the response time of the plan that is ranked after it,
12-6 add the response time distance and the power consumption distance of each solution to obtain a solution distance value,
12-7, the least power consuming scheme and the least response time scheme are ranked first, and then the remaining schemes are ranked according to distance, and are ranked behind the least power consuming scheme and the least response time scheme, and the scheme with the larger distance value is ranked before the scheme with the smaller distance value, so that the priority of the scheme ranked in the front is higher than that of the scheme ranked in the rear.
13) Adding the selected scheme into the scheme group according to the priority level in the group taken out from the step 12)
Figure BDA00003603858700064
Up to the scheme group
Figure BDA00003603858700065
The number of the schemes in the scheme is K.
14) Group of schemesIs randomly divided into
Figure BDA00003603858700071
A scheme group, wherein L is the number of the schemes in each scheme group, and the scheme with the highest priority in each scheme group is selected according to the priority relation determined in the steps 10) and 12) to form a priority scheme group
Figure BDA00003603858700074
15) Group of priority schemes
Figure BDA00003603858700075
The schemes in (1) are randomly paired again, and the probability p of the cross set in the step 1) is usedtaskInterchanging the serial numbers of the nodes at any same position on two schemes in each pair of schemes, and then combining all interchanged pairs of schemes to obtain a scheme group
16) With the probability of variation q set in step 1)taskChanging scheme group
Figure BDA00003603858700077
The serial number of the node at any position in each scheme in the scheme obtains a scheme group
Figure BDA00003603858700078
17) The set of solutions determined according to step 10)
Figure BDA00003603858700079
Priority order of the middle schemes, from scheme group in order of priority from high to low
Figure BDA000036038587000710
In selection
Figure BDA00003603858700072
Scheme, and schemeGroup of
Figure BDA000036038587000711
Are combined together to form a new scheme group containing K schemes
Figure BDA000036038587000712
18. If t istask<TtaskThen t istask=ttask+1, then return to step 2), continue iteration; otherwise go to step 19);
19) calculate the scheme group
Figure BDA000036038587000713
The scheme J with the maximum adaptability value, namely simultaneously minimizing the power consumption and the response timeminAs a task mapping scheme between tasks and nodes of the wireless network on chip.
Wherein, the method for calculating the power consumption and the response time task of the unicast task of the wireless network on chip under each mapping scheme in the step 2) is as follows:
the response time in the task mapping is the longest path delay from input to output and comprises the processing delay of all tasks in the path and the transmission time of data exchange between the tasks.
According to an embodiment of the present invention, the method further comprises the steps of:
i. obtaining scheme J according to task mappingminDetermining the mapping node position of the multicast task source task and the multicast task destination task on the wireless on-chip network
Figure BDA00003603858700082
And
Figure BDA00003603858700083
from X, according to the relation between multicast tasks in the task flow graphsourceEliminating nodes of a wireless network on chip mapped by isolated multicast task source nodes, and leaving a multicast task source task with an association relation and a node set mapped by a target task thereof by using vectors
Figure BDA00003603858700084
And
Figure BDA00003603858700085
and (4) showing. The isolation means that the multicast source node does not have the same sink node with other multicast source nodes or the transmission path thereof does not have any conflict with other multicast transmissions, and the multicast source node is called as isolated. The association relationship refers to the situation that several multicast sources have the same sink and transmission paths cross each other, and these multicast sources and sinks are said to have the association relationship.
ii. calculating Xsource' where each source node goes to Xdes' all paths of each destination node in the system are recorded by using a matrix total _ path, wherein a = j × m, and path _ ID = [ b ]1,b2,...ba]Recording the total number of paths from each source to each destination node;
with vector Scheme = (y)1,y2,...ya) To indicate a scheme for coding path selection, ykThe number of a path in the current coding path selection scheme is shown, and the path is the first path on the total _ path
Figure BDA00003603858700081
Randomly generating a scheme group containing P distribution schemes
Figure BDA00003603858700086
And Scheme = (y) for each coding path1,y2,...ya) Setting a probability p of a crosscodingAnd probability of mutation qcodingAnd the number of code mapping iterations TcodingAnd making the records iterateVariable t of degreecoding=0;
Finding a set of protocolsThe throughput rate of the multicast task and the network transmission power consumption under each scheme;
v. calculating a scheme group by adopting a non-dominated sorting method of Deb (published by scientific publishing Co. 2007, introduced in 'Multi-object evolutionary Algorithm and application thereof' authored by Zhengjinhua)
Figure BDA00003603858700088
The size of the adaptability value reflects the priority of the scheme, the higher the value is, the higher the priority is, the priority is superior according to the high transmission throughput rate of the multicast task and the low network power consumption;
grouping protocols
Figure BDA00003603858700093
Is randomly divided into
Figure BDA00003603858700091
A scheme group, wherein N is the number of the schemes in each scheme group, and the most superior schemes in each scheme group are selected according to the priority relationship determined in the step v to form a priority scheme group
Figure BDA00003603858700094
Grouping priority schemesThe schemes in (1) are paired randomly, and the pairing refers to grouping according to a group of two schemes and setting the probability p of intersection in step icodingInterchanging the serial numbers of the nodes at any same position on two schemes in each pair of schemes, and then combining all interchanged pairs of schemes to obtain a scheme group
Figure BDA00003603858700096
Using the mutation probability q set in step icodingChanging scheme groupThe serial number of the node at any position in each scheme in the scheme obtains a scheme group
Figure BDA00003603858700098
From the scheme group, in descending order of the fitness value calculated in the step vIn selectionIndividual schemes, and groups of schemes
Figure BDA000036038587000910
Are combined together to form a new scheme group containing K schemes
Figure BDA000036038587000911
x. group of schemes
Figure BDA000036038587000912
And
Figure BDA000036038587000913
are combined into a scheme group
Figure BDA000036038587000914
Calculating a set of recipes according to the method of step iv
Figure BDA000036038587000915
Each scheme inThe throughput rate of the multicast tasks and the network power consumption are reduced;
xi. scheme grouping Using the boundary set Generation method introduced in the article A Fast Elitist Non-doped software for Multi-object Optimization, NSGA-II published by Deb in 2002 in the journal IEEE Transactions on evolution computing sixth volume
Figure BDA000036038587000916
The 2P schemes in the group are divided into a plurality of groups, each group represents a boundary set, and the groups are numbered, and the schemes in the groups with smaller numbers have higher priority than the schemes in the groups with larger numbers; the priority is preferably high in terms of high throughput and low network power consumption;
initializing a new recipe set without recipes
Figure BDA00003603858700101
Then, from the small groups divided by the xii step, adding the schemes in the small groups into the small groups in sequence according to the sequence of the numbers of the small groups from large to small
Figure BDA00003603858700102
In (1) up to scheme groupThe number of the schemes in the group exceeds P, and then all the schemes of the group added finally are taken out.
Determining the priority of each scheme in each group in the step xii by the following specific method:
xiv-1 makes the distance value of each scheme in the group 0, and the distance value indicates whether the scheme is closely related to other schemes;
xiv-2 carries out reverse order arrangement on the schemes according to the network power consumption of each scheme calculated in the step xi, wherein the scheme with lower power consumption is arranged in front of the scheme with higher power consumption;
xiv-3 calculating the network power consumption distance of each scheme, wherein the power consumption distance of each scheme is the value obtained by subtracting the power consumption of the scheme ranked in front of the scheme from the power consumption of the scheme ranked behind the scheme;
xiv-4, arranging the schemes according to the throughput rates of the schemes calculated in the step xi, wherein the scheme with the higher throughput rate is arranged in front of the scheme with the lower throughput rate;
xiv-5 calculating the throughput rate distance of each scheme, wherein the throughput rate distance of each scheme is the value obtained by subtracting the throughput rate of the scheme ranked in front of the scheme from the throughput rate of the scheme ranked in back of the scheme;
xiv-6, adding the throughput rate distance and the power consumption distance of each scheme to obtain a distance value of the scheme;
xiv-7 ranks the scheme with the maximum throughput rate and the scheme with the minimum network power consumption at the top, then sorts the rest schemes according to the distance, and ranks the schemes behind the scheme with the maximum throughput rate and the scheme with the minimum network power consumption, wherein the scheme with the larger distance value ranks at the top of the scheme with the smaller distance value, so that the priority of the scheme ranked at the top is higher than that of the scheme ranked at the bottom;
xv. adding the selected priority scheme into the scheme group from the group obtained in the step xiii
Figure BDA00003603858700104
Up to the scheme groupThe number of the schemes is P;
grouping protocols xvi
Figure BDA00003603858700113
Is randomly divided intoA scheme group, wherein L is the number of schemes in each scheme group, and is determined according to the xii step and the xiv stepThe priority relation of each scheme group selects the most priority schemes in each scheme group to form a priority scheme group Vt';
Will prioritize scheme group Vt' the scheme is then randomly paired, with the probability p of crossover set in step iiicodingInterchanging the serial numbers of the nodes at any same position on two schemes in each pair of schemes, and then combining all interchanged pairs of schemes to obtain a scheme group
Figure BDA00003603858700114
xviii. using the probability of variation q set in step iiicodingChanging scheme group
Figure BDA00003603858700115
The serial number of the node at any position in each scheme in the scheme obtains a scheme group
Figure BDA00003603858700116
The set of protocols determined according to step xii
Figure BDA00003603858700117
Priority order of the middle schemes, from scheme group in order of priority from high to low
Figure BDA00003603858700118
In selection
Figure BDA00003603858700112
Individual schemes, and groups of schemes
Figure BDA00003603858700119
Are combined together to form a new scheme group containing P schemes
Figure BDA000036038587001110
xx. if tcoding<TcodingThen t iscoding=tcoding+1 and then returning to step iv, otherwise step xxi;
xxi. calculating a scheme group by adopting a non-dominated sorting method of Deb (introduced in 'Multi-objective evolutionary Algorithm and application thereof' published by scientific Press 2007, whose author is Zhengjinhua)
Figure BDA000036038587001111
The scheme with the maximum adaptability value, namely the scheme with the minimum network transmission power consumption and the maximum throughput rate, is used as a mapping scheme for the coding mapping of the wireless on-chip network;
xxii, judging whether the throughput rate of the coding mapping scheme obtained at the moment is the minimum value specified in the step iv and whether the power consumption is the maximum value specified in the step iv, if the throughput rate is not the minimum value and the power consumption is not the maximum value, recording the mapping scheme, and meanwhile, Z = Z +1, then entering the step xxiii, otherwise, returning to the step 2);
xxiii if Z is less than or equal to ZmaxReturning to the step 2), otherwise, entering the step xxiv;
xxiv. calculation of Z by Deb's non-dominated ranking method (published by scientific Press 2007, introduced in "Multi-object evolutionary Algorithm and its applications" by Zhengjinhua)maxAnd selecting the scheme with the maximum adaptability value, namely the scheme with the maximum multicast task throughput rate and the minimum multicast task transmission power consumption as the final mapping selection scheme, and recording the number of the coding point and the path selected by coding mapping.
In the above step iv, the solution setThe method for the throughput rate of the multicast task and the network transmission power consumption under each scheme comprises the following steps:
the network transmission power consumption refers to power consumption caused by data transmission of a wireless routing node in a network, and comprises arbitration power consumption, coding power consumption and wireless channel transmission power consumption of the node; the relevant calculation parameters are referred to the parameters in the paper "Design of Multi-Channel Wireless NoC to Improve On-Chip Communication Capacity" published by DanZHao, Yi Wang, Jian Li and Takamaro Kikkawa.
Calculating the throughput rate and the network transmission power consumption under each scheme, and firstly judging whether the path combination of the scheme meets the condition that the multicast task transmission can reach the maximum multicast rate; if the condition that the maximum multicast rate can be reached is met, obtaining the coding point of the path combination, and calculating the throughput rate and the network transmission power consumption of the mapping scheme; if the condition of the maximum multicast rate cannot be reached, the throughput rate of the multicast task of the mapping scheme is a minimum value, and the minimum value can be 0. The network power consumption of multicast task transmission of the mapping scheme is a maximum value.
The transmission throughput rate (measured by the amount of multicast information transmitted in the network per unit time) of the multicast task is calculated according to the following formula:
R = &Sigma; s &Element; S f s &CenterDot; n s T M
where S is a set of multicast source nodes, S is one of the source nodes, fsRepresenting the traffic from a source node s to a single destination node in a multicast graph, nsRepresents the number of destination nodes corresponding to the source node s, TMIs the transmission time of the multicast task.
In the step ii, the calculation method of total _ path is related to a routing algorithm by using a Mesh topology structure adopted by the wireless NoC, and specifically includes:
ii-1Xsource' with j source nodes, Xdes' there are m destination nodes; b0= 0; let the notation x =1, y =1; for a = j × m dimension array path _ ID = [ b =1,b2,...ba]Assignment, specifically:
(1) let p =1, q =1;
(2) selection of Xsource' the p-th source node (let its node number n)s) And Xdes' q-th destination node (let its node number n)d) And the coordinates of the nodes on the Mesh topology are (x) according to the node numbers of the nodess,ys) And (x)d,yd). Wherein, x s = n s - 1 - M &CenterDot; floor ( n s - 1 M ) , y s = floor ( n s - 1 M ) , x d = n d - 1 - M &CenterDot; floor ( n d - 1 M ) , y d = floor ( n d - 1 M ) , floor (·) is a floor rounding function;
(3) computing a slave node nsTo node ndIs that the number of shortest routing paths is Max _ path _ num = ( | x s - x d | + | y s - y d | ) ! | x s - x d | ! | y s - y d | ! , The paths are numbered sequentially, the path number value is denoted by e, and each path is sequentially denoted by
Figure BDA00003603858700136
Let c = (q-1) · j + p, bc= Max _ path _ num; then p = p + 1;
(4) if p > j, q = q +1, entering the step (5), otherwise, returning to the step (2);
(5) if q is greater than m, finishing assignment and entering step ii-2; otherwise, returning to the step (2) by letting p =1;
ii-2 initialization
Figure BDA00003603858700137
Line of
Figure BDA000036038587001310
All zero array total _ path of a column;
ii-3 selection of Xsource' the X-th source node and Xdes' let k = (y-1) · j + x;
ii-4 from Total _ Path
Figure BDA00003603858700138
Line start to line
Figure BDA00003603858700139
Line, recording the total b from current source to current destination nodekNumbering each node on each path; the initialization g =1, and the initialization g =1,g' =1, e =1; the detailed steps are as follows:
I. selecting the e-th path, wherein r is the number of nodes on the path, the source node is the 1 st node on the path, the node connected with the source node on the path is the 2 nd node on the path, the rest nodes are analogized, and the destination node is the r-th node on the path;
II, assigning the node number at the g' th position in the current path to an element at the g th row and column position of the h row of the array total _ path; then g '= g' +1, g = g + 1;
if g' is less than or equal to r, returning to the step II, otherwise, entering the step IV;
iv, the total _ path line number h = h +1, the path number e = e +1, and go to step V;
v, if e is less than or equal to bkEntering step I; otherwise, entering step ii-5;
ii-5 at this time, from Xsource' the X-th source node to Xdes' all shortest routing paths of the y-th destination node have been recorded; index x = x +1, go to step ii-6;
ii-6 if x > j, then ii-7 is entered. Otherwise, returning to ii-3;
ii-7 notation y = y +1, if y < = m, let x =1, return ii-3; otherwise, it indicates that the assignment to total _ path has been completed.
Compared with the prior art, the invention has the technical effects that:
aiming at the mapping of the multicast application on the wireless NoC, when searching the optimal node distribution and routing scheme, the invention not only considers the total power consumption and the response time of the unicast task as the priority indexes of the assessment scheme, but also ensures the maximum throughput rate of the multicast task and the minimum network transmission power consumption of the multicast task. Therefore, the performance of the network designed by the optimized scheme is the best, and compared with other methods for searching the priority scheme of mapping between tasks and nodes under a plurality of objective functions, the method has the characteristics of complexity and simplicity in realization, and the method of the invention can be obtained by simulation and has high convergence speed.
Drawings
Fig. 1 is a task diagram consisting of 7 tasks, which is enumerated by an embodiment of the present invention.
Fig. 2 illustrates an on-chip network consisting of 16 nodes according to an embodiment of the present invention.
In the figure, 1 is a unicast task node, 2 is traffic between tasks, 3 is a multicast source task node, 4 is a multicast destination task node, 5 is a processing node of a wireless NoC, and 6 is a routing node of the wireless NoC.
Detailed Description
The present invention will be described in further detail with reference to test examples and specific embodiments. It should be understood that the scope of the above-described subject matter is not limited to the following examples, and any techniques implemented based on the disclosure of the present invention are within the scope of the present invention.
The method of the invention is mainly oriented to the task flow diagram with multicast tasks. The task flow graph has two task nodes of unicast and multicast, data transmission between the unicast task nodes adopts a unicast transmission mode, and a routing algorithm of the unicast task nodes is determined by a topological structure adopted by the wireless NoC. The data transmission between the multicast task nodes adopts a broadcast transmission mode and a full path routing algorithm. The full-path routing algorithm means that when a routing path can select any forward link from a source node to a destination node (the forward link is the transmission direction from the source node to the destination node in the routing algorithm specified by the topology) and the mapping of the task flow graph on the wireless on-chip network is considered, the mapping performance of the unicast task and the mapping performance of the multicast task need to be considered. The invention provides a mapping method for searching the mapping between tasks and nodes when the total power consumption and the response time of a unicast task are simultaneously minimized and the throughput rate of a multicast task is maximum and the network transmission power consumption of the multicast task is minimum and selecting a corresponding multicast node routing path to construct a network code for a multi-task multi-node wireless network-on-chip. The mapping scheme obtained by the method has high performance, high convergence speed and low complexity.
Fig. 1 shows a task diagram with 7 tasks, and fig. 2 shows a network on chip with 16 nodes, which is used for explaining the present invention specifically based on this embodiment, and is not intended to limit the present invention. The present embodiment is to find a mapping scheme for distributing the 7 tasks shown in fig. 1 to the 16 nodes of the wireless network on chip shown in fig. 2 and designing a routing path, so that the total power consumption and the response time of the network on chip after mapping reach minimum values at the same time, and the maximum throughput of the multicast tasks and the minimum power consumption of the multicast task network are ensured. For convenience of description, we use vector X = (X)1,x2,x3,x4,x5,x6,x7) One solution to represent the mapping of 7 tasks of a network on chip to 16 nodes, X at the nth position of the vector Xn(1≤xn≦ 16) represents the number that the nth task maps to the node, i.e., xnIndicates that the task with the number n is allocated to the x-th tasknThe node of (2).
The steps of finding the scheme which simultaneously minimizes the total power consumption and the response time and simultaneously ensures the maximum throughput rate of the multicast tasks and the minimum network power consumption of the multicast tasks are as follows:
the steps of task mapping are as follows:
1. randomly generating a scheme group comprising 20 allocation schemes
Figure BDA00003603858700161
Each allocation scheme in the scheme group is represented by a vector as: (11151071632),(810814101112),(12121014847),(166255412),(9811105615),(54113841),(1316916493),(48121511614),(4987377),(841035107),(10241341016),(101112101213),(2147314716),(2132613144),(5471413152),(121551012137),(7114101459),(14111015131310),(15169104316),(71711698). Setting the probability of intersection of each scheme as ptask=0.4, the probability of mutation is qtask=0.1, number of task mapping iterations is Ttask=100, and let a variable t record the number of iterationstaskAnd =0. The number of schemes obtained by initialization is Z =1, and the maximum number of solutions is set to be Zmax=2。
2. Determining a set of recipes
Figure BDA00003603858700171
Power consumption and response time of wireless network on chip under each mapping scheme
2-1 calculation parameters for Power consumption reference is made to simulation parameters set forth in Dan ZHao, Yi Wang, Jian Li and TakamaroKikkawa, a paper "Design of Multi-Channel Wireless NoC to ImproveOn-Chip Communication Capacity". A32 nm UWB connection is selected, the data rate is 20Gbps, and the power consumption per bit is 2.7 pJ. In this example, the total power consumption of each scheme is: 0.2444,0.2445,0.2445,0.2446,0.2445,0.2445,0.2445,0.2445,0.2445,0.2445,0.2445,0.2445,0.2444,0.2444,0.2446,0.2445,0.2445,0.2444,0.2445,0.2445.
The 2-2 response time is the longest path delay from input to output, and comprises the sum of the task processing time of all processing nodes on the path from the wireless input node to the output node and the link transmission time between the nodes. In this example, the response time of each scheme is: 0.1058,0.1067,0.1067,0.1072,0.1067,0.1066,0.1066,0.1064,0.1072,0.1062,0.1069,0.1067,0.1064,0.1064,0.1072,0.1069,0.1064,0.1061,0.1067,0.1069.
3. The scheme group is calculated by adopting a non-dominated sorting method of Deb (introduced in multi-objective evolutionary algorithm and application thereof published by scientific publishing agency in 2007 and written by Zhengjinhua)
Figure BDA00003603858700172
The fitness values of the schemes in (1) are respectively as follows: 2.0000,1.2632,1.0526,0.0526,1.1579,0.9474,0.6842,1.4211,0.2105,1.5789,0.6842,0.6842,1.7368,1.7368,0.0526,0.6842,1.4211,1.8947,0.3684,0.3684.
4. Group schemes
Figure BDA00003603858700173
Randomly dividing 20 schemes into 10 scheme groups, selecting the most superior scheme from each scheme group according to the priority determined in step 3, and combining the most superior scheme from all scheme groups into a new scheme group
Figure BDA00003603858700174
New set of solutions
Figure BDA00003603858700175
The scheme in (1) is respectively as follows: (11151071632),(12121014847),(9811105615),(48121511614),(841035107),(10241341016),(2147314716),(121551012137),(14111015131310),(15169104316).
5. Group schemes
Figure BDA00003603858700181
The schemes in (1) are paired randomly, and the pairing refers to grouping according to a group of two schemes and setting the probability p of intersection in step 1task=0.4 interchanges the node numbers at random positions between each pair of schemes, and then all the interchanged pairs of schemes are combined to obtain a scheme group
Figure BDA00003603858700182
Scheme group
Figure BDA00003603858700183
The scheme in (1) is respectively as follows: (11151071632),(12121014847),(9811105615),(48121511614),(8410341016),(1024135107),(2147314716),(121551012137),(14111015131310),(15169 10 4 3 16)
6. Using the mutation probability q set in step 1task=0.1 change scheme group
Figure BDA00003603858700184
The serial numbers of the nodes at random positions in each scheme in the scheme group are obtained
Figure BDA00003603858700185
Scheme group
Figure BDA00003603858700186
The scheme in (1) is respectively as follows: (11151071632),(12121014847),(9811105615),(48121511614),(8410341016),(1024135107),(2143314716),(121551012137),(13111015131310),(15169104316)
7. From scheme group to scheme group in the order of smaller fitness to larger fitness
Figure BDA00003603858700191
Select 10 schemes from the group of schemes
Figure BDA00003603858700192
Are combined together to form a new scheme group containing 20 schemesIs (11151071632), (12121014847), (98) 11 10 5 6 15),( 4 8 12 151 16 14),( 8 4 10 3 4 10 16),( 10 24 13 5 10 7),( 2 14 3 3 14 716),( 12 15 5 10 12 13 7),( 13 11 10 1513 13 10),( 15 16 9 10 4 3 16),( 12 1210 14 8 4 7),( 9 8 11 10 5 615),( 8 10 8 14 10 11 12),( 4 8 12 151 16 14),( 7 11 4 10 14 5 9),( 8 410 3 5 10 7),( 2 14 7 3 14 716),( 2 13 2 6 13 14 4),( 14 11 10 1513 13 10),( 11 15 10 7 16 3 2)。
8. Group schemes
Figure BDA00003603858700194
And
Figure BDA00003603858700195
are combined into a scheme group containing 40 schemesI.e., (11151071632), (810814101112), (12121014847), (166255412), (9811105615), (54113841), (1316) 9 16 4 93),( 4 8 12 15 1 16 14),( 4 9 8 73 7 7),( 8 4 10 3 5 10 7),( 10 24 13 4 10 16),( 10 1 11 2 10 1213),( 2 14 7 3 14 7 16),( 2 13 2 613 14 4),( 5 4 7 14 13 15 2),( 12 155 10 12 13 7),( 7 11 4 10 14 59),( 14 11 10 15 13 13 10),( 15 16 9 104 3 16),( 7 1 7 1 16 9 8),( 11 1510 7 16 3 2),( 12 12 10 14 8 47),( 9 8 11 10 5 6 15),( 4 8 12 151 16 14),( 8 4 10 3 4 10 16),( 10 24 13 5 10 7),( 2 14 3 3 14 716),( 12 15 5 10 12 13 7),( 13 11 10 1513 13 10),( 15 16 9 10 4 3 16),( 12 1210 14 8 4 7),( 9 8 11 10 5 615),( 8 10 8 14 10 11 12),( 4 8 12 151 16 14),( 7 11 4 10 14 5 9),( 8 410 3 5 10 7),( 2 14 7 3 14 716),( 2 13 2 6 13 14 4),( 14 11 10 1513 13 10),( 11 15 10 7 16 3 2)。
9. Set of calculation schemes
Figure BDA00003603858700201
The power consumption and the response time of the wireless network-on-chip under each scheme are judged, then whether the multicast task source and the destination node of each scheme in the scheme group are mapped to different wireless network-on-chip nodes is judged, if yes, the scheme group is usedUpdating the power consumption and response time value of the scheme by the worst power consumption value (0.2446) and the worst response time value (0.1072), wherein the total power consumption corresponding to each scheme is respectively as follows:
0.2444,0.2445,0.2445,0.2446,0.2445,0.2445,0.2445,0.2445,0.2445,0.2445,0.2445,0.2445,0.2444,0.2444,0.2446,0.2445,0.2445,0.2444,0.2445,0.2445,0.2444,0.2446,0.2446,0.2446,0.2446,0.2446,0.2446,0.2446,0.2446,0.2446,0.2445,0.2445,0.2445,0.2445,0.2445,0.2445,0.2444,0.2444,0.2444,0.2444,。
the response time of each mapping scheme is respectively as follows:
0.1058,0.1067,0.1067,0.1072,0.1067,0.1066,0.1066,0.1064,0.1072,0.1062,0.1069,0.1067,0.1064,0.1064,0.1072,0.1069,0.1064,0.1061,0.1067,0.1069,0.1058,0.1072,0.1072,0.1072,0.1072,0.1072,0.1072,0.1072,0.1072,0.1072,0.1067,0.1067,0.1067,0.1064,0.1064,0.1062,0.1064,0.1064,0.1061,0.1058。
10. boundary Optimization introduced in NSGA-II using the article A Fast Elitist Non-doped software standardization Genetic Optimization for Multi-objective Optimization, published by Deb in 2002 in the journal IEEE Transactions on evolution computing sixth volumeSet generation method grouping schemes
Figure BDA00003603858700211
The 40 schemes in (1) are divided into 13 groups, each group represents a boundary set, and the schemes in the small group have higher priority than the schemes in the large group for group numbering; the priority is preferably set to reduce the total power consumption and the response time.
The schemes in panel 1 obtained by the above method are scheme 1, scheme 21, scheme 40; the schemes in the group 2 include scheme 18, scheme 39; among the protocols in panel 3 are protocol 13, protocol 14, protocol 37, protocol 38; the schemes in the group 4 include scheme 10, scheme 36; among the protocols in panel 5 are scheme 8, scheme 17, scheme 34, scheme 35; the protocols in panel 6 are scheme 2, scheme 33; the schemes in the group 7 include scheme 5, scheme 32; scheme 3 and scheme 31 are arranged in the group 8; the protocol in panel 9 is scheme 6; the protocols within panel 10 are scheme 7, scheme 11, scheme 16; the schemes within the group 11 are scheme 19, scheme 20; scheme 9 is arranged in the small group 12; the protocols in panel 13 are scheme 4, scheme 15, scheme 22, scheme 23, scheme 24, scheme 25, scheme 26, scheme 27, scheme 28, scheme 29, scheme 30.
11. Initializing a new recipe group without recipes
Figure BDA00003603858700221
Then, from the subgroups divided in the 10 th step, the schemes in the subgroups are added to the subgroups from subgroup 1 to subgroup 13 in the order of the numbers of the subgroups from small to largeIn (1) up to scheme groupThe number of schemes in the group exceeds 20, and the schemes in the group added last (namely the group 8) are all taken out.
12. And (3) determining the priority of each scheme in each group obtained in the step 10, wherein the specific method comprises the following steps:
12-1 makes the distance value of each scheme in the subgroup 0, and the distance value indicates whether the scheme is closely related to other schemes.
12-2, arranging the schemes in a reverse order according to the power consumption of each scheme calculated in the step 9, wherein the scheme with lower power consumption is arranged in front of the scheme with higher power consumption,
12-3 calculating power consumption distances of the schemes, each power consumption distance of a scheme being a value obtained by subtracting a power consumption of a scheme ranked before from a power consumption of a scheme ranked after it,
12-4, according to the response time of every scheme calculated in step 9, making reverse order arrangement of the schemes, the scheme whose response time is smaller is arranged in front of the scheme whose response time is larger,
12-5 calculating response time distances for the respective plans, the response time distance for each plan being a value obtained by subtracting the response time of the plan that is ranked before from the response time of the plan that is ranked after it,
12-6 add the response time distance and the power consumption distance of each solution to obtain a solution distance value,
12-7, the least power consuming scheme and the least response time scheme are ranked first, and then the remaining schemes are ranked according to distance, and are ranked behind the least power consuming scheme and the least response time scheme, and the scheme with the larger distance value is ranked before the scheme with the smaller distance value, so that the priority of the scheme ranked in the front is higher than that of the scheme ranked in the rear.
13. Adding schemes into the scheme group according to the selection of the priorities in the group sorted from the 12 th step
Figure BDA00003603858700224
Up to the scheme groupThe number of the schemes in the scheme group is 20, and after the scheme group is completed
Figure BDA00003603858700226
The scheme in (1) is as follows: (11151071632),(11151071632),(11151071632),(14111015131310),(14111015131310),(2147314716),(2132613144),(2147314716),(2132613144),(841035107),(841035107),(48121511614),(7114101459),(48121511614),(7114101459),(810814101112),(810814101112),(9811105615),(9811105615),(12121014847).
14. Group schemes
Figure BDA00003603858700231
The 20 schemes in the scheme group are randomly divided into 10 scheme groups, each scheme group has 2 schemes, the most prior scheme in each scheme group is selected according to the priority relation determined in the steps 10 and 12, and then the most prior scheme selected from all the scheme groups is combined into a new scheme groupScheme group
Figure BDA00003603858700233
The scheme in (1) comprises (11151071632), (11151071632), (14111015131310), (2132613144), (2132613144), (841035107), (7114101459), (7114101459), (810814101112), (9811105615)
15. Group schemes
Figure BDA00003603858700241
The schemes in (1) are then randomly paired with the probability p of crossover set in step 1task=0.4 interchanges the node numbers at random positions between each pair of schemes, and then all pairs are combined to obtain a scheme groupNamely: (11151071632),(11151071632),(14112613144),(2131015131310),(2132613144),(841035107),(7114101459),(7114101459),(810814101112),(9811105615)
16. With the probability of variation q set in step 1task=0.1 change scheme groupThe serial numbers of the nodes at random positions in each scheme in the scheme group are obtained
Figure BDA00003603858700244
Namely: (11151071632),(11151071632),(14112612144),(2121015131310),(2132613144),(841034107),(7114101459),(7114101459),(810814101112),(9911105715).
17. From scheme group to scheme group in the order of smaller fitness to larger fitness
Figure BDA00003603858700245
Select 10 schemes from the group of schemes
Figure BDA00003603858700246
Are combined together to form a new scheme group containing 20 schemes
Figure BDA00003603858700247
The scheme is (11151071632), (11151071632), (14112612144), (2121015131310), (2132613144), (8410) 3 4 10 7),(7 11 4 1014 5 9),(7 11 4 10 14 5 9),(8 108 14 10 11 12),(9 9 11 10 5 7 15),(4 8 12 15 1 16 14),(7 11 4 10 145 9),(8 10 8 14 10 11 12),(8 10 814 10 11 12),(9 8 11 10 5 6 15),(98 11 10 5 6 15),(12 12 10 14 8 47),(11 15 10 7 16 3 2),(11 15 10 716 3 2),(11 15 10 7 16 3 2)。
18. If the number of iterations ttask<100, then ttask=ttask+1, then returning to the step 2 to perform a new round of iterative operation; otherwise, entering step 19;
19. the scheme group is calculated by adopting a non-dominated sorting method of Deb (introduced in multi-objective evolutionary algorithm and application thereof published by scientific publishing agency in 2007 and written by Zhengjinhua)
Figure BDA00003603858700251
The scheme with the minimum adaptability value, namely the scheme J with the minimum total power consumption and response time simultaneouslymin(11, 15, 10,7, 16,3, 2) as a task-to-node task mapping scheme for the network-on-chip.
The steps of encoding the map are as follows:
i. obtaining scheme J according to task mappingminDetermining multicast anycastMapping node position X of service source task and destination task in wireless on-chip networksourceIs (15, 10, 7), destination task maps position XdesIs (16, 3, 2). According to the relation between multicast tasks in fig. 1, an isolated multicast source node 7 and a destination node 2 corresponding to the isolated multicast source node are removed, and a multicast task source and destination node set with an association relation are left, and the method comprises the following steps: xsource' = (10, 15) and Xdes'=(3,16)。
ii. calculating Xsource' where each source node goes to Xdes' all paths of each destination node in the method are calculated as follows:
ii-1Xsource' having 2 Source nodes, Xdes' there are 2 destination nodes. b0And =0. Let the notation x =1, y = 1. For a 4-dimensional array path _ ID = [ b =1,b2,...b4]And assigning according to the method as follows:
(1) let p =1, q =1;
(2) selection of Xsource' 1 st Source node (node number 10) and Xdes' the 1 st destination node (node number 3) is found to have coordinates (1, 2) and (2, 0), respectively, from the node number.
(3) Calculating the number of the shortest routing paths from the source node to the destination node as Max _ path _ num =3, numbering the paths in sequence, and indicating the path number value as e, wherein each path is sequentially indicated asLet c =1, b1And = 1. Then p = p + 1;
(4) if p > j, q = q +1, entering the step (5), otherwise, returning to the step (2);
(5) if q is greater than m, finishing assignment and entering step ii-2; otherwise let p =1 and go back to step (2).
ii-2 initialize the all zero array total _ path of 8 rows and 8 columns;
ii-3 selection ofX is selectedsource' the 1 st Source node (node 10) and Xdes' 1 st destination node (node 3), let k = 1.
ii-4 records the node numbers of the total 3 paths from the h =1 th line to the h' =3 th line of the total _ path from the current source to the current destination node. Initialization g =1, g' =1, e = 1. The detailed steps are as follows:
I. and selecting a 1 st path, wherein the number of nodes on the path is 4, the source node (node 10) is the 1 st node on the path, the node 11 is the 2 nd node on the path, the node 7 is the third node on the path, and the destination node (node 3) is the 4 th node on the path.
Assigning the number (10) of the 1 st node in the current path to the element at the 1 st row and 1 st column position of the array total _ path. Then g '= g' +1, g = g + 1;
if g' is less than or equal to 4, returning to the step II, otherwise, entering the step IV;
iv, the total _ path line number h = h +1, the path number e = e +1, and go to step V;
v, if e is less than or equal to 3, entering the step I; otherwise, entering step ii-5;
ii-5 at this time, from Xsource' 1 st Source node (node 10) to Xdes' all shortest route paths of the 1 st destination node (node 3) have been recorded as [10,11,7,3,0,0,0]. The index x = x + 1. Entering step ii-6;
ii-6 if x >2, then ii-7 is entered. Otherwise returning ii-3, ii-7 marking y = y +1, if y < =2, letting x =1, returning ii-3; otherwise, finishing the assignment of the total _ path to obtain a matrix total _ path as follows:
total _ path = 10 11 7 3 0 0 0 0 10 6 7 3 0 0 0 0 10 6 2 3 0 0 0 0 15 11 7 3 0 0 0 0 10 11 12 16 0 0 0 0 10 11 15 16 0 0 0 0 10 14 15 16 0 0 0 0 15 16 0 0 0 0 0 0
path _ ID is [ 3131 ].
Randomly generating a set of 20 allocation schemes
Figure BDA00003603858700272
Respectively as follows: (1321),(1131),(3131),(3121),(1111),(2111),(3121),(2131),(3111),(1111),(2121),(2121),(2121),(2111),(2131),(3111),(2131),(2121),(2131),(3111). Setting a crossover probability p for each coding path schemecoding=0.5 and mutation probability qcoding=0.1, and number of code mapping iterations Tcoding=100, and let a variable t record the number of iterationscoding=0;
Set of judgment schemes
Figure BDA00003603858700273
If the path combination under each scheme meets the condition that the multicast task transmission can reach the maximum multicast rate, the throughput rate is set to be 0, the power consumption is set to be 10, and the scheme group is obtained
Figure BDA00003603858700281
The throughput rate of the multicast task under the other various schemes is as follows: 0,0,0,0,0,0,0,0, 26.7,0,0,0,0,0,0, 26.7,0,0,0, 26.7.
The power consumption is: 10,10,10,10,10,10,10,10,0.0001,10,10,10,10,10,10,0.0001,10,10,10,0.0001.
v. calculating scheme group by adopting non-dominated sorting method of Deb
Figure BDA00003603858700282
The fitness value of each scheme in the method is as follows: 0.8421,0.8421,0.8421,0.8421,0.8421,0.8421,0.8421,0.8421,1.8947,0.8421,0.8421,0.8421,0.8421,0.8421,0.8421,1.8947,0.8421,0.8421,0.8421,1.8947.
Grouping protocols
Figure BDA00003603858700286
Of the 20 schemes was randomly divided into 10 scheme subgroups, with 2 schemes in each scheme subgroup. Selecting the most superior schemes in each scheme group according to the priority relation determined in the step v to form a priority scheme group
Figure BDA00003603858700283
Comprises the following steps: (1321),(3131),(1111),(3121),(3111),(2121),(2121),(3111),(2131),(3111).
Grouping priority schemes
Figure BDA00003603858700284
The schemes in (1) are paired randomly, wherein the pairing refers to grouping according to a group of two schemes and setting the probability p of intersection in step iiicoding=0.5 interchanges the numbers of nodes at any same position on two schemes in each pair of schemes, and then combines all the interchanged pairs of schemes to obtain a scheme group
Figure BDA00003603858700285
Comprises the following steps: (1131),(3321),(1111),(3121),(3121),(2 1 1 1),(2 1 1 1),(31 2 1),(2 1 3 1),(3 1 1 1)。
Using the mutation probability q set in step icoding=0.1 change scheme group
Figure BDA00003603858700291
The serial number of the node at any position in each scheme in the scheme obtains a scheme group
Figure BDA00003603858700292
Comprises the following steps: (1131),(3121),(1121),(3121),(3121),(2111),(2111),(3121),(3131),(3111).
From the scheme group, in descending order of the fitness value calculated in the step v
Figure BDA00003603858700293
Select 10 schemes from the group of schemes
Figure BDA00003603858700294
Are combined together to form a new scheme group containing 20 schemes
Figure BDA00003603858700295
Comprises the following steps: (1131),(3121),(1121),(3121),(3121),(2111),(2111),(3121),(313 1),(3 1 1 1),(2 1 2 1),(2 12 1),(2 1 1 1),(2 1 3 1),(2 13 1),(2 1 2 1),(2 1 3 1),(3 11 1),(3 1 1 1),(3 1 1 1)。
x. group of schemes
Figure BDA00003603858700296
And
Figure BDA00003603858700297
are combined into a scheme groupComprises the following steps: (1321),(1131),(3131),(3121),(1111),(2111),(3121),(2131),(3111),(1111),(2121),(2121),(2121),(2111),(2131),(3111),(2131),(2121),(2131),(3111),(1131),(3121),(1121),(3121),(3121),(2111),(2111),(3121),(3 1 3 1),(2 1 2 1),(2 1 21),(2 1 1 1),(2 1 3 1),(2 1 31),(2 1 2 1),(2 1 3 1),(0 0 00),(0 0 0 0),(0 0 0 0),(0 0 00)。
xi. judgment scheme group
Figure BDA00003603858700301
If the path combination under each scheme meets the condition that the multicast task transmission can reach the maximum multicast rate, the throughput rate is set to be 0, the power consumption is set to be 10, and the scheme group is obtainedThe throughput rates of the multicast tasks under the other various schemes are 0,0,0,0, 0,0,0, 26.7,0, 0,0,0,0, 0,0,0,0, 0,0.
The network power consumption is respectively: 10,10,10,10,10,10, 10,0.0001,10,10,10,10,10,10, 10,10,10,10, 10;
xi. scheme grouping Using the boundary set Generation method introduced in the article A Fast Elitist Non-doped Sortinggenetic Algorithm for Multi-object Optimization, NSGA-II published by Deb in 2002 in the journal IEEE Transactions on evolution computing volume six
Figure BDA00003603858700303
The 40 schemes in the scheme are divided into 2 subgroups, each subgroup represents a boundary set, and the subgroups are numbered and the subgroups with smaller numbers are divided into groupsThe schemes in the group have higher priority than the schemes in the group with larger number; the priority is preferably high in terms of high throughput and low network power consumption. The schemes in panel 1 obtained as described above are scheme 9, scheme 16, scheme 20; the remaining schemes are all the schemes in group 2.
Xiii initializes a new recipe set without recipesThen, from the group divided in the xii step, adding the schemes in the groups into the groups in sequence according to the sequence of the numbers of the groups from 1 to 2In (1) up to scheme groupThe number of schemes in the group exceeds 20, and then all the schemes in the group (group 2) added at last are taken out.
Determining the priority of each scheme in each group in the step xii by the following specific method:
xiv-1 gives each solution in the subgroup a distance value of 0, said distance value indicating whether the solution is closely related to other solutions.
xiv-2 carries out reverse order arrangement on the schemes according to the network power consumption of each scheme calculated in the step xi, the scheme with lower power consumption is arranged in front of the scheme with higher power consumption,
xiv-3 calculates the network power consumption distance of each solution, the power consumption distance of each solution being the value obtained by subtracting the power consumption of the solution arranged in front of it from the power consumption of the solution arranged behind it,
xiv-4 arranges the schemes according to the throughput rate of each scheme calculated in the step xi, the scheme with higher throughput rate is arranged in front of the scheme with lower throughput rate,
xiv-5 calculates the throughput distance of each scheme, the throughput distance of each scheme being the value obtained by subtracting the throughput of the scheme preceding it from the throughput of the scheme following it,
xiv-6 adds the throughput distance and the power consumption distance of each scheme to obtain the distance value of the scheme,
xiv-7 ranks the scheme with the highest throughput rate and the scheme with the lowest network power consumption at the top, and then sorts the remaining schemes according to the distance, and ranks the schemes with the highest throughput rate and the scheme with the lowest network power consumption at the back, wherein the scheme with the larger distance value ranks at the top of the scheme with the smaller distance value, so that the priority of the scheme ranked at the top is higher than that of the scheme ranked at the back.
xv. adding the scheme group according to the selection scheme of the priority level from the small group taken in the xiii step
Figure BDA00003603858700321
Up to the scheme group
Figure BDA00003603858700322
The number of schemes in the scheme is 20.Comprises the following steps: (3111),(3111),(3111),(1321),(2131),(1131),(3131),(3121),(1111),(2111),(3121),(2131),(1111),(2121),(2121),(2121),(2111),(2131),(2131),(2 1 2 1)。
Grouping protocols xvi
Figure BDA00003603858700324
The 20 schemes in the scheme group are randomly divided into 10 scheme groups, each scheme group comprises 2 schemes, and the most superior scheme in each scheme group is selected according to the priority relation determined in the step xii to form a priority scheme group Vt'。Vt' is (3111), (3111), (2131), (3131), (1111), (3121), (1111), (2121), (2111), (2131).
Will prioritize scheme group Vt' the scheme is then randomly paired, with the probability p of crossover set in step iiicoding=0.5 interchanges the numbers of nodes at any same position on two schemes in each pair of schemes, and then combines all the interchanged pairs of schemes to obtain a scheme groupComprises the following steps: (3111),(3111),(2131),(3131),(1111),(3121),(1121),(2111),(2131),(2111).
xviii. using the probability of variation q set in step iiicoding=0.1 change scheme group
Figure BDA00003603858700326
In any one of the schemesNumbering of nodes at a location, resulting in a set of solutions
Figure BDA00003603858700331
Comprises the following steps: (3111),(3111),(2131),(3131),(1111),(3121),(1121),(2111),(2131),(2111).
The set of protocols determined according to step xii
Figure BDA00003603858700332
Priority order of the middle schemes, from scheme group in order of priority from high to low
Figure BDA00003603858700333
Select 10 schemes from the group of schemes
Figure BDA00003603858700334
Are combined together to form a new scheme group containing 20 schemes
Figure BDA00003603858700335
Is (3111), (3111), (2131), (3131), (1111), (3121), (1121), (2111), (2131), (2111), (2121), (2121), (2121), (2111), (2131), (2131), (2121), (2121), ((b), (b3 1 1 1),(3 1 1 1),(31 1 1)。
xx. if tcoding<TcodingThen t iscoding=tcoding+1 and then returning to step iv, otherwise step xxi;
calculating a set of protocols according to the method described in step iv
Figure BDA00003603858700336
The scheme with the smallest fitness value is used as a mapping scheme of the wireless network-on-chip coding mapping. The scheme is (3111).
xxii. judge whether the throughput of the coding mapping scheme obtained at this time is not 0 and the power consumption is 10, since the throughput of the scheme is 26.7 and the power consumption is 0.0001, record the mapping scheme and Z = Z +1, and then proceed to step xxiii. Otherwise, return to step 2 of the task mapping part.
xxiii. if Z ≦ 2, return to step 2 of the task mapping section, otherwise, go to step xxiv.
xxiv. get 2 mapping schemes. Scheme 1 multicast task throughput rate is 26.7 and power consumption is 0.0001. Scheme 2 multicast task throughput is 20 and power consumption is 0.0006. Adopting a non-dominated sorting method of Deb (published by scientific publishing agency in 2007, introduced in 'multi-objective evolutionary algorithm and application thereof' authored in Zhengjinhua) to obtain the fitness of 1 and 0 respectively based on the multicast task throughput rate and the multicast task transmission power consumption in 2 mapping schemes, and selecting the scheme with the maximum fitness, namely the scheme with the maximum multicast task throughput rate and the minimum multicast task transmission power consumption, as the final mapping selection scheme. The resulting protocol is scheme 1: the task mapping scheme is (11151071632) and the coding mapping scheme is (3111), i.e. the selected path is 10 6 2 3 15 11 7 3 10 11 12 16 15 16 0 0
The corresponding encoding point is the routing node 11, i.e. the corresponding processing node PE 11.
While the present invention has been described in detail with reference to the embodiments shown in the drawings, the present invention is not limited to the above embodiments, and various modifications or alterations can be made by those skilled in the art without departing from the spirit and scope of the claims of the present application.

Claims (5)

1. A method for searching a mapping scheme and a network coding position between a network-on-chip task and a node is characterized by comprising the following steps:
1) randomly generating a scheme set comprising K allocation schemes
Figure FDA00003603858600013
And for each allocation scheme X = (X)1,x2,...,xN) Setting a probability p of a crosstaskAnd probability of mutation qtaskAnd the number of iterations T of the task maptaskAnd let variable t record the number of times of task mapping iterationtask=0 and the number of solutions Z =1 obtained by initialization, and sets the maximum number of solutions Zmax
2) Find a set of solutions
Figure FDA00003603858600014
In each scheme, the power consumption and the response time of the wireless network-on-chip unicast task are recorded, and the maximum power consumption and the maximum response time are recorded as a worst power consumption value and a worst response time value;
3) calculate the scheme group
Figure FDA00003603858600015
The size of the adaptability value reflects the priority of the scheme, the higher the value is, the higher the priority is, the priority is superior according to the total power consumption and the response time of the unicast task;
4) group of schemes
Figure FDA00003603858600016
Is randomly divided into
Figure FDA00003603858600011
Selecting the most superior schemes in each scheme group according to the priority relation determined in the step 3 to form a priority scheme group
Figure FDA00003603858600017
5) Group of priority schemes
Figure FDA00003603858600018
The schemes in (1) are paired randomly, and the pairing refers to grouping according to a group of two schemes and setting the probability p of intersection in step 1iInterchanging the node numbers of any one same position on two schemes in each pair of schemes, and then combining all interchanged schemes in each pairAre combined to obtain a scheme group
Figure FDA00003603858600019
6) With the mutation probability q set in step 1iChanging scheme group
Figure FDA000036038586000110
The serial number of the node at any position in each scheme in the scheme obtains a scheme group
7) The sequence of the fitness value calculated in step 3 from small to large, from the group of solutions
Figure FDA000036038586000112
In selection
Figure FDA00003603858600012
Individual schemes, and groups of schemes
Figure FDA000036038586000113
Are combined together to form a new scheme group containing K schemes
Figure FDA00003603858600021
8) Group of schemes
Figure FDA00003603858600022
And
Figure FDA00003603858600023
are combined into a scheme group
Figure FDA00003603858600024
9) Set of calculation schemes
Figure FDA00003603858600025
The wireless network-on-chip unicasts the total power consumption and the response time under each scheme. During calculation, firstly, judging whether a multicast task source and a destination node of each scheme in a scheme group are mapped to different wireless network-on-chip nodes, if so, directly assigning a worst power consumption value and a worst corresponding time value to the power consumption and response time value of the scheme, and if not, calculating the scheme group
Figure FDA00003603858600026
The wireless network-on-chip unicasts the total power consumption and the response time under each scheme;
10) group of schemes
Figure FDA00003603858600027
All 2K schemes are divided into a plurality of groups, each group represents a boundary set, and the groups are numbered, wherein the schemes in the groups with smaller numbers have higher priority than the schemes in the groups with larger numbers; the priority is preferably in terms of small power consumption and response time;
11) initializing a new recipe set without recipesThen adding the schemes in the subgroups into the subgroups divided from the 10 th step in sequence according to the descending order of the numbers of the subgroups
Figure FDA00003603858600029
In (1) up to scheme group
Figure FDA000036038586000210
The number of the schemes in the scheme exceeds K, and then all the schemes of the group added finally are taken out;
12) 10) the specific method steps for determining the priority of the schemes in each group are as follows:
12-1, enabling the distance value of each scheme in the group to be 0, wherein the distance value represents whether the scheme is closely related to other schemes or not;
12-2, arranging the schemes in a reverse order according to the power consumption of each scheme calculated in the step 9), wherein the scheme with lower power consumption is arranged in front of the scheme with higher power consumption;
12-3 calculating power consumption distances of the schemes, the power consumption distance of each scheme being a value obtained by subtracting the power consumption of the scheme ranked in front of the scheme from the power consumption of the scheme ranked behind the scheme;
12-4, arranging the schemes in a reverse order according to the response time of each scheme calculated in the step 9), wherein the scheme with shorter response time is arranged in front of the scheme with longer response time;
12-5 calculating response time distances for the respective plans, the response time distance for each plan being a value obtained by subtracting the response time of the plan that is ranked before from the response time of the plan that is ranked after the response time of the plan that is ranked before the response time of the plan that;
12-6, adding the response time distance and the power consumption distance of each scheme to obtain a distance value of the scheme;
12-7, arranging the scheme with the minimum power consumption and the scheme with the minimum response time at the top, and then sequencing the rest schemes according to the distance, wherein the scheme with the minimum power consumption and the scheme with the minimum response time are arranged at the back, the scheme with the larger distance value is arranged at the front of the scheme with the smaller distance value, and thus the priority of the scheme arranged at the front is higher than that of the scheme arranged at the back;
13) adding the selected scheme into the scheme group according to the priority level in the group taken out from the step 12)
Figure FDA00003603858600033
Up to the scheme groupThe number of the schemes is K;
14) group of schemes
Figure FDA00003603858600035
Is randomly divided into
Figure FDA00003603858600031
A scheme group, wherein L is the number of the schemes in each scheme group, and the scheme with the highest priority in each scheme group is selected according to the priority relation determined in the steps 10) and 12) to form a priority scheme group
Figure FDA00003603858600036
15) Group of priority schemes
Figure FDA00003603858600037
The schemes in (1) are randomly paired again, and the probability p of the cross set in the step 1) is usedtaskInterchanging the serial numbers of the nodes at any same position on two schemes in each pair of schemes, and then combining all interchanged pairs of schemes to obtain a scheme group
Figure FDA00003603858600038
16) With the probability of variation q set in step 1)taskChanging scheme group
Figure FDA00003603858600039
The serial number of the node at any position in each scheme in the scheme obtains a scheme group
17) The set of solutions determined according to step 10)
Figure FDA000036038586000311
Priority order of the middle schemes, from scheme group in order of priority from high to low
Figure FDA000036038586000312
In selection
Figure FDA00003603858600032
Individual schemes, and groups of schemes
Figure FDA000036038586000313
Are combined together to form a new scheme group containing K schemes
Figure FDA000036038586000314
18. If t istask<TtaskThen t istask=ttask+1, then return to step 2), continue iteration; otherwise go to step 19);
19) calculate the scheme group
Figure FDA000036038586000315
The scheme J with the maximum adaptability value, namely simultaneously minimizing the power consumption and the response timeminAs a task mapping scheme between tasks and nodes of the wireless network on chip.
2. The method for finding mapping schemes and network coding positions between network-on-chip tasks and nodes according to claim 1, wherein the method for calculating the power consumption and response time tasks of the wireless network-on-chip unicast tasks under each mapping scheme in step 2) comprises the following steps: the response time in the task mapping is the longest path delay from input to output and comprises the processing delay of all tasks in the path and the transmission time of data exchange between the tasks.
3. The method for finding mapping schemes and network coding positions between network-on-chip tasks and nodes according to claim 1 or 2, further comprising the steps of:
i. obtaining scheme J according to task mappingminDetermining the mapping node position of the multicast task source task and the multicast task destination task on the wireless on-chip network
Figure FDA00003603858600043
And
Figure FDA00003603858600044
from X, according to the relation between multicast tasks in the task flow graphsourceEliminating nodes of a wireless network on chip mapped by isolated multicast task source nodes, and leaving a multicast task source task with an association relation and a node set mapped by a target task thereof respectively by using vectors X source ' = ( x s 1 , x s 2 , &CenterDot; &CenterDot; &CenterDot; x s j ) And X des ' = ( x d 1 , x d 2 , &CenterDot; &CenterDot; &CenterDot; x d m ) represents;
ii, meterCalculate Xsource' where each source node goes to Xdes' all paths of each destination node in the system are recorded by using a matrix total _ path, wherein a = j × m, and path _ ID = [ b ]1,b2,...ba]Recording the total number of paths from each source to each destination node;
with vector Scheme = (y)1,y2,...ya) To indicate a scheme for coding path selection, ykThe number of a path in the current coding path selection scheme is shown, and the path is the first path on the total _ pathRandomly generating a scheme group containing P distribution schemes
Figure FDA00003603858600042
And Scheme = (y) for each coding path1,y2,...ya) Setting a probability p of a crosscodingAnd probability of mutation qcodingAnd the number of code mapping iterations TcodingAnd let a variable t record the number of iterationscoding=0;
Finding a set of protocols
Figure FDA00003603858600053
The throughput rate of the multicast task and the network transmission power consumption under each scheme;
v. calculate the set of plans
Figure FDA00003603858600054
The size of the adaptability value reflects the priority of the scheme, the higher the value is, the higher the priority is, the priority is superior according to the high transmission throughput rate of the multicast task and the low network power consumption;
grouping protocols
Figure FDA00003603858600055
Is randomly divided into
Figure FDA00003603858600051
A scheme group, wherein N is the number of the schemes in each scheme group, and the most superior schemes in each scheme group are selected according to the priority relationship determined in the step v to form a priority scheme group
Figure FDA00003603858600056
Grouping priority schemes
Figure FDA00003603858600057
The schemes in (1) are paired randomly, and the pairing refers to grouping according to a group of two schemes and setting the probability p of intersection in step icodingInterchanging the serial numbers of the nodes at any same position on two schemes in each pair of schemes, and then combining all interchanged pairs of schemes to obtain a scheme group
Using the mutation probability q set in step icodingChanging scheme group
Figure FDA00003603858600059
The serial number of the node at any position in each scheme in the scheme obtains a scheme group
Figure FDA000036038586000510
From the scheme group, in descending order of the fitness value calculated in the step v
Figure FDA000036038586000511
In selection
Figure FDA00003603858600052
Individual schemes, and groups of schemes
Figure FDA000036038586000512
Are combined together to form a new scheme group containing K schemes
Figure FDA000036038586000513
x. group of schemes
Figure FDA000036038586000514
And
Figure FDA000036038586000515
are combined into a scheme group
Figure FDA000036038586000516
Calculating a set of recipes according to the method of step ivThe multicast task throughput rate and the network power consumption under each scheme;
will scheme group
Figure FDA000036038586000518
The 2P schemes in the group are divided into a plurality of groups, each group represents a boundary set, and the groups are numbered, and the schemes in the groups with smaller numbers have higher priority than the schemes in the groups with larger numbers; the priority is preferably high in terms of high throughput and low network power consumption;
initializing a new recipe set without recipes
Figure FDA00003603858600061
Then, from the small groups divided by the xii step, adding the schemes in the small groups into the small groups in sequence according to the sequence of the numbers of the small groups from large to small
Figure FDA00003603858600062
In (1) up to scheme group
Figure FDA00003603858600063
The number of the schemes in the group exceeds P, and then all the schemes added in the group are taken out;
determining the priority of each scheme in each group in the step xii by the following specific method:
xiv-1 makes the distance value of each scheme in the group 0, and the distance value indicates whether the scheme is closely related to other schemes;
xiv-2 carries out reverse order arrangement on the schemes according to the network power consumption of each scheme calculated in the step xi, wherein the scheme with lower power consumption is arranged in front of the scheme with higher power consumption;
xiv-3 calculating the network power consumption distance of each scheme, wherein the power consumption distance of each scheme is the value obtained by subtracting the power consumption of the scheme ranked in front of the scheme from the power consumption of the scheme ranked behind the scheme;
xiv-4, arranging the schemes according to the throughput rates of the schemes calculated in the step xi, wherein the scheme with the higher throughput rate is arranged in front of the scheme with the lower throughput rate;
xiv-5 calculating the throughput rate distance of each scheme, wherein the throughput rate distance of each scheme is the value obtained by subtracting the throughput rate of the scheme ranked in front of the scheme from the throughput rate of the scheme ranked in back of the scheme;
xiv-6, adding the throughput rate distance and the power consumption distance of each scheme to obtain a distance value of the scheme;
xiv-7 ranks the scheme with the maximum throughput rate and the scheme with the minimum network power consumption at the top, then sorts the rest schemes according to the distance, and ranks the schemes behind the scheme with the maximum throughput rate and the scheme with the minimum network power consumption, wherein the scheme with the larger distance value ranks at the top of the scheme with the smaller distance value, so that the priority of the scheme ranked at the top is higher than that of the scheme ranked at the bottom;
xv. adding the selected priority scheme into the scheme group from the group obtained in the step xiii
Figure FDA00003603858600065
Up to the scheme group
Figure FDA00003603858600064
The number of the schemes is P;
grouping protocols xvi
Figure FDA00003603858600073
Is randomly divided into
Figure FDA00003603858600071
Selecting the most superior schemes in each scheme group according to the priority relationship determined by the xii step and the xiv step to form a priority scheme group Vt';
Will prioritize scheme group Vt' the scheme is then randomly paired, with the probability p of crossover set in step iiicodingInterchanging the serial numbers of the nodes at any same position on two schemes in each pair of schemes, and then combining all interchanged pairs of schemes to obtain a scheme group
Figure FDA00003603858600074
xviii. using the probability of variation q set in step iiicodingChanging scheme group
Figure FDA00003603858600075
The serial number of the node at any position in each scheme in the scheme obtains a scheme group
Figure FDA00003603858600076
The set of protocols determined according to step xii
Figure FDA00003603858600077
Priority order of the middle schemes, from scheme group in order of priority from high to low
Figure FDA00003603858600078
In selection
Figure FDA00003603858600072
Individual schemes, and groups of schemes
Figure FDA00003603858600079
Are combined together to form a new scheme group containing P schemes
Figure FDA000036038586000710
xx. if tcoding<TcodingThen t iscoding=tcoding+1 and then returning to step iv, otherwise step xxi;
calculate scheme group
Figure FDA000036038586000711
The scheme with the maximum adaptability value, namely the scheme with the minimum network transmission power consumption and the maximum throughput rate, is used as a mapping scheme for the coding mapping of the wireless on-chip network;
xxii, judging whether the throughput rate of the coding mapping scheme obtained at the moment is the minimum value specified in the step iv and whether the power consumption is the maximum value specified in the step iv, if the throughput rate is not the minimum value and the power consumption is not the maximum value, recording the mapping scheme, and meanwhile, Z = Z +1, then entering the step xxiii, otherwise, returning to the step 2);
xxiii if Z is less than or equal to ZmaxReturning to the step 2), otherwise, entering the step xxiv;
xxiv. calculating ZmaxAnd selecting the scheme with the maximum adaptability value, namely the scheme with the maximum multicast task throughput rate and the minimum multicast task transmission power consumption as the final mapping selection scheme, and recording the number of the coding point and the path selected by coding mapping.
4. The method for finding mapping scheme and network coding position between network-on-chip task and node as claimed in claim 3, wherein the step iv is performedIn the step, solving the scheme group
Figure FDA00003603858600082
The method for the throughput rate of the multicast task and the network transmission power consumption under each scheme comprises the following steps:
calculating the throughput rate and the network transmission power consumption under each scheme, and firstly judging whether the path combination of the scheme meets the condition that the multicast task transmission can reach the maximum multicast rate; if the condition that the maximum multicast rate can be reached is met, obtaining the coding point of the path combination, and calculating the throughput rate and the network transmission power consumption of the mapping scheme; if the condition of the maximum multicast rate cannot be reached, the throughput rate of the multicast task of the mapping scheme is a minimum value, and the network power consumption of the multicast task transmission of the mapping scheme is a maximum value; the network transmission power consumption refers to power consumption caused by data transmission of a wireless routing node in a network, and comprises arbitration power consumption, coding power consumption and wireless channel transmission power consumption of the node;
the multicast task transmission throughput rate is calculated according to the following formula:
R = &Sigma; s &Element; S f s &CenterDot; n s T M
where S is a set of multicast source nodes, S is one of the source nodes, fsRepresenting the traffic from a source node s to a single destination node in a multicast graph, nsRepresents the number of destination nodes corresponding to the source node s, TMIs the transmission time of the multicast task.
5. The method for finding a mapping scheme between network-on-chip tasks and nodes and a network coding position according to claim 4, wherein in the step ii, the total _ path calculation method is related to a routing algorithm by a Mesh topology structure adopted by the wireless NoC, and the specific steps are as follows:
ii-1Xsource' with j source nodes, Xdes' there are m destination nodes; b0= 0; let the notation x =1, y =1; for a = j × m dimension array path _ ID = [ b =1,b2,...ba]Assignment, specifically:
(1) let p =1, q =1;
(2) selection of Xsource' the p-th source node (let its node number n)s) And Xdes' q-th destination node (let its node number n)d) And the coordinates of the nodes on the Mesh topology are (x) according to the node numbers of the nodess,ys) And (x)d,yd) (ii) a Wherein, x s = n s - 1 - M &CenterDot; floor ( n s - 1 M ) , y s = floor ( n s - 1 M ) , x d = n d - 1 - M &CenterDot; floor ( n d - 1 M ) , y d = floor ( n d - 1 M ) , floor (·) is a floor rounding function;
(3) computing a slave node nsTo node ndIs that the number of shortest routing paths is Max _ path _ num = ( | x s - x d | + | y s - y d | ) ! | x s - x d | ! | y s - y d | ! , The paths are numbered sequentially, the path number value is denoted by e, and each path is sequentially denoted by
Figure FDA00003603858600096
Let c = (q-1) · j + p, bc= Max _ path _ num; then p = p + 1;
(4) if p > j, q = q +1, entering the step (5), otherwise, returning to the step (2);
(5) if q is greater than m, finishing assignment and entering step ii-2; otherwise, returning to the step (2) by letting p =1;
ii-2 initialization
Figure FDA00003603858600097
Line ofAll zero array total _ path of a column;
ii-3 selection of Xsource' the X-th source node and Xdes' let k = (y-1) · j + x;
ii-4 from Total _ Path
Figure FDA00003603858600098
Line start to line
Figure FDA00003603858600099
Line, recording the total b from current source to current destination nodekNumbering each node on each path; initializing g =1, g' =1, e =1; the detailed steps are as follows:
I. selecting the e-th path, wherein r is the number of nodes on the path, the source node is the 1 st node on the path, the node connected with the source node on the path is the 2 nd node on the path, the rest nodes are analogized, and the destination node is the r-th node on the path;
II, assigning the node number at the g' th position in the current path to an element at the g th row and column position of the h row of the array total _ path; then g '= g' +1, g = g + 1;
if g' is less than or equal to r, returning to the step II, otherwise, entering the step IV;
iv, the total _ path line number h = h +1, the path number e = e +1, and go to step V;
v, if e is less than or equal to bkEntering step I; otherwise, entering step ii-5;
ii-5 at this time, from Xsource' the X-th source node to Xdes' all shortest routing paths of the y-th destination node have been recorded; index x = x +1, go to step ii-6;
ii-6 if x > j, then go to ii-7; otherwise, returning to ii-3;
ii-7 notation y = y +1, if y < = m, let x =1, return ii-3; otherwise, it indicates that the assignment to total _ path has been completed.
CN201310330608.6A 2013-07-31 2013-07-31 Find mapping scheme and network code location method between network-on-chip task and node Expired - Fee Related CN103428804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310330608.6A CN103428804B (en) 2013-07-31 2013-07-31 Find mapping scheme and network code location method between network-on-chip task and node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310330608.6A CN103428804B (en) 2013-07-31 2013-07-31 Find mapping scheme and network code location method between network-on-chip task and node

Publications (2)

Publication Number Publication Date
CN103428804A true CN103428804A (en) 2013-12-04
CN103428804B CN103428804B (en) 2016-03-30

Family

ID=49652797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310330608.6A Expired - Fee Related CN103428804B (en) 2013-07-31 2013-07-31 Find mapping scheme and network code location method between network-on-chip task and node

Country Status (1)

Country Link
CN (1) CN103428804B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631659A (en) * 2013-12-16 2014-03-12 武汉科技大学 Schedule optimization method for communication energy consumption in on-chip network
CN103761212A (en) * 2014-01-21 2014-04-30 电子科技大学 Method for designing mapping scheme and topological structure between task and node in on-chip network
CN106254254A (en) * 2016-09-19 2016-12-21 复旦大学 A kind of network-on-chip communication means based on Mesh topological structure
CN107171769A (en) * 2017-05-25 2017-09-15 电子科技大学 A kind of subpackage sends data syn-chronization head establishing method and sort method
CN107391247A (en) * 2017-07-21 2017-11-24 同济大学 A kind of breadth First greed mapping method of network-on-chip application
CN107395507A (en) * 2017-08-31 2017-11-24 电子科技大学 A kind of test the map of perception method for network-on-chip NoC
CN113360450A (en) * 2021-06-09 2021-09-07 中山大学 Construction heuristic mapping method based on network on chip
CN113822423A (en) * 2021-09-30 2021-12-21 上海商汤智能科技有限公司 Scheduling method, scheduling device, computer equipment, network on chip and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625673A (en) * 2008-07-07 2010-01-13 中国科学院计算技术研究所 Method for mapping task of network on two-dimensional grid chip
EP2278838A1 (en) * 2009-07-24 2011-01-26 Broadcom Corporation Method and system for power-limited switching and/or routing in a network
CN102325089A (en) * 2011-09-19 2012-01-18 西安电子科技大学 Fat tree type network-on-chip mapping method based on differential evolution and predatory search strategy
CN102508935A (en) * 2011-09-22 2012-06-20 南京大学 On-chip network mapping method based on ant-colony chaos genetic algorithm

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101625673A (en) * 2008-07-07 2010-01-13 中国科学院计算技术研究所 Method for mapping task of network on two-dimensional grid chip
EP2278838A1 (en) * 2009-07-24 2011-01-26 Broadcom Corporation Method and system for power-limited switching and/or routing in a network
CN102325089A (en) * 2011-09-19 2012-01-18 西安电子科技大学 Fat tree type network-on-chip mapping method based on differential evolution and predatory search strategy
CN102508935A (en) * 2011-09-22 2012-06-20 南京大学 On-chip network mapping method based on ant-colony chaos genetic algorithm

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
陈亦欧等: "Topology and Mapping Co-design for Complex", 《2013 IEEE 8TH CONFERENCE ON INDUSTRIAL ELECTRONICS AND APPLICATIONS》 *
陈亦欧等: "面向实时复杂系统的基于片上网络", 《计算机应用研究》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631659A (en) * 2013-12-16 2014-03-12 武汉科技大学 Schedule optimization method for communication energy consumption in on-chip network
CN103761212A (en) * 2014-01-21 2014-04-30 电子科技大学 Method for designing mapping scheme and topological structure between task and node in on-chip network
CN103761212B (en) * 2014-01-21 2016-08-31 电子科技大学 The method for designing of mapping scheme and topological structure between task and node in network-on-chip
CN106254254A (en) * 2016-09-19 2016-12-21 复旦大学 A kind of network-on-chip communication means based on Mesh topological structure
CN107171769A (en) * 2017-05-25 2017-09-15 电子科技大学 A kind of subpackage sends data syn-chronization head establishing method and sort method
CN107171769B (en) * 2017-05-25 2020-01-07 电子科技大学 Method for setting synchronous head of packet-sending data and sorting method
CN107391247A (en) * 2017-07-21 2017-11-24 同济大学 A kind of breadth First greed mapping method of network-on-chip application
CN107391247B (en) * 2017-07-21 2020-06-26 同济大学 Breadth-first greedy mapping method for network-on-chip application
CN107395507A (en) * 2017-08-31 2017-11-24 电子科技大学 A kind of test the map of perception method for network-on-chip NoC
CN107395507B (en) * 2017-08-31 2019-09-03 电子科技大学 A kind of test the map of perception method for network-on-chip NoC
CN113360450A (en) * 2021-06-09 2021-09-07 中山大学 Construction heuristic mapping method based on network on chip
CN113822423A (en) * 2021-09-30 2021-12-21 上海商汤智能科技有限公司 Scheduling method, scheduling device, computer equipment, network on chip and storage medium

Also Published As

Publication number Publication date
CN103428804B (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN103428804B (en) Find mapping scheme and network code location method between network-on-chip task and node
CN105430707B (en) A kind of wireless sense network multiple-objection optimization method for routing based on genetic algorithm
CN112181867B (en) On-chip network memory controller layout method based on multi-target genetic algorithm
CN105515987B (en) A kind of mapping method based on SDN framework Virtual optical-fiber networks
Chen et al. Constrained skyline query processing against distributed data sites
CN112468401B (en) Network-on-chip routing communication method for brain-like processor and network-on-chip
CN101799838B (en) Method for seeking mapping scheme between tasks and nodes of network on chip
CN113285831B (en) Network behavior knowledge intelligent learning method and device, computer equipment and storage medium
Guo et al. A novel IP-core mapping algorithm in reliable 3D optical network-on-chips
CN102325089B (en) Fat tree type network-on-chip mapping method based on differential evolution and predatory search strategy
Ranade et al. The communication efficiency of meshes, boolean cubes and cube connected cycles for wafer scale integration
CN115242295B (en) Satellite network SDN multi-controller deployment method and system
CN102769806B (en) Resource assignment method and device of optical transmission net
CN101625673B (en) Method for mapping task of network on two-dimensional grid chip
Guerre et al. Hierarchical network-on-chip for embedded many-core architectures
CN103761212A (en) Method for designing mapping scheme and topological structure between task and node in on-chip network
CN108153592A (en) A kind of NoC mapping methods based on improved adaptive GA-IAGA
CN113438171B (en) Multi-chip connection method of low-power-consumption storage and calculation integrated system
CN112580774B (en) Neural network layout method for reconfigurable neural network processor
CN109726479A (en) A kind of dispositions method of network on three-dimensional chip vertical channel
Ashby et al. The impact of global communication latency at extreme scales on Krylov methods
CN102768735B (en) Network community partitioning method based on immune clone multi-objective optimization
Gaffour et al. A new congestion-aware routing algorithm in network-on-chip: 2D and 3D comparison
Nickray et al. Power and delay optimization for network on chip
CN112001141B (en) Brain network inspired middle-large scale on-die interconnection system comprehensive method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160330