CN101834780B - Method for optimizing topological structure and mapping of network on chip - Google Patents

Method for optimizing topological structure and mapping of network on chip Download PDF

Info

Publication number
CN101834780B
CN101834780B CN201010108352.0A CN201010108352A CN101834780B CN 101834780 B CN101834780 B CN 101834780B CN 201010108352 A CN201010108352 A CN 201010108352A CN 101834780 B CN101834780 B CN 101834780B
Authority
CN
China
Prior art keywords
module
simple sequence
integer element
sequence
topological structure
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.)
Expired - Fee Related
Application number
CN201010108352.0A
Other languages
Chinese (zh)
Other versions
CN101834780A (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.)
Wuhan University of Technology WUT
Original Assignee
Wuhan University of Technology WUT
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 Wuhan University of Technology WUT filed Critical Wuhan University of Technology WUT
Priority to CN201010108352.0A priority Critical patent/CN101834780B/en
Publication of CN101834780A publication Critical patent/CN101834780A/en
Application granted granted Critical
Publication of CN101834780B publication Critical patent/CN101834780B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for optimizing a topological structure and mapping of a network on chip (NoC), which comprises the following steps of: determining a single sequence (SS) for optimizing the topological structure through two drawing methods; and acquiring a name sequence for optimizing the mapping through a mapping relation between the single sequence (SS) and a module collection. So, the method can optimize a network structure and the mapping and reduce the power consumption. Besides, the method adopts a GXY routing algorithm to determine the routing of the entire network on chip (NoC), and performs optimization according to a simulated annealing algorithm to obtain a layout result that the power consumption is low and the area is small.

Description

