[go: up one dir, main page]

CN102752207B - Reconfigurable 2D (two-dimensional) mesh on-chip network structure and reconfiguration method thereof - Google Patents

Reconfigurable 2D (two-dimensional) mesh on-chip network structure and reconfiguration method thereof Download PDF

Info

Publication number
CN102752207B
CN102752207B CN201210233794.7A CN201210233794A CN102752207B CN 102752207 B CN102752207 B CN 102752207B CN 201210233794 A CN201210233794 A CN 201210233794A CN 102752207 B CN102752207 B CN 102752207B
Authority
CN
China
Prior art keywords
core
router
network
reconfiguration
state
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
CN201210233794.7A
Other languages
Chinese (zh)
Other versions
CN102752207A (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.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Institute of Technology Shenzhen
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 Harbin Institute of Technology Shenzhen filed Critical Harbin Institute of Technology Shenzhen
Priority to CN201210233794.7A priority Critical patent/CN102752207B/en
Publication of CN102752207A publication Critical patent/CN102752207A/en
Application granted granted Critical
Publication of CN102752207B publication Critical patent/CN102752207B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

可重配置的2D mesh片上网络结构及其重配置方法,涉及一种可重配置的2D mesh片上网络结构及其重配置方法。为了解决现有的2D mesh结构在重配置之后虽然虚拟拓扑与原始的拓扑结构相同,但其底层的网络拓扑结构同原始的拓扑结构差异很大的问题。可重配置的2D mesh片上网络结构的每个核心可与其相邻的四个路由器之一连接:每个路由器与相邻的4个核心通过多路选择器MUX和网络接口NI实现相互通讯。基于上述结构的重配置方法:在选择的子网络的中根据每个路由器与核心的连接状况,对路由器与核心进行连通,且使一个核心同一时刻只能与一个路由器连通。本发明用于重配置2D mesh片上网络结构。

A reconfigurable 2D mesh on-chip network structure and a reconfiguration method thereof relate to a reconfigurable 2D mesh on-chip network structure and a reconfiguration method thereof. In order to solve the problem that although the virtual topology of the existing 2D mesh structure is the same as the original topology after reconfiguration, the underlying network topology is very different from the original topology. Each core of the reconfigurable 2D mesh on-chip network structure can be connected to one of the four adjacent routers: each router communicates with the four adjacent cores through the multiplexer MUX and the network interface NI. The reconfiguration method based on the above structure: In the selected sub-network, according to the connection status of each router and the core, the routers are connected to the core, and a core can only be connected to one router at a time. The invention is used for reconfiguring the 2D mesh on-chip network structure.

Description

可重配置的2D mesh片上网络结构及其重配置方法Reconfigurable 2D mesh network-on-chip structure and its reconfiguration method

技术领域 technical field

本发明涉及一种可重配置的2D mesh片上网络结构及其重配置方法。  The invention relates to a reconfigurable 2D mesh on-chip network structure and a reconfiguration method thereof. the

背景技术 Background technique

随着半导体制作工艺的进步,多核芯片和基于多核的并行计算成为提高芯片性能的新手段。然而,随着芯片上晶体管的密度越来越大,特征线宽越来越小,对于生产单核芯片的要求也越来越高,难度越来越大,更不用说多核芯片了。一种广泛应用的解决方案就是在芯片设计和制造过程中引入容错技术。冗余容错作为一种简单的容错方案,在芯片设计领域得到迅速的发展和应用。之前的工作主要集中在微结构级的冗余容错,这种技术在核心数量较少的情况下还比较适用。但是,当核心数量增长到一个临界值时,微结构冗余引入的硬件成本则有些得不偿失了,核心冗余容错变得非常重要。  With the advancement of semiconductor manufacturing technology, multi-core chips and multi-core-based parallel computing have become new means to improve chip performance. However, as the density of transistors on a chip increases and the characteristic line width becomes smaller and smaller, the requirements for the production of single-core chips become higher and higher, and the difficulty becomes more and more difficult. A widely used solution is to introduce fault-tolerant technology in the chip design and manufacturing process. As a simple fault-tolerant scheme, redundant fault-tolerance has been rapidly developed and applied in the field of chip design. Previous work mainly focused on redundant fault tolerance at the microarchitecture level, which is more applicable when the number of cores is small. However, when the number of cores increases to a critical value, the hardware cost introduced by microarchitecture redundancy is somewhat outweighed, and core redundancy fault tolerance becomes very important. the

另一方面,片上网络(片上网络)技术由于其高可扩展性,高带宽的特点,被广泛用作多核芯片的互联架构。由于片上网络的拓扑结构对于多核系统的性能有着非常重要的影响,尤其体现在一些通信密集型的应用上。所以,如果操作系统能够感知多核系统的拓扑结构,将极大地有利于提高任务的调度和分派效率,从而提高多核系统的性能。同时,程序员也应该了解多核系统的拓扑结构,以便于在设计并行程序的时优化其性能。然而,这种优化同时也增强了程序与拓扑结构的耦合,使得当底层物理拓扑结构发生变化时(如某些计算节点失效)原来对上层软件所做的优化可能不会带来性能提升,甚至导致性能下降。因此,如果多核系统能够对上层的操作系统和应用保持一个统一的拓扑结构,将会极大地减小物理拓扑结构变化对上层软件造成的影响。  On the other hand, the network-on-chip (Network-on-Chip) technology is widely used as the interconnect architecture of multi-core chips due to its high scalability and high bandwidth characteristics. The topology of the network on chip has a very important impact on the performance of the multi-core system, especially in some communication-intensive applications. Therefore, if the operating system can perceive the topology of the multi-core system, it will greatly help improve the efficiency of task scheduling and assignment, thereby improving the performance of the multi-core system. At the same time, programmers should also understand the topology of multi-core systems in order to optimize their performance when designing parallel programs. However, this optimization also strengthens the coupling between the program and the topology, so that when the underlying physical topology changes (for example, some computing nodes fail), the original optimization of the upper-layer software may not bring about performance improvement, or even lead to performance degradation. Therefore, if the multi-core system can maintain a unified topology structure for the upper-layer operating system and applications, the impact of changes in the physical topology structure on the upper-layer software will be greatly reduced. the

发明内容 Contents of the invention

本发明的目的是为了解决现有的2D mesh结构在重配置之后虽然虚拟拓扑与原始的拓扑结构相同,但其底层的网络拓扑结构同原始的拓扑结构差异很大的问题,提供一种可重配置的2D mesh片上网络结构及其重配置方法。  The purpose of the present invention is to solve the problem that although the virtual topology of the existing 2D mesh structure is the same as the original topology after reconfiguration, the underlying network topology is very different from the original topology, and to provide a reproducible Configured 2D mesh network-on-chip structure and its reconfiguration method. the

可重配置的2D mesh片上网络结构,它包括M×N个核心和(M+1)×(N+1)个路由器,M×N个核心中包括工作的核心为K×L个,冗余的核心(M×N-K×L)个;  Reconfigurable 2D mesh on-chip network structure, which includes M×N cores and (M+1)×(N+1) routers, M×N cores include K×L working cores, redundant cores (M×N-K×L);

每个核心可与其相邻的四个路由器之一连接:每个路由器与相邻的4个核心通过多路选择器MUX和网络接口NI实现相互通讯。  Each core can be connected to one of the four adjacent routers: each router communicates with the four adjacent cores through the multiplexer MUX and the network interface NI. the

基于上述2D mesh片上网络结构的重配置方法,它包括如下步骤:  Based on the reconfiguration method of the above-mentioned 2D mesh on-chip network structure, it includes the following steps:

步骤一:在(M+1)×(N+1)的路由网络中选择一个K×L的子网络;  Step 1: Select a K×L sub-network in the (M+1)×(N+1) routing network;

步骤二:逐一判断子网络中的每一个路由器的状态,所述状态分为以下三类:  Step 2: Judge the status of each router in the subnet one by one, and the status is divided into the following three categories:

状态1、不存在任何核心与该路由器连接;  State 1. There is no core connected to the router;

状态2、仅存在一个核心与该路由器连接;  State 2, there is only one core connected to the router;

状态3、存在两个及以上核心与该路由器连接;  State 3. There are two or more cores connected to the router;

步骤三:判断子网络中是否存在的状态1的路由器,若存在,则转入步骤一,重新选择子网络;若不存在,则转入步骤四; Step 3: Determine whether there is a router in the state 1 in the subnetwork, if it exists, then proceed to step 1, and reselect the subnetwork; if it does not exist, then proceed to step 4;

步骤四:判断子网络中是否存在状态2的路由器,若存在,将处于状态2的每一个路由器与所述对应的核心连通,并在子网络中去掉所述路由器和与其连接的核心,转入步骤二;若不存在,转入步骤五;  Step 4: Determine whether there is a router in state 2 in the subnet, if it exists, connect each router in state 2 to the corresponding core, and remove the router and the core connected to it in the subnet, and transfer to Step 2; if it does not exist, go to step 5;

步骤五:判断子网络中是否存在状态3的路由器,若存在,将处于状态3的每一个路由器与所述的两个及以上核心中的一个核心连通,并在子网络中去掉所述路由器和与其连通的核心,转入步骤二;若不存在,重配置完成。  Step 5: Determine whether there is a router in state 3 in the sub-network, if it exists, connect each router in state 3 to one of the two or more cores, and remove the router and the router in the sub-network For the core connected to it, go to step 2; if it does not exist, the reconfiguration is complete. the

本发明的优点是:在由于一个核心同一时刻只能与一个路由器连接,所以只需要在传统的2D mesh网络中添加一些多路选择器和重配置寄存器即可,而不必为核心和路由器增加额外的端口。通过使用冗余核心替换失效核心完成重配置。在重配置后,2D mesh片上网络结构保证底层的网络拓扑与原始拓扑结构相同,同时也不会影响到提供给上层操作系统和应用的拓扑信息。引入的额外硬件开销适中,不工作的核心、路由器及链路可以通过休眠来达到低功耗的目的。  The advantage of the present invention is: since a core can only be connected to one router at the same time, it is only necessary to add some multiplexers and reconfiguration registers in the traditional 2D mesh network, without adding additional routers to the core and the router. port. Reconfiguration is accomplished by replacing a failed core with a redundant core. After reconfiguration, the 2D mesh on-chip network structure ensures that the underlying network topology is the same as the original topology, and will not affect the topology information provided to the upper-layer operating system and applications. The additional hardware overhead introduced is moderate, and cores, routers, and links that are not working can achieve low power consumption by sleeping. the

附图说明 Description of drawings

图1为本发明所述的可重配置的2D mesh片上网络结构的结构示意图。其中,A表示休眠的核心,B表示工作的核心,C表示休眠的路由,D表示工作的路由,E表示休眠的链路,F表示工作的链路。  Fig. 1 is a structural schematic diagram of a reconfigurable 2D mesh network-on-chip structure according to the present invention. Among them, A represents a dormant core, B represents a working core, C represents a dormant route, D represents a working route, E represents a dormant link, and F represents a working link. the

图2为本发明所述的可重配置的2D mesh片上网络结构的核心与路由器的电气连接示意图。  Fig. 2 is the electrical connection schematic diagram of the core and the router of the reconfigurable 2D mesh network on chip structure of the present invention. the

图3为本发明所述的可重配置的2D mesh片上网络结构的重配置方法的流程图。  Fig. 3 is the flowchart of the reconfiguration method of the reconfigurable 2D mesh network on chip structure of the present invention. the

图4为有3个损坏核心的2D mesh片上网络结构示意图。其中,G表示损坏的核心,A表示休眠的核心,B表示工作的核心,C表示休眠的路由,D表示工作的路由,E表示休眠的链路,F表示工作的链路。  Figure 4 is a schematic diagram of a 2D mesh network-on-chip with three damaged cores. Among them, G represents a damaged core, A represents a dormant core, B represents a working core, C represents a dormant route, D represents a working route, E represents a dormant link, and F represents a working link. the

图5为本发明所述的可重配置的2D mesh片上网络结构的重配置方法重配置后的2Dmesh片上网络结构示意图。其中,G表示损坏的核心,A表示休眠的核心,B表示工作的 核心,C表示休眠的路由,D表示工作的路由,E表示休眠的链路,F表示工作的链路。  5 is a schematic diagram of a 2Dmesh network-on-chip structure reconfigured by the reconfiguration method of the reconfigurable 2D mesh network-on-chip structure according to the present invention. Among them, G represents a damaged core, A represents a dormant core, B represents a working core, C represents a dormant route, D represents a working route, E represents a dormant link, and F represents a working link. the

图6为不同损坏核心规模的可重配置的2D mesh片上网络结构用可重配置的2D mesh片上网络结构的重配置方法重配置的成功率  Figure 6 shows the reconfiguration success rate of the reconfigurable 2D mesh network structure on a chip with different damaged core sizes using the reconfiguration method of the 2D mesh network structure on a chip

图7为极限损坏情况下,不同核心规模的可重配置的2D mesh片上网络结构用可重配置的2D mesh片上网络结构的重配置方法重配置的成功率。  Figure 7 shows the success rate of reconfiguration of reconfigurable 2D mesh network-on-chip structures with different core sizes in the case of extreme damage. the

具体实施方式 Detailed ways

具体实施方式一:结合图1说明本实施方式,本实施方式所述的可重配置的2D mesh片上网络结构,可重配置的2D mesh片上网络结构,它包括M×N个核心和(M+1)×(N+1)个路由器,M×N个核心中包括工作的核心为K×L个,冗余的核心(M×N-K×L)个;  Specific Embodiment 1: This embodiment is described in conjunction with FIG. 1. The reconfigurable 2D mesh network-on-chip structure described in this embodiment, the reconfigurable 2D mesh network-on-chip structure, includes M×N cores and (M+ 1) ×(N+1) routers, M×N cores include K×L working cores and redundant cores (M×N-K×L);

每个核心可与其相邻的四个路由器之一连接:每个路由器与相邻的4个核心通过多路选择器MUX和网络接口NI实现相互通讯。  Each core can be connected to one of the four adjacent routers: each router communicates with the four adjacent cores through the multiplexer MUX and the network interface NI. the

具体实施方式二:结合图2说明本实施方式,本实施方式是对具体实施方式一所述的可重配置的2D mesh片上网络结构的进一步限定,所述网络接口NI包括总线接口、写FIFO模块、读FIFO模块、解包打包模块和控制寄存器,其特征在于,所述控制寄存器还包括重配置寄存器,重配置寄存器包括重配置状态寄存器REC_STA、重配置控制寄存器REC_CNTL和虚拟节点号码寄存器NODE_NUM,  Specific embodiment two: this embodiment is described in conjunction with Fig. 2, and this embodiment is a further limitation of the reconfigurable 2D mesh on-chip network structure described in specific embodiment one, and the network interface NI includes a bus interface and a write FIFO module , read FIFO module, unpack and pack module and control register, it is characterized in that, described control register also comprises reconfiguration register, and reconfiguration register comprises reconfiguration status register REC_STA, reconfiguration control register REC_CNTL and virtual node number register NODE_NUM,

解包打包模块,用于网络中正常的消息解包或打包,还用于打包或解包重配置消息,并将打包或解包之后的重配置消息写入重配置状态寄存器REC_STA;  The unpacking and packaging module is used for unpacking or packaging normal messages in the network, and is also used for packaging or unpacking reconfiguration messages, and writes the reconfiguration messages after packaging or unpacking into the reconfiguration status register REC_STA;

重配置状态寄存器REC_STA,用于根据解包的重配置消息控制多路选择器MUX的中的一路开关闭合其它开关断开,还用于存储表示核心所连接的路由的状态信息;  The reconfiguration status register REC_STA is used to control one of the switches in the multiplexer MUX to close and the other switches to be disconnected according to the unpacked reconfiguration message, and is also used to store status information indicating the route connected to the core;

多路选择器MUX,用于在重配置状态寄存器REC_STA的控制下实现核心与一个路由器的连接;  The multiplexer MUX is used to realize the connection between the core and a router under the control of the reconfiguration status register REC_STA;

重配置控制寄存器REC_CNTL,用于存储控制重配置消息的发送使能的信息;  The reconfiguration control register REC_CNTL is used to store information that controls the sending and enabling of reconfiguration messages;

虚拟节点号码寄存器NODE_NUM,用于存储虚拟节点号信息。  The virtual node number register NODE_NUM is used to store virtual node number information. the

具体实施方式三:本实施方式是对具体实施方式一所述的可重配置的2D mesh片上网络结构的进一步限定,  Specific embodiment three: this embodiment is a further limitation of the reconfigurable 2D mesh network-on-chip structure described in specific embodiment one,

所述网络接口NI的头微片格式为:  The header flake format of the network interface NI is:

本实施方式对传统的网络接口的头微片格式进行了修改,修改了31-29位服务类型位。在原有的BE服务和GS服务的基础上,添加了重配置服务类型(RC)。  In this embodiment, the format of the traditional network interface header chip is modified, and bits 31-29 of the service type are modified. On the basis of the original BE service and GS service, the reconfiguration service type (RC) is added. the

具体实施方式四:结合图3说明本实施方式,本实施方式是基于具体实施方式一所述的可重配置的2D mesh片上网络结构的重配置方法,它包括如下步骤:  Specific embodiment four: illustrate this embodiment in conjunction with Fig. 3, this embodiment is based on the reconfiguration method of the reconfigurable 2D mesh on-chip network structure described in specific embodiment one, and it comprises the following steps:

步骤一:在(M+1)×(N+1)的路由网络中选择一个K×L的子网络;  Step 1: Select a K×L sub-network in the (M+1)×(N+1) routing network;

步骤二:逐一判断子网络中的每一个路由器的状态,所述状态分为以下三类:  Step 2: Judge the status of each router in the subnet one by one, and the status is divided into the following three categories:

状态1、不存在任何核心与该路由器连接;  State 1. There is no core connected to the router;

状态2、仅存在一个核心与该路由器连接;  State 2, there is only one core connected to the router;

状态3、存在两个及以上核心与该路由器连接;  State 3. There are two or more cores connected to the router;

步骤三:判断子网络中是否存在的状态1的路由器,若存在,则转入步骤一,重新选择子网络;若不存在,则转入步骤四; Step 3: Determine whether there is a router in the state 1 in the subnetwork, if it exists, then proceed to step 1, and reselect the subnetwork; if it does not exist, then proceed to step 4;

步骤四:判断子网络中是否存在状态2的路由器,若存在,将处于状态2的每一个路由器与所述对应的核心连通,并在子网络中去掉所述路由器和与其连接的核心,转入步骤二;若不存在,转入步骤五;  Step 4: Determine whether there is a router in state 2 in the subnet, if it exists, connect each router in state 2 to the corresponding core, and remove the router and the core connected to it in the subnet, and transfer to Step 2; if it does not exist, go to step 5;

步骤五:判断子网络中是否存在状态3的路由器,若存在,将处于状态3的每一个路由器与所述的两个及以上核心中的一个核心连通,并在子网络中去掉所述路由器和与其连通的核心,转入步骤二;若不存在,重配置完成。  Step 5: Determine whether there is a router in state 3 in the sub-network, if it exists, connect each router in state 3 to one of the two or more cores, and remove the router and the router in the sub-network For the core connected to it, go to step 2; if it does not exist, the reconfiguration is complete. the

上述路由器与核心的连通为数据通讯;  The connection between the router and the core is data communication;

R-mesh的可重配置性的优点是通过重配置算法来实现的。对于核心规模为M×N,工作核心为K×L的R-mesh结构,其中路由网络的规模为(M+1)×(N+1),冗余的核心数量为(M×N-K×L),冗余度为(M×N-K×L)/K×L。问题可以被表述为:对于这M×N 个核心,找出K×L个核心。对于每一个核心Ckl(0≤k<K,0≤l<L),都从(M+1)×(N+1)个路由器Rmn(0≤m≤M,0≤n≤M)中找到一个核心与之连接,并使得这些路由器能够组成一个标准的2D mesh网络。  The advantage of reconfigurability of R-mesh is realized by reconfiguration algorithm. For an R-mesh structure with a core size of M×N and a working core of K×L, the size of the routing network is (M+1)×(N+1), and the number of redundant cores is (M×NK×L ), the redundancy is (M×NK×L)/K×L. The problem can be formulated as: For these M×N cores, find K×L cores. For each core C kl (0≤k<K, 0≤l<L), from (M+1)×(N+1) routers R mn (0≤m≤M, 0≤n≤M) Find a core to connect with it, and enable these routers to form a standard 2D mesh network.

数学描述为:对于M×N个核心组成的集合{Cmn}(0≤m<M,0≤n<N)找到一个子集{Ckl},通过一对一的映射f:{Ckl}->{Rmn},使得{Rmn}成为(M+1)×(N+1)个路由器组成的集合{Rhg}(0≤h≤M,0≤g≤M)的一个特殊子集(即能构成2D mesh网络的子集)。  The mathematical description is: for a set {C mn } (0≤m<M, 0≤n<N) composed of M×N cores, find a subset {C kl }, through a one-to-one mapping f: {C kl }->{R mn }, making {R mn } a special set {R hg } (0≤h≤M, 0≤g≤M) composed of (M+1)×(N+1) routers Subset (that is, a subset that can form a 2D mesh network).

根据以上问题描述,本发明设计了一种确定性算法来寻找重配置的解。本算法属于贪心算法,通过每一步的最优解来逼近全局的最优解。算法首先根据映射f:{Ckl}->{Rmn}在{Rhg}中对应元素的个数将集合{Cmn}中的元素分成三类:无法对应集合{Rhg}中元素,可以对应{Rhg}中一个元素,可以对应{Rhg}中多个元素。然后将可以对应{Rhg}中一个元素的这些元素中任选一个,将其绑定到映射f:{Ckl}->{Rmn}上。之后再进行分类,重复以上过程,直到找到最终的解。假如出现通过映射无法找到元素与之对应的情况,则选的元素不正确,需要重新选择。  According to the above description of the problem, the present invention designs a deterministic algorithm to find the solution of the reconfiguration. This algorithm is a greedy algorithm, which approaches the global optimal solution through the optimal solution at each step. The algorithm first divides the elements in the collection {C mn } into three categories according to the number of corresponding elements in the mapping f: {C kl }->{R mn } in {R hg }: the elements in the collection {R hg } cannot be matched, It can correspond to one element in {R hg }, and can correspond to multiple elements in {R hg }. Then choose any one of these elements that can correspond to an element in {R hg }, and bind it to the map f: {C kl }->{R mn }. Then classify and repeat the above process until the final solution is found. If the corresponding element cannot be found through mapping, the selected element is incorrect and needs to be reselected.

本发明通过软硬件协同设计实现。大致可以分为以下四个部分:  The invention is realized through software and hardware collaborative design. It can be roughly divided into the following four parts:

1.核心状态检测或者读入:由核心的内建自检测BIST模块生成,由硬件实现。  1. Core state detection or read-in: generated by the core's built-in self-test BIST module and implemented by hardware. the

2.重配置算法实现:由软件实现,具体见R-mesh重配置算法。  2. Realization of reconfiguration algorithm: realized by software, see R-mesh reconfiguration algorithm for details. the

3.重配置消息发送:发送固定格式的消息,需要使用数据包的服务类型位,新添加重配置服务RC,打包重配置消息,由主控节点发送到各各有效核心。  3. Reconfiguration message sending: To send a message with a fixed format, you need to use the service type bit of the data packet, add a new reconfiguration service RC, pack the reconfiguration message, and send it to each effective core by the master control node. the

4.选择路由进行连接:由硬件实现,通过网络接口NI解包,将重配置信息写入寄存器,完成路由器连接的选择。  4. Select a route for connection: realized by hardware, unpack through the network interface NI, write the reconfiguration information into the register, and complete the selection of router connection. the

对一般的网络接口稍加改动,添加入重配置功能,就可以改造为可重配置的网络接口。主要需修改三个部分:  A general network interface can be modified into a reconfigurable network interface by adding the reconfiguration function. There are three main parts to modify:

1.修改数据包格式,添加重配置服务RC的数据包描述。  1. Modify the data packet format and add the data packet description of the reconfiguration service RC. the

2.修改网络接口的打包解包模块,使其支持重配置服务RC。  2. Modify the packing and unpacking module of the network interface to support the reconfiguration service RC. the

3.添加REC_STA、REC_CNTL、NODE_NUM三个重配置寄存器(Reconfig Resister)。其中,REC_STA为重配置状态寄存器,用来表示核心连接到哪个路由上的状态,为只读寄存器。REC_CNTL为重配置控制寄存器,用来控制重配置信息的发送,为读写寄存器。NODE_NUM为虚拟节点号码寄存器,用来存储虚拟节点号信息,为只读寄存器。修改后的网络接口NI的硬件结构如图2所示。  3. Add REC_STA, REC_CNTL, NODE_NUM three reconfiguration registers (Reconfig Resister). Among them, REC_STA is a reconfiguration status register, which is used to indicate the status of which route the core is connected to, and is a read-only register. REC_CNTL is a reconfiguration control register, which is used to control the sending of reconfiguration information, and is a read-write register. NODE_NUM is a virtual node number register, which is used to store virtual node number information and is a read-only register. The hardware structure of the modified network interface NI is shown in Figure 2. the

对于确定的重配置问题,我们可以将具体的算法描述为以下的四步,算法的流程图如 图3所示:  For a certain reconfiguration problem, we can describe the specific algorithm as the following four steps, and the flow chart of the algorithm is shown in Figure 3:

具体实施方式五:本实施方式是对具体实施方式四所述的可重配置的2D mesh片上网络结构的重配置方法的进一步说明,核心与路由器的默认选择连接顺序为左上、右上、左下、右下的顺序。  Embodiment 5: This embodiment is a further description of the reconfiguration method of the reconfigurable 2D mesh on-chip network structure described in Embodiment 4. The default selection connection sequence between the core and the router is upper left, upper right, lower left, and right next order. the

所述的步骤五中,选择与路由器连接的核心的优先级原则是:连通之后,使得路由位于与其连通的核心的左上、右上、左下、右下的顺序;即:当存在多个核心可以与该路由连通时,根据连通之后路后与核心的位置关系,按照上述优先原则选择相应的核心来连通。  In said step 5, the priority principle for selecting the core connected to the router is: after the connection is made, the routing is located in the order of upper left, upper right, lower left, and lower right of the core connected to it; that is: when there are multiple cores that can be connected to When the route is connected, according to the positional relationship between the route and the core after the connection, select the corresponding core to connect according to the above priority principle. the

我们分别构建了核心规模为4×5,5×6,6×7,7×8的R-mesh结构。其中最右侧的一列作为冗余的核心。我们对于损坏核心数从1到满一列都分别进行了测试,最后得出了在不同损坏核心情况下的重配置成功的概率。每种情况都使用随机测试激励随机注入100万次。结果如图6所示:当损坏的核心数目比较少时,重配置算法的成功率较高,都在90%以上,当损坏的核心数目变多时,重配置成功的概率有明显的下降。尤其是当网络规模大到6×7和7×8,重配置成功率减少到60%甚至更低,这时候说明应该提高冗余度来提高重配置成功的概率,比如增加一行冗余。  We constructed R-mesh structures with core sizes of 4×5, 5×6, 6×7, and 7×8, respectively. The rightmost column serves as the redundant core. We tested the number of damaged cores from 1 to full, and finally obtained the probability of successful reconfiguration under different damaged cores. Each case is randomly injected 1 million times using a random test incentive. The results are shown in Figure 6: when the number of damaged cores is relatively small, the success rate of the reconfiguration algorithm is higher, above 90%. When the number of damaged cores increases, the probability of successful reconfiguration drops significantly. Especially when the network scale is as large as 6×7 and 7×8, the reconfiguration success rate is reduced to 60% or even lower. At this time, it means that the redundancy should be increased to improve the probability of reconfiguration success, such as adding a row of redundancy. the

为分析R-mesh结构在核心损坏数目达到极限情况下的重配置能力,我们又对损坏核心数等于冗余核心数的情况下做了测试,得到了此情况下重配置的成功率。测试的结果如图7所示:当核心规模较小时,达到极限损坏核心数时,重配置成功的概率仍然很高,在70%以上,当网络规模大到6×7以上时,概率降到了70%以下,尤其是7×8时,达到了50%。这说明需要增加冗余度来提高重配置的成功率。例如,当增加一列冗余时,成功率又提高到了95%以上。  In order to analyze the reconfiguration capability of the R-mesh structure when the number of damaged cores reaches the limit, we tested the case where the number of damaged cores is equal to the number of redundant cores, and obtained the success rate of reconfiguration in this case. The test results are shown in Figure 7: when the core size is small and the number of damaged cores reaches the limit, the probability of successful reconfiguration is still high, above 70%. When the network size is larger than 6×7, the probability drops to Below 70%, especially when it is 7×8, it reaches 50%. This shows that redundancy needs to be increased to improve the success rate of reconfiguration. For example, when adding a column of redundancy, the success rate increased to over 95%. the

本发明主要目是在保证容错的前提下,针对上层保持统一拓扑结构的需求,提出了可重配置的片上网络结构,同时设计了适用于此结构的重配置算法。该结构中每个核心通过多路选择器选择路由连接实现可重配置的能力。从而仅需要改动网络接口,而不需要对路由网络进行任何修改。减少了设计时间和设计复杂度,提高了设计效率。  The main purpose of the present invention is to propose a reconfigurable on-chip network structure and design a reconfiguration algorithm suitable for the structure on the premise of ensuring fault tolerance and aiming at the requirement of the upper layer to maintain a unified topology structure. Each core in this architecture implements reconfigurable capabilities by routing connections through a multiplexer. Thus, only the network interface needs to be changed, and no modification of the routed network is required. Design time and design complexity are reduced, and design efficiency is improved. the

Claims (4)

1. reconfigurable 2D mesh network-on-chip structure, is characterized in that, it comprises the individual router of M * N core and (M+1) * (N+1), and M * N core comprises that the core of work is that K * L is individual, and (M * N-K * L) is individual for the core of redundancy;
One of four routers that each core can be adjacent connect: each router and adjacent 4 cores realize mutual communication by MUX MUX and network interface NI,
Described network interface NI comprises bus interface, writes fifo module, reads fifo module, unpacks packetization module and control register, described control register also comprises reshuffles register, reshuffling register comprises reconfiguration status register REC_STA, reshuffles control register REC_CNTL and dummy node number register NODE_NUM
Unpack packetization module, for the normal message of network, unpack or pack, also for packing or unpacking reconfiguration message, and the reconfiguration message by packing or after unpacking writes reconfiguration status register REC_STA;
Reconfiguration status register REC_STA, for according to the reconfiguration message that unpacks, control MUX MUX closed other switch of a way switch disconnect, also for storing the state information of the route that represents that core connects;
MUX MUX, for realizing being connected of core and a router under the control at reconfiguration status register REC_STA;
Reshuffle control register REC_CNTL, the information enabling for storing the transmission of control reconfiguration message;
Dummy node number register NODE_NUM, for storing virtual node number information.
2. reconfigurable 2D mesh network-on-chip structure according to claim 1, is characterized in that, a microplate form of described network interface NI is:
3. the method for reconfiguration based on reconfigurable 2D mesh network-on-chip structure claimed in claim 1, is characterized in that, it comprises the steps:
Step 1: the sub-network of selecting a K * L in the route network of (M+1) * (N+1);
Step 2: judge one by one the state of each router in sub-network, described state is divided into following three classes:
State 1, do not exist any core to be connected with this router;
State 2, only exist a core to be connected with this router;
State 3, two of existence and above core are connected with this router;
Step 3: judge the router of the state 1 whether existing in sub-network, if exist, proceed to step 1, reselect sub-network; If do not exist, proceed to step 4;
Step 4: whether judge in sub-network and if exist, by the core connection corresponding with this router of each router in state 2, and to remove described router and connected core in sub-network by the router of existence 2, proceed to step 2; If do not exist, proceed to step 5;
Step 5: whether judge in sub-network the router of existence 3, if exist, each router in state 3 is communicated with a core in described two and above core, and the core of removing described router and be communicated with it in sub-network, proceed to step 2; If do not exist, reshuffled.
4. the method for reconfiguration of reconfigurable 2D mesh network-on-chip structure according to claim 3, is characterized in that, it is the order of upper left, upper right, lower-left, bottom right that the acquiescence of core and router is selected the order of connection.
CN201210233794.7A 2012-07-06 2012-07-06 Reconfigurable 2D (two-dimensional) mesh on-chip network structure and reconfiguration method thereof Expired - Fee Related CN102752207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210233794.7A CN102752207B (en) 2012-07-06 2012-07-06 Reconfigurable 2D (two-dimensional) mesh on-chip network structure and reconfiguration method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210233794.7A CN102752207B (en) 2012-07-06 2012-07-06 Reconfigurable 2D (two-dimensional) mesh on-chip network structure and reconfiguration method thereof

Publications (2)

Publication Number Publication Date
CN102752207A CN102752207A (en) 2012-10-24
CN102752207B true CN102752207B (en) 2014-12-10

Family

ID=47032111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210233794.7A Expired - Fee Related CN102752207B (en) 2012-07-06 2012-07-06 Reconfigurable 2D (two-dimensional) mesh on-chip network structure and reconfiguration method thereof

Country Status (1)

Country Link
CN (1) CN102752207B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986672B (en) * 2014-05-23 2017-12-19 清华大学 The reconstructing method and system of Survey on network-on-chip topology
CN104077138B (en) 2014-06-27 2017-08-29 中国科学院计算技术研究所 The multiple-core processor systems and its integrated approach and implementation method of a kind of integrated network router
CN105142039B (en) * 2015-08-04 2018-06-26 广东欧珀移动通信有限公司 Method and system for playing network media file
CN110096475B (en) * 2019-04-26 2023-10-24 西安理工大学 Many-core processor based on hybrid interconnection architecture
CN112532527B (en) * 2020-12-07 2022-03-25 清华大学 Routing control method and artificial intelligence processor
CN119513024A (en) * 2023-08-15 2025-02-25 深圳市中兴微电子技术有限公司 Configurable Network-on-Chip
CN117667828B (en) * 2024-01-31 2024-05-03 摩尔线程智能科技(北京)有限责任公司 Network-on-chip integration method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808032A (en) * 2010-03-04 2010-08-18 南京大学 Static XY routing algorithm-oriented two-dimensional grid NoC router optimization design method
CN101977152A (en) * 2010-11-12 2011-02-16 复旦大学 High-performance network-on-chip system suitable for reconfiguration
CN102202005A (en) * 2011-07-12 2011-09-28 西安电子科技大学 Reconfigurable network on mating plate and configuration method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808032A (en) * 2010-03-04 2010-08-18 南京大学 Static XY routing algorithm-oriented two-dimensional grid NoC router optimization design method
CN101977152A (en) * 2010-11-12 2011-02-16 复旦大学 High-performance network-on-chip system suitable for reconfiguration
CN102202005A (en) * 2011-07-12 2011-09-28 西安电子科技大学 Reconfigurable network on mating plate and configuration method

Also Published As

Publication number Publication date
CN102752207A (en) 2012-10-24

Similar Documents

Publication Publication Date Title
CN102752207B (en) Reconfigurable 2D (two-dimensional) mesh on-chip network structure and reconfiguration method thereof
CN104885212B (en) Die-stacked device with partitioned multi-hop network
US9176799B2 (en) Hop-by-hop error detection in a server system
CN101753388B (en) Routing and interface device suitable for on-chip and inter-chip extension of multi-core processor
US8601423B1 (en) Asymmetric mesh NoC topologies
US9253085B2 (en) Hierarchical asymmetric mesh with virtual routers
US20140188996A1 (en) Raw fabric interface for server system with virtualized interfaces
CN102216920B (en) Advanced extensible interface bus and corresponding method for data transmission
US20150036681A1 (en) Pass-through routing at input/output nodes of a cluster server
CN102685017A (en) On-chip network router based on field programmable gate array (FPGA)
CN115002584A (en) Reconfigurable computing platform using optical network with one-to-many optical switch
CN114896940B (en) Design method and device of wafer-level exchange system defined by software
US20180183672A1 (en) System and method for grouping of network on chip (noc) elements
CN104579951A (en) Fault-tolerance method in on-chip network under novel fault and congestion model
US20140032731A1 (en) Recursive, All-to-All Network Topologies
CN103368931A (en) Data processing apparatus, computation device, and control method for data processing apparatus
US9774498B2 (en) Hierarchical asymmetric mesh with virtual routers
Hosseinabady et al. Low latency and energy efficient scalable architecture for massive NoCs using generalized de Bruijn graph
Marcon et al. Phoenix NoC: A distributed fault tolerant architecture
Valinataj et al. Enhanced fault-tolerant Network-on-Chip architecture using hierarchical agents
Radetzki Fault-tolerant differential q routing in arbitrary noc topologies
US20060026468A1 (en) Crossbar switch debugging
Ge et al. A network monitor based dynamic routing scheme for Network on Chip
KR20180080002A (en) Method of designing topology for network on chip
Huang et al. SCautz: a high performance and fault-tolerant datacenter network for modular datacenters

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: 20141210

CF01 Termination of patent right due to non-payment of annual fee