Interface virtualization and fast path for network on chip
10735335 ยท 2020-08-04
Assignee
Inventors
- Joseph Rowlands (San Jose, CA, US)
- Joji Philip (San Jose, CA)
- Sailesh Kumar (San Jose, CA)
- Nishant Rao (San Jose, CA)
Cpc classification
H04L47/724
ELECTRICITY
H04L49/254
ELECTRICITY
International classification
Abstract
Example implementations described herein are directed to a configurable Network on Chip (NoC) element that can be configured with a bypass that permits messages to pass through the NoC without entering the queue or arbitration. The configurable NoC element can also be configured to provide a protocol alongside the valid-ready protocol to facilitate valid-ready functionality across virtual channels.
Claims
1. A method for a Network on Chip (NoC), the NoC comprising a plurality of virtual channels, at least one receiving hardware element; and at least one transmitting hardware element, the method comprising: transmitting, at the at least one transmitting hardware, a virtual channel (VC) valid signal as a virtual channel indicator for a virtual channel of the plurality of virtual channels designated for transmission of data and transmitting the data on the virtual channel designated for the transmission of the data to the at least one receiving hardware element; and transmitting a VC credit to the at least one transmitting hardware element, wherein a configurable router of the NoC is to provide configurability of which bypass links of the NoC matching the plurality of virtual channels are available, wherein one or more of the bypass links and the plurality of virtual are capable to provide communication between two or more elements of the NOC or two or more elements of a System on Chip (SoC), wherein the configurable router is to couple any input port to an output port with a direct bypass, wherein bridge logic, coupled between a host and two NoC layers, is to arbitrate between incoming messages from the two NoC layers and cause delivery of each of the incoming messages to the host via one of the two NoC layers.
2. The method of claim 1, further comprising not transmitting a data packet on the virtual channel until a VC credit is obtained.
3. The method of claim 1, wherein each of the plurality of virtual channels are configurable to be independently controlled for mapping to an interface virtual VCs.
4. The method of claim 1, further comprising: managing virtual channel (VC) credits received from one or more of the at least one receiving hardware element; and conducting arbitration based on whether a message destination is associated with a VC credit from the managed VC credits.
5. The method of claim 1, further comprising: arbitrating messages for transmitting through prioritizing messages that are associated with a VC credit.
6. The method of claim 1, further comprising: providing a reservation for a virtual channel (VC) to one or more of the at least one transmitting hardware element based on at least one of management of dedicated VC credits to the one or more of the at least one transmitting hardware element, and an inference of priority from the one or more of the at least one transmitting hardware element.
7. The method of claim 1, wherein the at least one receiving hardware element is an NoC element and the at least one transmitting hardware element is an agent of the System on Chip (SoC).
8. A non-transitory computer readable medium, storing instructions for a Network on Chip (NoC), the NoC comprising a plurality of virtual channels, at least one receiving hardware element; and at least one transmitting hardware element, the instructions to cause a processor to execute one or more operations, the one or more operations comprising: transmitting, at the at least one transmitting hardware, a virtual channel (VC) valid signal as a virtual channel indicator for a virtual channel of the plurality of virtual channels designated for transmission of data and transmitting the data on the virtual channel designated for the transmission of the data to the at least one receiving hardware element; and transmitting a VC credit to the at least one transmitting hardware element, wherein a configurable router of the NoC is to provide configurability of which bypass links of the NoC matching the plurality of virtual channels are available, wherein one or more of the bypass links and the plurality of virtual are capable to provide communication between two or more elements of the NOC or two or more elements of a System on Chip (SoC), wherein the configurable router is to couple any input port to an output port with a direct bypass, wherein bridge logic, coupled between a host and two NoC layers, is to arbitrate between incoming messages from the two NoC layers and cause delivery of each of the incoming messages to the host via one of the two NoC layers.
9. The non-transitory computer readable medium of claim 8, wherein the one or more operations further comprise not transmitting a data packet on the virtual channel until a VC credit is obtained.
10. The non-transitory computer readable medium of claim 8, wherein each of the plurality of virtual channels are configurable to be independently controlled for mapping to an interface virtual VCs.
11. The non-transitory computer readable medium of claim 8, wherein the one or more operations further comprise: managing virtual channel (VC) credits received from one or more of the at least one receiving hardware element; and conducting arbitration based on whether a message destination is associated with a VC credit from the managed VC credits.
12. The non-transitory computer readable medium of claim 8, wherein the one or more operations further comprise: arbitrating messages for transmitting through prioritizing messages that are associated with a VC credit.
13. The non-transitory computer readable medium of claim 8, wherein the one or more operations further comprise: providing a reservation for a virtual channel (VC) to one or more of the at least one transmitting hardware element based on at least one of management of dedicated VC credits to the one or more of the at least one transmitting hardware element, and an inference of priority from the one or more of the at least one transmitting hardware element.
14. The non-transitory computer readable medium of claim 8, wherein the at least one receiving hardware element is an NoC element and the at least one transmitting hardware element is an agent of the System on Chip (SoC).
15. The method of claim 1, wherein the configurable router comprises the output ports.
16. The method of claim 1, wherein a host is coupled to a router of the NoC via injection and ejection ports while the router is coupled to other routers of the NoC via direction ports.
17. The non-transitory computer readable medium of claim 8, wherein the configurable router comprises the output ports.
18. The non-transitory computer readable medium of claim 8, wherein a host is coupled to a router of the NoC via injection and ejection ports while the router is coupled to other routers of the NoC via direction ports.
19. The method of claim 1, wherein the bridge logic is to multiplex between the incoming messages from the two NoC layers to cause delivery of the incoming messages to the host via the two NoC layers.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
DETAILED DESCRIPTION
(13) 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.
(14) In example implementations, a NoC interconnect is generated from a specification by utilizing design tools. The specification can contain constraints such as bandwidth/Quality of Service (QoS)/latency attributes that is to be met by the NoC, and can be in various software formats depending on the design tools utilized. Once the NoC is generated through the use of design tools on the specification to meet the specification requirements, the physical architecture can be implemented either by manufacturing a chip layout to facilitate the NoC or by generation of a register transfer level (RTL) for execution on a chip to emulate the generated NoC, depending on the desired implementation.
(15) In a NoC, there is a network having routers and bridges. Other elements may also be present which can make the NoC fairly large. There may be an inherent latency problem with the NoC. In example implementations, bridges require activation for send messages into the network, and when messages are sent through the link, the router has to arbitrate the messages before the message is sent to the next hop.
(16) For each hop running at a slow frequency, an entire router arbitration calculation including the travel time can be determined. However, most related art implementations are executed at a high frequency, wherein in such cases that the router arbitration may be conducted in a single cycle. Further, latency can be incurred in the bridge, with a cycle incurred in the bridge, a cycle for the link, a cycle for the router, and so on for the transaction. Latency reduction can be difficult due to the routers having arbitration requirements which incur a latency loss for arbitration in each router.
(17)
(18) In example implementations, messages destined to bypass can be pre-arbitrated and then the only logic in the hop can be for determining which output channel is used for the bypass as determined by the bypass logic as illustrated in
(19) In the following example implementations, requirements may be set for forwarding an input to the special bypass. One example requirement is that the link sizes are matched so latency from a width conversion is removed. Another example requirement is no clock crossing, so latency from clock conversion is also removed. Other requirements may also be set in according to the desired implementation.
(20) Related art implementations implement a bypass path in a fixed position that is affixed to an input that is considered to be the most common bypass user. One example of a related art implementation is that an input destined for a particular direction will continually proceed in the direction (e.g. a south input port bypasses to the north input port). Such related art solutions are static.
(21) In example implementations as illustrated in
(22) In example implementations, the bypass configuration can be made during configuration time for the specification.
(23) Example implementations can also analyze traffic flows so that an array is created based on the input ports (e.g. A, B, C, D, E, and F), and analyze how much of the traffic is coming in on a given link is going to a given output port. So for a given output port, analysis can be conducted by comparing the input ports and constructing a bypass based on the bandwidth consumed by the input ports to a given output port. For example, for a router wherein input port one is responsible for three gigabytes of output for output port X for a given time frame and input port two is responsible for six gigabytes for the given time frame, a bypass can be utilized between input port two and output port one.
(24) At 503, locations for implementing a bypass are identified. The locations for implementing the bypass can be identified based on the traffic flow determinations, the hardware configuration of the router and by other methods according to the desired implementation. For example, simulations can be conducted to detect where latency as affected by wire length and travel length are taken into consideration. In such example implementations, output ports can be configured so that a bypass can be made available within the router. And so by converting the router with additional output ports, latency can be reduced. Thus, in example implementations, the optimization can involve determining which bypasses can be implemented to reduce latency and the location of such bypass. The optimization can involve a pre-optimization implementation where conditions for bypassing are identified, and bypasses can be implemented therein. By using design tools during the configuration time, path input algorithms can be utilized to determine the shortest path for the bypass for use in determining the location for implementing the bypass. Optimizations for placement of network elements can also be made to create additional opportunities for bypass in accordance with the desired implementation.
(25) Bypasses may also be determined based on desired constraints. In an example constraint, the input VC width is set to match the output VC width. In such an example implementation, the physical link size may be different, however, the bypass is still utilized between the two physical links to connect matching input and output VCs.
(26) At 504, the eligible routers are then configured with the bypass based on the determinations. As the routers are configurable in example implementations, a heterogeneous NoC with heterogeneous routers can thereby be implemented. Example implementations are in contrast to related art systems, which are directed to homogenous NoC systems and homogenous routers. Related art implementations involve bypasses that are stacked directionally on the assumption that the NoC is homogenous and is therefore static, whereas the example implementations of the present disclosure can utilize heterogeneous router and NoC configurations.
(27) Example implementations described herein can be implemented as a hardwired bypass. In such example implementations, the software at configuration time can precompute where packets are going and can also utilize sideband information to the NoC. Sideband channels can be utilized for messages to determine which output port to utilize. Sideband information does not need to be utilized for controlling multiplexing to the output ports, but can be utilized control the validity of the output port. The routing information is processed, wherein example implementations calculate the route including the port.
(28) As illustrated in
(29) Example implementations can also involve algorithms for the creation of bypass paths. As illustrated in
(30) Example implementations may also involve algorithms for selecting which multiplexer to incorporate into the NoC hardware element, which can be conducted in a preselected manner or configured after the NoC is designed, in accordance with the desired implementation.
(31) Example implementations may also involve NoCs with hardware elements having differing physical channel sizes, but VCs with matching sizes to facilitate the bypass. The hardware elements may also be in the form of a configurable router that has complete configurability in terms of which bypasses are available. In an example implementation, the router design can involve having each output port associated with a selected input port with a direct bypass. Further, example implementations may involve a NoC element and configuration method wherein a single input port could be selected from bypass to multiple with restrictions. (e.g., if the output VC is the same size as the input.)
(32) Virtualization Interface and Valid-Ready for Virtual Channels (VCs) and Other Types of Traffic
(33) In related art implementations, NoC systems utilize a valid/ready handshake. In such a handshake protocol, one NoC element asserts a valid signal, and if the receiving NoC element asserts a ready signal at the same time, then a message transfer can occur between the two NoC elements. Such related art implementations may further have restrictions depending on the implementation (e.g. to prevent deadlock). In an example restriction, the NoC element does not wait for the valid signal to assert a ready signal, or vice versa. However, related art implementations of the valid/ready handshake are not aware of the actual status of VCs. In related art implementations, even if a request is made using the valid/ready handshake, the status of the VC to be used may actually be blocked. Further, other VCs within the physical channel may be available, but the related art implementations cannot discern their availability due to the NoC elements requiring a ready signal before proceeding. Such implementations may also apply to other traffic types where the valid/ready handshake is blocking the transmission. The destination element would benefit from being able to indicate which traffic flows it would like to receive through the issuance of credits or indication through the ready signal for that specific traffic type.
(34) In example implementations, additional information is provided for a valid-ready handshake to address the issues with the related art. Example implementations utilize a valid-ready and credit based hybrid system to facilitate valid-ready handshake functionality. In a credit-based design for the example implementations, independent credits are allocated for each VC. The requesting NoC element transmits a request when a VC credit has been obtained.
(35) Related art implementations utilize a sideband information channel to indicate which virtual channels are available. However, such information is potentially stale. Further, such implementations provide a bit vector that indicates VCs within a range are available (e.g. VCs 8-16) without specifically indicating which VCs are available and which are not.
(36)
(37) In example implementations, a number of VCs on the NoC are associated with a physical interface. The physical interface can be associated with a number of interface VCs which can be mapped according to the desired implementation.
(38) In an example implementation involving a master and slave, a NoC bridge is utilized. The NoC bridge communicates with a slave, which may have a plurality of virtual channels for the traffic. One virtual channel may involve high-priority CPU traffic (e.g. latency-sensitive traffic), another may involve I/O traffic, and another may involve asynchronous traffic which may be time critical, and so on. The properties of the virtual channels may also change over time, depending on the desired implementation.
(39) In example implementations involving credit based implementation, as each channel can be separated and dedicated to the desired implementation, such implementations avoid the merger of traffic flows that should not be merged.
(40) In the example implementation hybrid approach, the credit-based handshake is conducted between the agents while valid-ready requirements are enforced. In an example implementation, the target sends a credit back to the master indicating that a resource is available for a request. When the master tries to make that request, the target can indicate that it is not ready due to some delay (e.g. clock crossing). By utilizing the valid-ready with the credit system, it provides a way for temporary back-pressuring from the slave.
(41) In example implementations, initialization is also facilitated as when the credit-based approach is applied, the NoC elements will determine the initialization. For example, the initialization of the credits can be zero, whereupon after a reset credits can be passed from the target NoC element to the requesting NoC element. Depending on the desired implementation, a certain number of credits can be provided at the master. However, if the reset for the NoC elements are unknown, the flow is harder to control, the valid-ready handshake can be utilized with the ready allowed for de-assertion. Even though the master element has VC credits, the master may be unable to transmit until the target NoC (slave) element is ready to accept the credits.
(42) In example implementations, different virtual channels may involve different responses (e.g. read response, write response). In example implementations, there can be multiple virtual channels on the read interface going into another controller having only one read response channel. Thus, the congestion may go to the memory controller undergoing different arbitrations with a guaranteed drain. Each channel is completely independent, and they can be used for any purpose according to the desired implementation.
(43) Example implementations involve a bookkeeping mechanism to track responses. Such a mechanism can involve a data structure to store information to track responses and when the responses are received. For example, if there are four VCs, the VCs can be broken into four segments with reservations. The arbiter may determine to send a flit if the NoC element has credit at the output. The example implementations can involve any partition of the data structure between the four VCs in any way according to the desired implementation. For example, each hardware element can be dedicated to a single VC, or pools of resources can be shared with some or all of the VCs. In example implementations, a mix of dedicated and shared resources can also be provided. Dedicated resources can ensure one channel cannot block another channel.
(44)
(45)
(46) As illustrated in
(47) Depending on the desired implementation, the transmitting hardware element can be configured to not transmit the VC valid signal on the virtual channel until a VC credit is obtained, and transmit the VC valid signal on the virtual channel to the at least one receiving hardware element on receipt of the VC credit based on the protocol of
(48) In an example implementation, the plurality of channels can also involve virtual channels, with each of the physical channels being configurable to be independently controlled to adjust a number of VCs for each of the plurality of channels. Such implementations can be conducted by a NoC controller which is configured to define the number of VCs for a given physical channel. In an example implementation, the NoC may maintain the same quantity of VCs for read messages as for read response messages within a given physical channel through such a NoC controller, or they can be differing quantities depending on the desired implementation.
(49) In example implementations, the NoC may include a configurable interface for the transmitting hardware element and the receiving hardware element, that configures the transmitting hardware element and the receiving hardware element for at least one of deadlock avoidance and quantity of virtual channels. Such configuration can be conducted through a NoC specification, wherein the interface can be in the form of a hardware/software interface or a hardware mechanism that processes the specification to configure the NoC for deadlock avoidance, and quantity of virtual channels.
(50) In example implementations, the NoC may also include a virtual interface for virtual channels to interact with agents of a SoC. Such a virtual interface can be implemented in the NoC bridges, or can be part of the NoC depending on the desired implementation.
(51) In example implementations, the transmitting element can be configured to manage VC credits received from one or more receiving hardware elements as illustrated in
(52) In further example implementations, the receiving hardware element can be configured to provide a reservation for a VC to one or more transmitting hardware elements based on at least one of management of dedicated VC credits to the one or more of transmitting hardware elements, a shared tool providing certain minimum priority for the one or more transmitting hardware elements, and an inference of priority from the one or more of the at least one transmitting hardware element. Such reservations can include a pre-configuration so that certain hardware elements always have a certain number of VC credits reserved, priority inferred based on the type of message received or a hierarchy of hardware elements as defined in the NoC specification.
(53)
(54)
(55) In example implementations there can be a system such as a NoC, a SoC, or any hardware element system that require a virtual channel interface that involves a plurality of channels; at least one receiving hardware element; and at least one transmitting hardware element configured to: transmit a valid signal to the at least one receiving hardware element on a channel of the plurality of channels, and transmit a virtual channel (VC) valid signal as a virtual channel indicator for a virtual channel of a plurality of virtual channels designated for transmission of data and transmit the data on the virtual channel designated for the transmission of the data; wherein the at least one receiving hardware element is configured to transmit a VC credit to the at least one transmitting hardware element as illustrated in
(56) In example implementations, the at least one transmitting hardware element is configured to not transmit the data packet on the virtual channel until a VC credit is obtained. The plurality of channels can be physical channels that are partitioned into one or more virtual channels, and each of the channels can be configurable to be independently controlled for mapping to an interface virtual VCs. In such example implementations, multiple transmitting channels can map to a single interface virtual channel, or a single transmitting channel can map to multiple virtual channels depending on the desired implementation. In an example implementation involving a single transmitting channel mapping to multiple virtual channels, the transmission can be conducted when any of the VC credits are available. The mapping can be done through a virtual interface connected to the NoC to map virtual channels with transmitting elements such as agents of a SoC. Such interfaces can include read channels, read response channels, and so on depending on the desired implementation. In example implementations, the interface can include the decoder, queue, arbiter, multiplexer, and/or the output as illustrated in
(57) In example implementations, the at least one transmitting element is further configured to manage VC credits received from one or more of the at least one receiving hardware element; and conduct arbitration based on whether a message destination is associated with a VC credit from the managed VC credits as illustrated in
(58) In example implementations, the at least one transmitting hardware element is configured to arbitrate messages for transmitting through prioritizing messages that are associated with a VC credit through the user of the arbiter as illustrated in
(59) In example implementations, the at least one receiving hardware element is configured to provide a reservation for a VC to one or more of the at least one transmitting hardware element based on at least one of management of dedicated VC credits to the one or more of the at least one transmitting hardware element, and an inference of priority from the one or more of the at least one transmitting hardware element based on the information of
(60) In example implementations the at least one receiving hardware element can be a NoC element such as a router or a bridge and the at least one transmitting hardware element is an agent of the System on Chip (SoC), such as a memory or a CPU.
(61) Although example implementations involve a NoC, other systems such as a SoC or other interconnect can be utilized in accordance with the desired implementation. Any hardware element that can utilize a virtual interface can take advantage of the example implementations described herein.
(62) Unless specifically stated otherwise, as apparent from the discussion, it is appreciated that throughout the description, discussions utilizing terms such as processing, computing, calculating, determining, displaying, or the like, can include the actions and processes of a computer system or other information processing device that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system's memories or registers or other information storage, transmission or display devices.
(63) Example implementations may also relate to an apparatus for performing the operations herein. This apparatus may be specially constructed for the required purposes, or it may include one or more general-purpose computers selectively activated or reconfigured by one or more computer programs. Such computer programs may be stored in a computer readable medium, such as a computer-readable storage medium or a computer-readable signal medium. A computer-readable storage medium may involve tangible mediums such as, but not limited to optical disks, magnetic disks, read-only memories, random access memories, solid state devices and drives, or any other types of tangible or non-transitory media suitable for storing electronic information. A computer readable signal medium may include mediums such as carrier waves. The algorithms and displays presented herein are not inherently related to any particular computer or other apparatus. Computer programs can involve pure software implementations that involve instructions that perform the operations of the desired implementation.
(64) Various general-purpose systems may be used with programs and modules in accordance with the examples herein, or it may prove convenient to construct a more specialized apparatus to perform desired method steps. In addition, the example implementations are not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the example implementations as described herein. The instructions of the programming language(s) may be executed by one or more processing devices, e.g., central processing units (CPUs), processors, or controllers.
(65) As is known in the art, the operations described above can be performed by hardware, software, or some combination of software and hardware. Various aspects of the example implementations may be implemented using circuits and logic devices (hardware), while other aspects may be implemented using instructions stored on a machine-readable medium (software), which if executed by a processor, would cause the processor to perform a method to carry out implementations of the present disclosure. Further, some example implementations of the present disclosure may be performed solely in hardware, whereas other example implementations may be performed solely in software. Moreover, the various functions described can be performed in a single unit, or can be spread across a number of components in any number of ways. When performed by software, the methods may be executed by a processor, such as a general purpose computer, based on instructions stored on a computer-readable medium. If desired, the instructions can be stored on the medium in a compressed and/or encrypted format.
(66) Moreover, other implementations of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the teachings of the present disclosure. 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 example implementations be considered as examples only, with the true scope and spirit of the present disclosure being indicated by the following claims.