The mapping optimization method of the topological structure of network-on-chip
Technical field
The present invention relates to the general 2D topological structure based on floor planning technology, particularly the mapping optimization method of the topological structure of network-on-chip (NoC, Network-on-Chip).
Background technology
Along with the exhibition of not stopping paying out of the manufacturing technology of integrated circuit, the transistor size that can hold on single silicon chip is more and more, has reached billions of gate leves, and this means can integrated increasing IP kernel in one single chip.Traditional bus structures cannot adapt to the communicating requirement of dozens of and even up to a hundred IP kernels.Now network-on-chip is as the multiprocessing system of the communication Network Based realizing on one chip, solve well the problem (referring to document 1-4) that bus structures are brought, it is applied to chip design by computer networking technology, has obtained being better than bus-structured result.
Yet, in existing NoC design (referring to document 5-8), mapping problems and topological structure are failed to realize always and are optimized, the final position of deteriorated mapping impact on corresponding topological structure, simultaneously, the topological structure of rule causes the waste that chip area is very large, and on this basis, existing NoC design power consumption is larger.
Therefore, be necessary to provide a kind of topological structure and mapping optimization method of improved network-on-chip
The above-mentioned pertinent literature of mentioning:
[1]Kumar?S,Jantsch?A,Soininen?J?P,et?al.A?network?on?chip?architecture?and?design?methodology[C],Proceedings?of?the?IEEE?Computer?Society?Annual?Symposium?on?VLSI,Pittsburgh,2002.105-112
[2]Dally?W?J,Towles?B.Route?packets,not?wires:on-chip?interconnection?networks[C],Proceedings?of?Design?Automation?Conference,Las?Vegas,Nevada,2001,684-689
[3] Zhang Lei, Li Huawei, Li Xiaowei.For the fault-tolerant communications algorithm [J] of network-on-chip, computer-aided design and graphics journal, 2007,19 (4) .508-514
[4] Zhou Ganmin, brilliant human relations.NoC basic research [D]. Hefei: HeFei University of Technology
[5]Chae-Eun?Rhee,Han-You?Jeong,Soonhoi?Ha.Many-to-many?core-switch?mapping?in2-D?mesh?NoC?architecturs[C],ICCD2004,San?Jose,CA,2004.438-443.
[6]Srinivasan?Murali,Giovanni?De?Micheli.Bandwidth-constrained?mapping?of?cores?onto?NoC?architectures[C],Proceedings?of?Design,Automation?and?Test?in?Europe?Conference?and?Exhibition(DATE04).France:Paris,2004,896-901.
[7]Jingcao?Hu,Radu?Marculescu.Energy-and?performance-aware?mapping?for?regular?NoC?architectures[J],IEEE?Transactions?on?CAD?of?IC?and?Systems,2005,24(4),551-562.
[8] Gu Haiyun, Li Zhangwen, Sun Shu. irregular 2D Mesh NoC mapping algorithm research [J]. microelectronics and computer .2008,25 (7) .56-60
Summary of the invention
The mapping optimization method that the object of this invention is to provide a kind of topological structure of network-on-chip, energy optimized network structure and mapping, reduce power consumption.
To achieve these goals, the invention provides a kind of mapping optimization method of topological structure of network-on-chip, comprise the steps: each module in layout, summit from the upper right corner of each module, preferential upwards drafting, then draw to the right, be plotted to the upper right corner of Butut always; From the summit in the lower left corner of each module, preferentially draw downwards, then draw left, be plotted to the lower left corner of Butut always; The all modules numberings in layout, to the straight line in the upper right corner and the crossing order of the first broken line, are given in the lower left corner based on layout; To the numbering module in layout, from the summit in the upper left corner of each module, preferentially upwards draw, then draw left, be plotted to the upper left corner of Butut always; From the summit in the lower right corner of each module, preferentially draw downwards, then draw to the right, be plotted to the lower left corner of Butut always; The upper left corner based on layout, to the straight line in the lower right corner and the crossing order of the second broken line, obtains the simple sequence of optimizing topological structure; According to the mapping relations of simple sequence and module collection, obtain the title sequence of optimizing mapping.
In one embodiment of the invention, described method also comprises step: simple sequence is decoded into horizontal relationship figure and vertical relation figure, and horizontal relationship figure and vertical relation figure are subdivided into up and down to totally four syntople figure.
In another embodiment of the present invention, described method also comprises step: according to title sequence and the horizontal relationship figure being determined by simple sequence and vertical relation figure to sequence to decoding, determine the position of modules.
In an embodiment more of the present invention, described method also comprises step: by comparing the size of integer element and the relation up and down of the left and right location positioning integer element corresponding module of integer element in simple sequence in simple sequence.
In another embodiment of the present invention, described method also comprises step: the route of determining whole network-on-chip NoC according to GXY routing algorithm.
Wherein, the principle of described GXY routing algorithm is first along horizontal direction route, then along vertical direction route, until pass the signal to object module.
In an embodiment more of the present invention, described method also comprises step: according to four syntople figure judge modules are adjacent up and down.
In another embodiment of the present invention, described method also comprises step: according to the distance between the adjacent judged result determination module of module, the route acquisition power consumption of the network-on-chip based on definite.
As shown from the above technical solution, the mapping optimization method of the topological structure of network-on-chip of the present invention is determined the simple sequence of optimizing topological structure by two kinds of method for drafting, and then by the mapping relations of simple sequence and module collection, obtain the title sequence of optimizing mapping, therefore, this method can optimized network structure and mapping, reduces power consumption.In addition, the present invention has adopted GXY routing algorithm to determine the route of whole network-on-chip NoC, and is optimized according to simulated annealing, has obtained layout result low in energy consumption and that area is little.
By following description also by reference to the accompanying drawings, it is more clear that the present invention will become, and these accompanying drawings are used for explaining embodiments of the invention.
Accompanying drawing explanation
Fig. 1 is the flow chart of mapping optimization method of the topological structure of network-on-chip of the present invention.
Fig. 1 a has shown the first topological structure method for drafting in the mapping optimization method of topological structure of network-on-chip shown in Fig. 1.
Fig. 1 b for drawing the schematic diagram of a straight line from the upper left corner to the lower right corner in Fig. 1 a.
Fig. 1 c has shown method module being numbered according to method for drafting shown in Fig. 1 b.
Fig. 1 d has shown the second topological structure method for drafting in the mapping optimization method of topological structure of network-on-chip shown in Fig. 1.
Fig. 1 e for drawing the schematic diagram of a straight line from the lower left corner to the upper right corner in Fig. 1 d.
Fig. 2 a has shown the horizontal relationship figure of the simple sequence decoding that method for drafting shown in Fig. 1 d is definite.
Fig. 2 b has shown the vertical relation figure of the simple sequence decoding that method for drafting shown in Fig. 1 d is definite.
Fig. 2 c has shown topology diagram corresponding to simple sequence that method for drafting shown in Fig. 1 d is definite.
Fig. 3 has shown simple sequence that method for drafting shown in Fig. 1 d is definite and the mapping relations of module collection.
Fig. 4 has shown the up and down relation of sequence to two modules in decoded layout in the mapping optimization method of topological structure of network-on-chip shown in Fig. 1.
Fig. 5 has shown the neighbouring relations between module in the mapping optimization method of topological structure of network-on-chip shown in Fig. 1.
Fig. 6 is the schematic diagram that in the mapping optimization method of topological structure of network-on-chip shown in Fig. 1, GXY routing algorithm is realized route.
Fig. 7 is the task image of MPEG4.
Fig. 8 has shown the result of optimizing distribution that adopts index cooling strategy to anneal and obtain based on task image shown in Fig. 7.
Embodiment
With reference now to accompanying drawing, describe embodiments of the invention, in accompanying drawing, similarly element numbers represents similar element.
See Fig. 1, the mapping optimization method of the topological structure of the present embodiment network-on-chip, comprises the steps:
Step S10, to each module in layout, from the summit in the upper right corner of each module, preferentially upwards draws, then draws to the right, is plotted to the upper right corner of Butut always; From the summit in the lower left corner of each module, preferentially draw downwards, then draw left, be plotted to the lower left corner of Butut always;
Step S11, all modules numberings in layout, to the straight line in the upper right corner and the crossing order of the first broken line, are given in the lower left corner based on layout;
Step S12, to the numbering module in layout, from the summit in the upper left corner of each module, preferentially upwards draws, then draws left, is plotted to the upper left corner of Butut always; From the summit in the lower right corner of each module, preferentially draw downwards, then draw to the right, be plotted to the lower left corner of Butut always;
Step S13, the upper left corner based on layout, to the straight line in the lower right corner and the crossing order of the second broken line, obtains the simple sequence (Single-Sequence, SS) of optimizing topological structure;
Step S14, is decoded into horizontal relationship figure and vertical relation figure by simple sequence, and horizontal relationship figure and vertical relation figure are subdivided into up and down to totally four syntople figure;
Step S15, according to the mapping relations of simple sequence and module collection, obtains the title sequence (Name-Sequence, NS) of optimizing mapping;
Step S16, according to title sequence and the horizontal relationship figure being determined by simple sequence and vertical relation figure to sequence to decoding, determine the position of modules;
Step S17, by comparing the size of integer element and the relation up and down of the left and right location positioning integer element corresponding module of integer element in simple sequence in simple sequence;
Step S18, determines the route of whole network-on-chip NoC according to GXY routing algorithm;
Step S19, according to four syntople figure judge modules are adjacent up and down;
Step S20, according to the distance between the adjacent judged result determination module of module, the route acquisition power consumption of the network-on-chip based on definite.
As seen from the above, this method adopts two sequence representations-determine the simple sequence SS of topological structure and determines the title sequence NS of mapping, can be optimized topological structure, mapping, realizes the alap target of power consumption in the manufacture process of special-purpose multinuclear equipment.Because this method adopts simple sequence SS and module title sequence NS, represent layout, therefore can be described as SSNS layout representation.
Below the mapping optimization method of the topological structure of embodiment network-on-chip is elaborated.
Determine the simple sequence of optimizing topological structure
The first topological structure method for drafting
Step1: to each module in layout, from the summit in the upper right corner of each module, preferentially upwards draw, then draw to the right, be plotted to the upper right corner of Butut always.
Step2: in like manner, from the summit in the lower left corner of each module, preferentially draw downwards, then draw left, be plotted to the lower left corner of Butut always, obtain topological structure as shown in Figure 1a.
The second is flutterred structure method for drafting
Step1: to each module in layout, from the summit in the upper left corner of each module, preferentially upwards draw, then draw left, be plotted to the upper left corner of Butut always.
Step2: in like manner, from the summit in the lower right corner of each module, preferentially draw downwards, then draw to the right, be plotted to the lower left corner of Butut always.
In Fig. 1 a, draw a straight line from the upper left corner to the lower right corner, as Fig. 1 b, according to straight line and the crossing order of broken line, by numeral, to module, be numbered, obtain Fig. 1 c.As Fig. 1 c, module is numbered with digital 1-6.Use the second topological structure method for drafting, the module of numbering is carried out to topological structure drafting, obtain topological structure as shown in Figure 1 d.In Fig. 1 d, draw a straight line from the lower left corner to the upper right corner, as Fig. 1 e, according to straight line and the crossing order of broken line, obtain one group of sequence: (4,2,6,1,3,5)-determine simple sequence SS of topological structure.
As seen from the above, to the topological structure location problem that contains n module, the length of simple sequence SS is only n, this method be sequence to representation (with reference to H.Murata, K.Fujiyoshi, S.Nakatake, et al.. " Rectangle-Packing-based Module Placement, " IEEE/ACM International Conference on Computer-Aided Design (ICCAD), San Jose, California, USA, November1995, a kind of improvement 472-479), only use an integer sequence just (ABLR) up and down relation of module can be showed, determine topological structure, realize the optimization of topological structure.In NoC problem, through the topological structure of optimizing, to be far superior to general topological structure (as Mesh topological structure).
Relation up and down between determination module
In simple sequence SS, by comparing the size of integer element and the relation up and down of the left and right location positioning integer element corresponding module of integer element in simple sequence SS in simple sequence SS.Specifically be defined as follows:
(1) in simple sequence SS, integer element a is when the right while of integer element b a<b, and the module that integer element a is corresponding is positioned at the top of the module that integer element b is corresponding.
(2) in simple sequence SS integer element a on the left side of integer element b a>b simultaneously, the module that integer element a is corresponding be positioned at module that integer element b is corresponding below.
(3) in simple sequence SS, integer element a is at the left side while of integer element b a<b, and the module that integer element a is corresponding is positioned at the left side of the module that integer element b is corresponding.
(4) in simple sequence SS, integer element a is at the right while of integer element b a>b, and the module that integer element a is corresponding is positioned at the right of the module that integer element b is corresponding.
Fig. 4 has shown the up and down relation of sequence to two modules in (SP) decoded layout.As figure, the left margin of module j not yet leaves the region of top, therefore the position of module j belongs to the top of module i.
The decoding of simple sequence
Simple sequence SS is decoded into unique horizontal relationship figure and vertical relation figure, and (concrete coding/decoding method is with reference to Kang Li, Juebang Yu, YongbingYu, Configuration of Floorplan and Placement Algorithm Using Horizontal and Vertical Contour Based on Single Sequence[C], In Proceedings of Communications, Circuits and Systems, 2008, 1171-1174), this two figure correspondence the general 2D topological structure of NoC, it is comparatively simple that visible this method is decoded into layout to this integer sequence of simple sequence SS.Horizontal relationship figure and the vertical relation figure of above-mentioned simple sequence SS (4,2,6,1,3,5) decoding be shown in shown in Fig. 2 a, 2b, and Fig. 2 c is shown in by corresponding 2D topological structure.
The present invention adopts in abutting connection with this data structure of chained list and carrys out storage map, different according to the sensing of pointer, and above-mentioned horizontal relationship figure and vertical relation figure are stored as respectively to left and right in abutting connection with chained list with up and down in abutting connection with chained list.To right and upper in abutting connection with chained list, new limit is inserted into the tail end of chained list.Directly traversal is right and upper in abutting connection with chained list, obtains a left side and lower to chained list, and for left and lower to chained list, new limit is inserted into after a node of chained list.
Determine the title sequence of optimizing mapping
According to the mapping relations of simple sequence and module collection, determine title sequence.Above-mentioned simple sequence SS=(4,2,6,1,3,5) for example, module collection M={SRAM, FIFO, ME, Input, VLC, CompBlock}, the element in simple sequence SS forms with element in module collection M anyly shines upon corresponding a kind of layout one by one.
Mapping relations as shown in Figure 3 can obtain the sequence of modules corresponding with simple sequence SS: (SRAM, FIFO, ME, Input, VLC, CompBlock), this sequence is called title sequence NS.
The module title sequence NS that the simple sequence SS that the sequence that is 2n by length is n to (SP) by a length and length are n represents.According to title sequence NS and the horizontal relationship figure being determined by simple sequence SS and vertical relation figure, sequence is decoded to (SP), the apex coordinate in the lower left corner of each IP module (is usingd as its position in the position of determining each IP module, particular location determines that method is with reference to Kang Li, Juebang Yu, YongbingYu, Configuration of Floorplan and Placement Algorithm Using Horizontal and Vertical Contour Based on Single Sequence[C], In Proceedings of Communications, Circuits and Systems, 2008, 1171-1174).The position of each IP module that this method obtains is all tightly adjacent.
The mapping method of above-mentioned NoC has following benefit: 1) position due to each IP module is all tightly adjacent, so the also shortening thereupon of the distance of route, and power consumption also can reduce; 2) the tightly adjacent area that also can reduce whole Butut in the position of each IP module; 3) from above-mentioned algorithm, can find out, need not consider the problem that module is overlapping.
Whether judge module is adjacent
Suppose module M ithe numeral being mapped in simple sequence SS is S i, module M jthe numeral being mapped in simple sequence SS is S j.Two modules are adjacent is:
1) in right syntople figure, S ifirst abutment points in abutting connection with chained list be S j, M iat M jthe left side and be adjacent.
2) in left syntople figure, S ifirst abutment points in abutting connection with chained list be S j, M iat M jthe right and be adjacent.
3) in lower syntople figure, S ifirst abutment points in abutting connection with chained list be S j, M iat M jtop and be adjacent.
4) in upper syntople figure, S ifirst abutment points in abutting connection with chained list be S j, M iat M jbelow and be adjacent.
Based on above-mentioned definition, module adjacent with module M in Fig. 5 has:
1) left adjacent: a module M left side 1, a module M left side 2;
2) right adjacent: the module M right side 1, the module M right side 2;
3) upper adjacent: module M is upper 1, and module M upper 2;
4) lower adjacent: under module M 1, under module M 2, under module M 3.
Without the static GXY routing algorithm of deadlock
Based on the definite topological structure of simple sequence SS, according to GXY routing algorithm, determine the route of whole network-on-chip NoC.Wherein the principle of GXY routing algorithm is first along horizontal direction route, then along vertical direction route, until pass the signal to object module.
Describe GXY routing algorithm below in detail and how to realize route.As shown in Figure 6, suppose that it is module M that route plays point module s, terminal module is module M g, concrete route step is:
Step1: determination module M swith module M grelative position relation: module M sat module M gupper right side;
Step2: make module M sroute one step (choosing one of them left adjacent block) left, and new module is designated as to module M s; Make module M groute one step (choosing adjacent block on one of them) upwards, and new module is designated as to M g;
Step3: constantly repeat step2, until run into joining module M cross;
Step4: by module M in step2 swith module M gthe Path Connection of route gets up, and the path of connection is module M sto module M grouting plan.
At module M sduring route, according to actual conditions, choose left adjacent block left, when switch is all placed on the lower left corner, choose last left adjacent block at every turn; At module M gduring the route that makes progress, according to actual conditions, choose upper adjacent block, when switch is all placed on the lower left corner, choose adjacent block on first at every turn.In addition, do not have right adjacent block, using first abutment points as right adjacent block, not having upper and lower, left adjacent block is similar processing.
As seen from the above, this method has adopted the XY dimension order routing algorithm GXY routing algorithm (generalized XY routing algorithm) of promoting to determine the route of whole network-on-chip NoC, than traditional XY dimension order routing algorithm, not only overcome the defect that can only be applied on regular Mesh topological structure, can be applied on irregular 2D topological structure, and can reduce largely power consumption.
NoC power consumption calculation
Because the circuit scale of NoC is huge, and processing based under nanometer technology, on single-chip, realize under the integrated condition of large-scale circuit more, how to reduce communication power consumption and become the problem that designer is more and more concerned about, so power consumption also becomes the most important constraint of NoC.
Definition 1IP core communication task figure G (V, C) is a directed graph, and each vertex v ∈ V, represents an IP module, every directed edge c ij∈ C, represents the communication task from i IP kernel to j IP kernel, weight w ijrepresent communication task c ijdata traffic, unit is flit, traffic is directly proportional to flit number.
Definition 2NoC topology diagram P (R, L) is an oriented complete graph, and each summit r ∈ R represents a resource node, every directed edge l ij∈ L, represents the path from node i to node j, its weights t ijthe power consumption size of expression from flit of node i transmission to node j.
Given IP kernel communication task figure G and NoC topology diagram P, find processing unit T to the mapping function Φ of resource node R, and the target function of NoC power consumption is:
MinE = &Sigma; i = 1 n &Sigma; j = 1 n w ij e map ( r i ) map ( r j ) - - - ( 1 )
Constraints is:
&ForAll; v j &Element; G , &Phi; ( v i ) &Element; R - - - ( 2 )
&ForAll; v i &NotEqual; v j &Element; G , &Phi; ( v i ) &NotEqual; &Phi; ( v j ) &Element; R - - - ( 3 )
Wherein, constraints (2) and (3) show that each processing unit can only be assigned on a resource node, and each resource node can only distribute a processing unit.
Wherein, wherein, the total power consumption that E is NoC, w ijrepresent that i IP kernel is to the data traffic of the communication task of j IP kernel,
Figure GDA0000379439740000104
expression is from resource node r itransmit a data flow control to resource node r jpower consumption.
Figure GDA0000379439740000105
calculating adopted the people such as H-S.Wang (with reference to Hangsheng Wang, Xinping Zhu, Li-Shiuan Peh, et al..Orion:A Power-Performance Simulator for Interconnection Networks, In Proceedings of MICRO35, Istanbul, Turkey, November2002,294-305) the communication power consumption model of the architecture level set up.Particularly,
Figure GDA0000379439740000111
for:
e map ( r i ) map ( r j ) = N node e node + D link e link - - - ( 4 )
Wherein, e noderepresent the energy that 1 flit data of each switch processes consume, e linkrepresent the energy that each flit data consumes through a passage, N nodethe number of switches that represents process in routing procedure, D linkexpression is from node r ito node r jroute distance.
If i IP module is adjacent with j IP module, the distance between two modules adopts manhatton distance; If i IP module and j IP module are non-conterminous, by routed path, again i IP module, a j IP module and the module between two modules are numbered: i, i+1 ..., j-1, j, now the distance between two modules is:
&Sigma; k = i j - 1 d k
Wherein, d krepresent the manhatton distance between k IP module and k+1 IP module, the power consumption size that can obtain between i IP module and j IP module is thus:
e map ( r i ) map ( r j ) = N node e node + &Sigma; k = i j - 1 d k e link
By formula (1), just can calculate total power consumption again.
Analysis of complexity of the present invention
The complexity of solution space
Adopt BSG grid (whole chip is divided into n * n grid), its solution space is
Figure GDA0000379439740000115
2, the complexity of solution space much larger than O ((n! ) 2).
Use SSNS layout representation of the present invention, if there be n module, the complexity of solution space be O (( ) 2).
Therefore, the solution space complexity of SSNS layout representation of the present invention is lower than adopting the solution space complexity of BSG.
Calculate the complexity of power consumption
Adopt BSG grid, dijkstra's algorithm when calculating power consumption, its complexity be node number square, the Layout matrix that is n * n due to size has (n+1) 2individual node, will calculate so
Figure GDA0000379439740000121
to the distance between module, the complexity of calculating power consumption is
Figure GDA0000379439740000122
be O (n 6).
By SSNS layout representation of the present invention, only need calculate the manhatton distance between module between two with the decoded module coordinate of layout, the complexity of calculating the beeline of a pair of module is Constant Grade.The complexity of decoding due to layout is O (n 2), the complexity of calculating power consumption is be O (n 2).
Therefore, the calculating power consumption complexity of SSNS layout representation of the present invention is lower than adopting the calculating power consumption complexity of BSG.
Consider the calculating power consumption complexity of routing algorithm
If calculate in the process of power consumption and consider route, according to graph of a relation up and down, can obtain modules A to the routed path of module B, complexity is only O (n).Due to total in layout
Figure GDA0000379439740000124
2 pairs of modules, introduce after routing algorithm, and the complexity of calculating power consumption is O (n 3).
Therefore,, even if consider routing algorithm, the calculating power consumption complexity of SSNS layout representation of the present invention is still low than adopting the calculating power consumption complexity of BSG.
Complexity by the mapping of NoC and the solution space of routing issue can find out, this problem is a NP difficult problem (NP-Complete, a nonpolynomial algorithm difficult problem), and the general heuritic approach that adopts solves at present.
The present invention adopts simulated annealing method that the mapping of network-on-chip and routing issue are optimized and are solved.If the initial value of NS and SS is 1,2,3 ..., n.Can produce new solution with following several operations:
Operation 1: some to numeral in NS of exchange;
Operation 2: i numeral in NS is inserted into j position;
Operation 3: some to numeral in SS of exchange;
Operation 4: i numeral in SS is inserted into j position;
Operation 5: set a probable value (as 0.0001), and exchange width and the height of i module with this probability.
Adopt index cooling strategy to anneal, with the task image of the MPEG4 shown in Fig. 7, test, what obtain optimizes distribution result as shown in Figure 8.This method has carried out route to be optimized according to simulated annealing, has obtained layout result low in energy consumption and that area is little.
Invention has been described for above combination most preferred embodiment, but the present invention is not limited to the embodiment of above announcement, and should contain the various modifications of carrying out according to essence of the present invention, equivalent combinations.

