Technical Field
Methods and example implementations described herein are generally directed to interconnect architecture, and more specifically, to generation of Network-On-Chip (NoC) layout based on user specified topological constraints.
Related Art
The number of components on a chip is rapidly growing due to increasing levels of integration, system complexity, and shrinking transistor geometry. Complex System-on-Chips (SoCs) may involve a variety of components e.g., processor cores, DSPs, hardware accelerators, memory and I/O, while Chip Multi-Processors (CMPs) may involve a large number of homogenous processor cores, memory and I/O subsystems. In both SoC and CMP systems, the on-chip interconnect plays a role in providing high-performance communication between the various components. Due to scalability limitations of traditional buses and crossbar based interconnects, Network-on-Chip (NoC) has emerged as a paradigm to interconnect a large number of components on the chip. NoC is a global shared communication infrastructure made up of several routing nodes interconnected with each other using point-to-point physical links.
Messages are injected by the source and are routed from the source node to the destination over multiple intermediate nodes and physical links. The destination node then ejects the message and provides the message to the destination. For the remainder of this application, the terms ‘components’, ‘blocks’, ‘hosts’ or ‘cores’ will be used interchangeably to refer to the various system components which are interconnected using a NoC. Terms ‘routers’ and ‘nodes’ will also be used interchangeably. Without loss of generalization, the system with multiple interconnected components will itself be referred to as a ‘multi-core system’.
There are several topologies in which the routers can connect to one another to create the system network. Bi-directional rings (as shown in
Packets are message transport units for intercommunication between various components. Routing involves identifying a path composed of a set of routers and physical links of the network over which packets are sent from a source to a destination. Components are connected to one or multiple ports of one or multiple routers; with each such port having a unique ID. Packets carry the destination's router and port ID for use by the intermediate routers to route the packet to the destination component.
Examples of routing techniques include deterministic routing, which involves choosing the same path from A to B for every packet. This form of routing is independent from the state of the network and does not load balance across path diversities, which might exist in the underlying network. However, such deterministic routing may implemented in hardware, maintains packet ordering and may be rendered free of network level deadlocks. Shortest path routing may minimize the latency as such routing reduces the number of hops from the source to the destination. For this reason, the shortest path may also be the lowest power path for communication between the two components. Dimension-order routing is a form of deterministic shortest path routing in 2-D, 2.5-D, and 3-D mesh networks. In this routing scheme, messages are routed along each coordinates in a particular sequence until the message reaches the final destination. For example in a 3-D mesh network, one may first route along the X dimension until it reaches a router whose X-coordinate is equal to the X-coordinate of the destination router. Next, the message takes a turn and is routed in along Y dimension and finally takes another turn and moves along the Z dimension until the message reaches the final destination router. Dimension ordered routing may be minimal turn and shortest path routing.
In heterogeneous mesh topology in which one or more routers or one or more links are absent, dimension order routing may not be feasible between certain source and destination nodes, and alternative paths may have to be taken. The alternative paths may not be shortest or minimum turn.
Source routing and routing using tables are other routing options used in NoC. Adaptive routing can dynamically change the path taken between two points on the network based on the state of the network. This form of routing may be complex to analyze and implement.
A NoC interconnect may contain multiple physical networks. Over each physical network, there may exist multiple virtual networks, wherein different message types are transmitted over different virtual networks. In this case, at each physical link or channel, there are multiple virtual channels; each virtual channel may have dedicated buffers at both end points. In any given clock cycle, only one virtual channel can transmit data on the physical channel.
NoC interconnects may employ wormhole routing, wherein, a large message or packet is broken into small pieces known as flits (also referred to as flow control digits). The first flit is the header flit, which holds information about this packet's route and key message level info along with payload data and sets up the routing behavior for all subsequent flits associated with the message. Optionally, one or more body flits follows the head flit, containing the remaining payload of data. The final flit is the tail flit, which in addition to containing the last payload also performs some bookkeeping to close the connection for the message. In wormhole flow control, virtual channels are often implemented.
The physical channels are time sliced into a number of independent logical channels called virtual channels (VCs). VCs provide multiple independent paths to route packets, however they are time-multiplexed on the physical channels. A virtual channel holds the state needed to coordinate the handling of the flits of a packet over a channel. At a minimum, this state identifies the output channel of the current node for the next hop of the route and the state of the virtual channel (idle, waiting for resources, or active). The virtual channel may also include pointers to the flits of the packet that are buffered on the current node and the number of flit buffers available on the next node.
The term “wormhole” plays on the way messages are transmitted over the channels: the output port at the next router can be so short that received data can be translated in the head flit before the full message arrives. This allows the router to quickly set up the route upon arrival of the head flit and then opt out from the rest of the conversation. Since a message is transmitted flit by flit, the message may occupy several flit buffers along its path at different routers, creating a worm-like image.
Based upon the traffic between various end points, and the routes and physical networks that are used for various messages, different physical channels of the NoC interconnect may experience different levels of load and congestion. The capacity of various physical channels of a NoC interconnect is determined by the width of the channel (number of physical wires) and the clock frequency at which it is operating. Various channels of the NoC may operate at different clock frequencies, and various channels may have different widths based on the bandwidth requirement at the channel. The bandwidth requirement at a channel is determined by the flows that traverse over the channel and their bandwidth values. Flows traversing over various NoC channels are affected by the routes taken by various flows. In a mesh or Torus NoC, there may exist multiple route paths of equal length or number of hops between any pair of source and destination nodes. For example, in
In a NoC with statically allocated routes for various traffic flows, the load at various channels may be controlled by intelligently selecting the routes for various flows. When a large number of traffic flows and substantial path diversity is present, routes can be chosen such that the load on all NoC channels is balanced nearly uniformly, thus avoiding a single point of bottleneck. Once routed, the NoC channel widths can be determined based on the bandwidth demands of flows on the channels. Unfortunately, channel widths cannot be arbitrarily large due to physical hardware design restrictions, such as timing or wiring congestion. There may be a limit on the maximum channel width, thereby putting a limit on the maximum bandwidth of any single NoC channel.
Additionally, wider physical channels may not help in achieving higher bandwidth if messages are short. For example, if a packet is a single flit packet with a 64-bit width, no matter how wide a channel is, the channel will only be able to carry 64 bits per cycle of data if all packets over the channel are similar. Thus, a channel width is also limited by the message size in the NoC. Due to these limitations on the maximum NoC channel width, a channel may not have enough bandwidth in spite of balancing the routes.
To address the above bandwidth concern, multiple parallel physical NoCs may be used. Each NoC may be called a layer, thus creating a multi-layer NoC architecture. Hosts inject a message on a NoC layer which is then routed to the destination on the same NoC layer, where it is delivered from the NoC layer to the host. Thus, each layer operates more or less independently from each other, and interactions between layers may only occur during the injection and ejection times.
In
In a multi-layer NoC, the number of layers needed may depend upon a number of factors such as the aggregate bandwidth requirement of all traffic flows in the system, the routes that are used by various flows, message size distribution, maximum channel width, etc. Once the number of NoC layers in NoC interconnect is determined in a design, different messages and traffic flows may be routed over different NoC layers. Additionally, one may design NoC interconnects such that different layers have different topologies in number of routers, channels and connectivity. The channels in different layers may have different widths based on the flows that traverse over the channel and their bandwidth requirements. With such a large variety of design choices, determining the right combination of routers, channels, and interconnections for a given system remains a challenge and time consuming manual process, often resulting in sub-optimal and inefficient designs.
System on Chips (SoCs) are becoming increasingly sophisticated, feature rich, and high performance by integrating a growing number of standard processor cores, memory & I/O subsystems, and specialized acceleration IPs. To address this complexity, the Network-on-Chip (NoC) approach of connecting SoC components is gaining popularity. A NoC can provide connectivity to a plethora of components and interfaces and simultaneously enable rapid design closure by being automatically generated from a high level specification. The specification describes the interconnect requirements of the SoC in terms of connectivity, bandwidth and latency. In addition to this, information such as position of various components, protocol information, clocking and power domains, etc. may be supplied. A NoC compiler can then use this specification to automatically design a NoC for the SoC. A number of NoC compilers were introduced in the related art that automatically synthesize a NoC to fit a traffic specification. In such design flows, the synthesized NoC is simulated to evaluate the performance under various operating conditions and to determine whether the specifications are met. This may be necessary because NoC-style interconnects are distributed systems and their dynamic performance characteristics under load are difficult to predict statically and can be very sensitive to a wide variety of parameters.
In order to obtain an efficient and resource-sensitive NoC architecture, it is therefore important and desired to generate an optimal NoC layout based on user specified topological constraints.
The present disclosure is directed to an architecture that enables generation of an optimal NoC layout based on user specified topological constraints. In an aspect, the NoC layout is defined such that the number of turns, while routing between two or more NoC elements such as routers and bridges, is minimal across the complete system.
In an aspect, the present disclosure provides a method that comprises automatic generation of a NoC from specified topological information based on projecting NoC elements of the NoC onto a grid layout. In an instance, although the present disclosure is being explained with reference to the NoC elements being routers and/or bridges, any other appropriate NoC element is completely within the scope of the present disclosure. In an aspect, the specified topological information, including specification of putting constraints on positions/locations of NoC elements and links thereof, can be input by a user in real space, and can then be projected on the grid layout.
According to one embodiment, automatic generation of the NoC from the specified topological information can include projecting a plurality of nodes, a plurality of routers, and a plurality of links onto the grid layout based on the specified topological information, wherein the projected plurality of routers, the plurality of nodes, and the plurality of links can initially be disabled, and then selectively enabled for at least one of the plurality of routers, the plurality of nodes, and the plurality of links on the grid layout based on one or more constraints for one or more layers of the NoC. In another aspect, NoC agents can be provided on the enabled plurality of nodes of the grid layout. In another aspect, traffic can be provided between the enabled NoC agents, and mapping can be performed for the traffic to the enabled routers and the enabled links of the NoC.
According to one embodiment, automatic generation of the NoC from the specified topological information can include projecting a plurality of routers, a plurality of nodes, and a plurality of links onto the grid layout based on the specified topological information, wherein the projected plurality of routers, the plurality of nodes, and the plurality of links can be initially enabled, and then selectively disabled for at least one of the plurality of routers, the plurality of nodes, and the plurality of links on the grid layout based on one or more constraints for one or more layers of the NoC. In another aspect, NoC agents can be provided on the enabled plurality of nodes of the grid layout. In another aspect, traffic can be provided between the enabled NoC agents, and mapping can be performed for the traffic to the enabled routers and the enabled links of the NoC.
According to one embodiment, automatic generation of the NoC from the specified topological information can include projecting a plurality of routers, a plurality of links, and a plurality of NoC agents onto a heterogeneous grid layout based on one or more constraints for one or more layers of the NoC and the specified topological information, wherein grid sizes of the heterogeneous grid layout can be derived from the specified topological information. In an aspect, once configured on the grid layout, traffic can be provided between the plurality of NoC agents to enable mapping of the traffic to the NoC.
According to one embodiment, automatic generation of the NoC from the specified topological information can include projecting onto an auto-determined grid, a plurality of routers, a plurality of links, and a plurality of NoC agents based on the specified topological information, such that once projected, traffic can be provided between the plurality of NoC agents and traffic to the NoC can be mapped.
According to one embodiment, automatic generation of the NoC from the specified topological information can include projecting a plurality of agents, a plurality of routers, and a plurality of links onto a grid layout from the specified topological information, and transforming the plurality of links, the plurality of routers, and the plurality of agents on the grid layout to another grid layout through a space transformation algorithm, wherein the space transformation algorithm can be configured to address one or more constraints of one or more layers of the NoC.
In another aspect, traffic can be provided between the transformed plurality of agents, and the traffic provided to the NoC can be mapped.
In an example embodiment, disclosure of the present disclosure relates to a non-transitory computer readable medium, storing instructions for executing a process, the instructions comprising automatic generation of NoC from specified topological information based on projecting NoC elements to a grid layout.
The foregoing and other objects, features and advantages of the example implementations will be apparent and the following more particular descriptions of example implementations as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts.
The following detailed description provides further details of the figures and example implementations of the present application. Reference numerals and descriptions of redundant elements between figures are omitted for clarity. Terms used throughout the description are provided as examples and are not intended to be limiting. For example, the use of the term “automatic” may involve fully automatic or semi-automatic implementations involving user or administrator control over certain aspects of the implementation, depending on the desired implementation of one of ordinary skill in the art practicing implementations of the present application.
Aspects of the present disclosure are directed to methods, systems, and non-transitory computer readable mediums for providing an architecture that enables generation of an optimal NoC layout based on user specified topological constraints. In an aspect, the NoC layout is defined such that the number of turns, while routing between two or more NoC elements such as routers and bridges, is minimal across the complete system.
In an aspect, the present disclosure provides a method that comprises automatic generation of a NoC from specified topological information based on projecting NoC elements of the NoC onto a grid layout. In an instance, although the present disclosure is being explained with reference to the NoC elements being routers and/or bridges, any other appropriate NoC element is completely within the scope of the present disclosure. In an aspect, the specified topological information, including specification of putting constraints on positions/locations of NoC elements and links thereof, can be input by a user in real space, and can then be projected on the grid layout.
According to one embodiment, automatic generation of the NoC from the specified topological information can include projecting a plurality of nodes, a plurality of routers, and a plurality of links onto the grid layout based on the specified topological information, wherein the projected plurality of routers, the plurality of nodes, and the plurality of links can initially be disabled, and then selectively enabled for at least one of the plurality of routers, the plurality of nodes, and the plurality of links on the grid layout based on one or more constraints for one or more layers of the NoC. In another aspect, NoC agents can be provided on the enabled plurality of nodes of the grid layout. In another aspect, traffic can be provided between the enabled NoC agents, and mapping can be performed for the traffic to the enabled routers and the enabled links of the NoC.
According to one embodiment, automatic generation of the NoC from the specified topological information can include projecting a plurality of routers, a plurality of nodes, and a plurality of links onto the grid layout based on the specified topological information, wherein the projected plurality of routers, the plurality of nodes, and the plurality of links can be initially enabled, and then selectively disabled for at least one of the plurality of routers, the plurality of nodes, and the plurality of links on the grid layout based on one or more constraints for one or more layers of the NoC. In another aspect, NoC agents can be provided on the enabled plurality of nodes of the grid layout. In another aspect, traffic can be provided between the enabled NoC agents, and mapping can be performed for the traffic to the enabled routers and the enabled links of the NoC.
According to one embodiment, automatic generation of the NoC from the specified topological information can include projecting a plurality of routers, a plurality of links, and a plurality of NoC agents onto a heterogeneous grid layout based on one or more constraints for one or more layers of the NoC and the specified topological information, wherein grid sizes of the heterogeneous grid layout can be derived from the specified topological information. In an aspect, once configured on the grid layout, traffic can be provided between the plurality of NoC agents to enable mapping of the traffic to the NoC.
According to one embodiment, automatic generation of the NoC from the specified topological information can include projecting onto an auto-determined grid, a plurality of routers, a plurality of links, and a plurality of NoC agents based on the specified topological information, such that once projected, traffic can be provided between the plurality of NoC agents and traffic to the NoC can be mapped.
According to one embodiment, automatic generation of the NoC from the specified topological information can include projecting a plurality of agents, a plurality of routers, and a plurality of links onto a grid layout from the specified topological information, and transforming the plurality of links, the plurality of routers, and the plurality of agents on the grid layout to another grid layout through a space transformation algorithm, wherein the space transformation algorithm can be configured to address one or more constraints of one or more layers of the NoC. In another aspect, traffic can be provided between the transformed plurality of agents, and the traffic provided to the NoC can be mapped.
According to one embodiment, aspects of the present disclosure relate to creation of a constraint grid after applying user specified topological constraints, wherein the topological constraints can be specified by a user, for instance in the real space, by giving a list of bridges and/or routers and/or NoC elements and/or links along with, say their placement/location on a SoC, along with mentioning other constraints desired by the user. Such specified topological constraints can be processed into a grid, which is representative of the NoC layout.
According to one embodiment, using the space transformation algorithm, a virtual NoC layout can be created to enable a simple NoC architecture by incorporating minimal number of turns/resources, and can lead to potential change in the complete virtual grid layout.
According to another example embodiment, NoC layout of the present disclosure can be automatically generated from specified topological constraints based on processing of one or more NoC elements on a standardized grid for layout by projecting the NoC elements onto the grid map. According to one embodiment, the grid layout can be mesh of any size, such as a 6*6 mesh, or any other size for that matter. According to another embodiment, NoC elements can be projected on the grid so as to enable bidirectional reduction.
In an example embodiment, disclosure of the present disclosure relates to automatic generation of NoC from specified topological information based on projecting NoC elements to a grid layout.
One should appreciate that the compression mechanisms disclosed herein are completely exemplary in nature and any other technique can be used to create the flattened virtual grid, all of which are completely within the scope of the present disclosure.
Furthermore, some portions of the detailed description are presented in terms of algorithms and symbolic representations of operations within a computer. These algorithmic descriptions and symbolic representations are the means used by those skilled in the data processing arts to most effectively convey the essence of their innovations to others skilled in the art. An algorithm is a series of defined steps leading to a desired end state or result. In the example implementations, the steps carried out require physical manipulations of tangible quantities for achieving a tangible result.
Moreover, other implementations of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the example implementations disclosed herein. Various aspects and/or components of the described example implementations may be used singly or in any combination. It is intended that the specification and examples be considered as examples, with a true scope and spirit of the application being indicated by the following claims.