Claims (6)

1. a mapping optimization method for the topological structure of network-on-chip, comprises the steps:
Step S10, to each module in layout, from the summit in the upper right corner of each module, preferentially upwards draws, then draws to the right, is plotted to the upper right corner of Butut always; From the summit in the lower left corner of each module, preferentially draw downwards, then draw left, be plotted to the lower left corner of Butut always;
Step S11, all modules numberings in layout, to the straight line in the upper right corner and the crossing order of the first broken line, are given in the lower left corner based on layout;
Step S12, to the numbering module in layout, from the summit in the upper left corner of each module, preferentially upwards draws, then draws left, is plotted to the upper left corner of Butut always; From the summit in the lower right corner of each module, preferentially draw downwards, then draw to the right, be plotted to the lower left corner of Butut always;
Step S13, the upper left corner based on layout, to the straight line in the lower right corner and the crossing order of the second broken line, obtains the simple sequence SS that optimizes topological structure, is specially:
Draw a straight line from the upper left corner to the lower right corner, according to straight line and the crossing order of broken line, with digital 1-16, to module, be numbered, the module of numbering is carried out to topological structure as follows and draw and obtain topological structure:
Step1: to each module in layout, from the summit in the upper left corner of each module, preferentially upwards draw, then draw left, be plotted to the upper left corner of Butut always;
Step2: in like manner, from the summit in the lower right corner of each module, preferentially draw downwards, then draw to the right, be plotted to the lower left corner of Butut always;
Draw a straight line from the lower left corner to the upper right corner, according to straight line and the crossing order of broken line, obtain one group of sequence: (4,2,6,1,3,5), this sequence is exactly the simple sequence SS of topological structure;
Step S14, is decoded into horizontal relationship figure and vertical relation figure by simple sequence, and horizontal relationship figure and vertical relation figure are subdivided into up and down to totally four syntople figure;
Step S15, according to the mapping relations of simple sequence and module collection, obtains the title sequence NS that optimizes mapping;
Step S16, according to title sequence and the horizontal relationship figure being determined by simple sequence and vertical relation figure to sequence to decoding, determine the position of modules;
Step S17, by comparing the size of integer element and the relation up and down of the left and right location positioning integer element corresponding module of integer element in simple sequence in simple sequence;
Step S18, determines the route of whole network-on-chip NoC according to GXY routing algorithm;
Step S19, according to four syntople figure judge modules are adjacent up and down;
Step S20, according to the distance between the adjacent judged result determination module of module, the route acquisition power consumption of the network-on-chip based on definite.
2. the mapping optimization method of the topological structure of network-on-chip as claimed in claim 1, is characterized in that: described step S17 determines that the method for the relation up and down of the corresponding module of integer element is:
In simple sequence SS, by comparing the size of integer element and the relation up and down of the left and right location positioning integer element corresponding module of integer element in simple sequence SS in simple sequence SS, concrete is set as follows:
(1) in simple sequence SS, integer element a is when the right while of integer element b a<b, and the module that integer element a is corresponding is positioned at the top of the module that integer element b is corresponding;
(2) in simple sequence SS integer element a on the left side of integer element b a>b simultaneously, the module that integer element a is corresponding be positioned at module that integer element b is corresponding below;
(3) in simple sequence SS, integer element a is at the left side while of integer element b a<b, and the module that integer element a is corresponding is positioned at the left side of the module that integer element b is corresponding;
(4) in simple sequence SS, integer element a is at the right while of integer element b a>b, and the module that integer element a is corresponding is positioned at the right of the module that integer element b is corresponding.
3. the mapping optimization method of the topological structure of network-on-chip as claimed in claim 1, is characterized in that: the method that described step S15 obtains the title sequence NS that optimizes mapping is:
According to the mapping relations of simple sequence SS and module collection, determine title sequence: the element in simple sequence SS forms with element in module collection M, and any to shine upon one by one corresponding a kind of layout be title sequence NS.
4. the mapping optimization method of the topological structure of network-on-chip as claimed in claim 1, is characterized in that: the determination methods of described step S14 syntople is:
Setting module M ithe numeral being mapped in simple sequence SS is S i, module M jthe numeral being mapped in simple sequence SS is S j, two modules are adjacent is:
1) in right syntople figure, S ifirst abutment points in abutting connection with chained list be S j, M iat M jthe left side and be adjacent;
2) in left syntople figure, S ifirst abutment points in abutting connection with chained list be S j, M iat M jthe right and be adjacent;
3) in lower syntople figure, S ifirst abutment points in abutting connection with chained list be S j, M iat M jtop and be adjacent;
4) in upper syntople figure, S ifirst abutment points in abutting connection with chained list be S j, M iat M jbelow and be adjacent.
5. the mapping optimization method of the topological structure of network-on-chip as claimed in claim 1, is characterized in that: described step S18 determines that according to GXY routing algorithm the concrete grammar of the route of whole network-on-chip NoC is:
It is module M that setting route plays point module s, terminal module is module M g, concrete route step is:
Step1: determination module M swith module M grelative position relation: module M sat module M gupper right side;
Step2: make module M sroute one step left, and new module is designated as to module M s; Make module M groute one step upwards, and new module is designated as to M g;
Step3: constantly repeat step2, until run into joining module M cross;
Step4: by module M in step2 swith module M gthe Path Connection of route gets up, and the path of connection is module M sto module M grouting plan.
6. the mapping optimization method of the topological structure of network-on-chip as claimed in claim 1, is characterized in that: the concrete grammar of the route acquisition power consumption of the network-on-chip of described step S20 based on definite is:
Definition 1IP core communication task figure G (V, C) is a directed graph, and each vertex v ∈ V, represents an IP module, every directed edge c ij∈ C, represents the communication task from i IP kernel to j IP kernel, weight w ijrepresent communication task c ijdata traffic, unit is flit, traffic is directly proportional to flit number;
Definition 2NoC topology diagram P (R, L) is an oriented complete graph, and each summit r ∈ R represents a resource node, every directed edge l ij∈ L, represents the path from node i to node j, its weights t ijthe power consumption size of expression from flit of node i transmission to node j;
Given IP kernel communication task figure G and NoC topology diagram P, find processing unit T to the mapping function Φ of resource node R, and the target function of NoC power consumption is:
Figure FDA0000379439730000051
Constraints is:
Figure FDA0000379439730000052
Figure FDA0000379439730000053
Wherein, constraints (2) and (3) show that each processing unit can only be assigned on a resource node, and each resource node can only distribute a processing unit;
Wherein, the total power consumption that E is NoC, w ijrepresent that i IP kernel is to the data traffic of the communication task of j IP kernel,
Figure FDA0000379439730000054
expression is from resource node r itransmit a data flow control to resource node r jpower consumption, particularly:
Figure FDA0000379439730000055
Wherein, e noderepresent the energy that 1 flit data of each switch processes consume, e linkrepresent the energy that each flit data consumes through a passage, N nodethe number of switches that represents process in routing procedure, D linkexpression is from node r ito node r jroute distance;
If i IP module is adjacent with j IP module, the distance between two modules adopts manhatton distance; If i IP module and j IP module are non-conterminous, by routed path, again i IP module, a j IP module and the module between two modules are numbered: i, i+1 ..., j-1, j, now the distance between two modules is:
Figure FDA0000379439730000056
Wherein, d krepresent the manhatton distance between k IP module and k+1 IP module, the power consumption size of obtaining thus between i IP module and j IP module is:
By formula (1), calculate total power consumption again.
CN201010108352.0A 2010-01-28 2010-01-28 Method for optimizing topological structure and mapping of network on chip Expired - Fee Related CN101834780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010108352.0A CN101834780B (en) 2010-01-28 2010-01-28 Method for optimizing topological structure and mapping of network on chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010108352.0A CN101834780B (en) 2010-01-28 2010-01-28 Method for optimizing topological structure and mapping of network on chip

Publications (2)

Publication Number Publication Date
CN101834780A CN101834780A (en) 2010-09-15
CN101834780B true CN101834780B (en) 2014-04-16

Family

ID=42718713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010108352.0A Expired - Fee Related CN101834780B (en) 2010-01-28 2010-01-28 Method for optimizing topological structure and mapping of network on chip

Country Status (1)

Country Link
CN (1) CN101834780B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106610915B (en) * 2015-10-22 2020-05-01 深圳市博巨兴微电子科技有限公司 IP core optimization method and device of multiprocessor system
US10404574B2 (en) * 2016-11-24 2019-09-03 Mellanox Technologies Tlv Ltd. Deadlock-free routing in lossless multidimensional cartesian topologies with minimal number of virtual buffers
CN107391247B (en) * 2017-07-21 2020-06-26 同济大学 Breadth-first greedy mapping method for network-on-chip application
CN107688709B (en) * 2017-08-31 2019-12-03 电子科技大学 A kind of service life optimization mapping method of network-on-chip NoC
CN107526894B (en) * 2017-09-06 2020-04-21 北京理工大学 Layout and wiring method for multi/many-core architecture TriBA-CMPs
CN107944015A (en) * 2017-12-11 2018-04-20 山东农业大学 Threedimensional model typical structure based on simulated annealing excavates and method for evaluating similarity
CN108173760B (en) * 2017-12-22 2020-11-20 北京工业大学 Network-on-chip mapping method based on improved simulated annealing algorithm
CN110034950B (en) * 2019-02-28 2021-08-10 华南理工大学 Mapping method for network on 3D chip
CN110784781B (en) * 2019-10-28 2021-06-08 西安电子科技大学 Waveguide layout optimization method of optical switching structure supporting multicast/broadcast
CN112202599B (en) * 2020-09-11 2021-08-03 北京科技大学 Topology-aware mapping method and system for heterogeneous multi-core platform communication optimization

Also Published As

Publication number Publication date
CN101834780A (en) 2010-09-15

Similar Documents

Publication Publication Date Title
CN101834780B (en) Method for optimizing topological structure and mapping of network on chip
US8418113B1 (en) Consideration of local routing and pin access during VLSI global routing
US10268795B2 (en) Method and system for timing optimization with detour prediction
US6480991B1 (en) Timing-driven global placement based on geometry-aware timing budgets
US8356267B2 (en) Statistical method for hierarchically routing layout utilizing flat route information
US20160085898A1 (en) Automated layout for integrated circuits with nonstandard cells
WO2021082867A1 (en) Skew-driven global wiring method employing bus sensing
CN111291525B (en) Layer allocation method considering bus and non-bus net
US8954912B2 (en) Structured placement of latches/flip-flops to minimize clock power in high-performance designs
Liu et al. PSO-based power-driven X-routing algorithm in semiconductor design for predictive intelligence of IoT applications
US20120317527A1 (en) Partitioning for hardware-accelerated functional verification
US8234612B2 (en) Cone-aware spare cell placement using hypergraph connectivity analysis
US8589848B2 (en) Datapath placement using tiered assignment
US8266566B2 (en) Stability-dependent spare cell insertion
US20120233575A1 (en) Layout method for integrated circuit including vias
CN105577539A (en) Routing method and system for non-regular three-dimensional integrated circuit network-on-chip
Huang et al. Application-specific network-on-chip synthesis with topology-aware floorplanning
CN115983189A (en) Analog integrated circuit layout wiring method and system for self-adaptive grid
CN112861466B (en) Wiring track distribution method, electronic equipment and computer readable storage medium
US20220405458A1 (en) Machine-learning-based power/ground (p/g) via removal
Lai et al. Floorplan-aware application-specific network-on-chip topology synthesis using genetic algorithm technique
US8132141B2 (en) Method and apparatus for generating a centerline connectivity representation
Jiang et al. A test method of interconnection online detection of NoC based on 2D Torus topology
CN107529177A (en) The three-dimension GIS system merged based on PEGASIS agreements and belief function gross data
Ho et al. NVCell 2: Routability-Driven Standard Cell Layout in Advanced Nodes with Lattice Graph Routability Model

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

Granted publication date: 20140416

Termination date: 20150128

EXPY Termination of patent right or utility model