Transaction expansion for NoC simulation and NoC design

09928204 ยท 2018-03-27

Assignee

Inventors

Cpc classification

International classification

Abstract

Methods and example implementations described herein are generally directed to interconnect architecture, and more specifically, to generation of one or more expanded transactions for conducting simulations and/or NoC design. Aspects of the present disclosure include processing of input traffic specification that is given in terms of groups of hosts, requests, and responses to the requests, in order to generate one or more appropriate/correct expanded transactions that can be simulated.

Claims

1. A method, comprising: for a traffic specification comprising one or more transactions, each of the one or more transactions being specified using one or more groups of transmitting and receiving interfaces, wherein at least one of the one or more groups comprises a plurality of transmitting and receiving interfaces, identifying one or more valid sequences of messages between individual ones of the transmitting and receiving interfaces that can occur during Network on Chip (NoC) system operation, the identifying the one or more valid sequences of messages comprising: for each transaction of the one or more transactions: for each of the one or more groups in the each transaction, determining the individual ones of the transmitting and receiving interfaces from the each of the of the one more groups in the each transaction; generating one or more valid instances of the each transaction from the individual ones of the transmitting and receiving interfaces for the each of the one or more groups of the each transaction; and including the one or more valid instances of the each transaction in the valid sequences of messages.

2. The method of claim 1, wherein the identifying the one or more valid sequences of messages is based on determining hop types for each hop of the transactions.

3. The method of claim 2, wherein the determining hop types is based on at least one of a message type, identifying request and response pairs, identifying singleton endpoints, and definition provided in the traffic specification.

4. The method of claim 1, wherein the identifying the one or more valid sequences of messages comprises extending partial sequences based on destination filtering.

5. The method of claim 1, further comprising determining bandwidth requirements of the traffic specification for NoC design based on valid sequences and a bandwidth combining function.

6. The method of claim 1, further comprising providing instructions to a simulation tool based on conversion of the valid sequences into related messages.

7. The method of claim 6, wherein the instructions provided to a simulation tool utilize only a subset of the valid sequences.

8. The method of claim 1, wherein the one or more groups are marked to indicate the use of at least one of multicast, broadcast, and scatter-gather patterns, wherein the valid sequences comprise at least one of a valid multicast, broadcast, and scatter-gather patterns.

9. A non-transitory computer readable medium storing instructions for executing a process, the instructions comprising: for a traffic specification comprising one or more transactions, each of the one or more transactions being specified using one or more groups of transmitting and receiving interfaces, wherein at least one of the one or more groups comprises a plurality of transmitting and receiving interfaces, identifying one or more valid sequences of messages between individual ones of the transmitting and receiving interfaces that can occur during Network on Chip (NoC) system operation, the identifying the one or more valid sequences of messages comprising: for each transaction of the one or more transactions: for each of the one or more groups in the each transaction, determining the individual ones of the transmitting and receiving interfaces from the each of the of the one more groups in the each transaction; generating one or more valid instances of the each transaction from the individual ones of the transmitting and receiving interfaces for the each of the one or more groups of the each transaction; and including the one or more valid instances of the each transaction in the valid sequences of messages.

10. The non-transitory computer readable medium of claim 9, wherein the identifying the one or more valid sequences of messages is based on determining hop types for each hop of the transactions.

11. The non-transitory computer readable medium of claim 10, wherein the determining hop types is based on at least one of a message type, identifying request and response pairs, identifying singleton endpoints, and definition provided in the traffic specification.

12. The non-transitory computer readable medium of claim 9, wherein the identifying the one or more valid sequences of messages comprises extending partial sequences based on destination filtering.

13. The non-transitory computer readable medium of claim 9, further comprising determining bandwidth requirements of the traffic specification for NoC design based on valid sequences and a bandwidth combining function.

14. The non-transitory computer readable medium of claim 9, further comprising providing instructions to a simulation tool based on conversion of the valid sequences into related messages.

15. The non-transitory computer readable medium of claim 14, wherein the instructions provided to a simulation tool utilize only a subset of the valid sequences.

16. The non-transitory computer readable medium of claim 9, wherein the one or more groups are marked to indicate the use of at least one of multicast, broadcast, and scatter-gather patterns, wherein the valid sequences comprise at least one of a valid multicast, broadcast, and scatter-gather patterns.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) FIGS. 1(a), 1(b) 1(c) and 1(d) illustrate examples of Bidirectional ring, 2D Mesh, 2D Torus, and 3D Mesh NoC Topologies.

(2) FIG. 2(a) illustrates an example of XY routing in a related art two dimensional mesh.

(3) FIG. 2(b) illustrates three different routes between a source and destination nodes.

(4) FIG. 3(a) illustrates an example of a related art two layer NoC interconnect.

(5) FIG. 3(b) illustrates the related art bridge logic between host and multiple NoC layers.

(6) FIG. 4 illustrates an exemplary system with two hosts and two flows represented according to an exemplary flow-level specification.

(7) FIG. 5 illustrates an exemplary group level transaction input.

(8) FIG. 6 illustrates an exemplary method for generation of expanded transactions in accordance with an embodiment of present disclosure.

(9) FIG. 7 illustrates an example traffic specification in accordance with an embodiment of the present disclosure.

(10) FIGS. 8(A) and 8(B) illustrate example non-linear transactions in accordance with embodiments of the present disclosure.

DETAILED DESCRIPTION

(11) 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.

(12) Methods and example implementations described herein are generally directed to interconnect architecture, and more specifically, to generation of one or more transactions for conducting simulations and/or NoC design. Aspects of the present disclosure include processing of input traffic specification that is given in terms of groups of hosts such as CPU's/caches/cache controllers/DMA's/memories, requests, and responses to the requests, in order to generate one or more appropriate/correct transactions that can be simulated.

(13) The present disclosure is directed to a method of generating one or more transactions from a group-based input traffic specification by expansion of the input specification into the one or more transactions. Each transaction, an in example embodiment, can include a plurality of hops between multiple hosts, wherein each hop represents a message sent from one host to another. In an aspect, method of the present disclosure includes the step of determining, for each transition/hop in a given transaction flow, hop type for the respective hop based on the message type of the flow from one host to another such as whether the message type is load request type or load response type. In an aspect, the load request can give full flexibility to the sending host to send the message to any other host, whereas the load response can be constrained in terms of the hosts to which the response can be sent such as the receiving host can be constrained to send the response back to the sender host. In another example aspect, the hop type can include New, Old, First and All, wherein New can indicate that the message can be forwarded to any new host that has not been sent to before in the current transaction, Old can indicate that the message can only be forwarded to an old/defined host that has been a part of the current transaction, first can indicate that the message can only be forwarded to the initiating bridge, and All can indicate that the message can be sent to any host without any constraint. In another aspect, the hop type can be determined based on the request/transaction structure so as to evaluate whether the hop type is of request type (typically with no constraints) or of response type (with constraints). In yet another aspect, the hop type (for instance New, Old, First, and Any) can be determined based on singletons, wherein one or more singleton endpoints can be configured to define and configure transaction structures to override earlier transaction hops. In yet another embodiment, the hop type can also be configured to be selected without constraint as Any type of transaction. In an aspect, the method of the present disclosure can further include using the determined hop types to generate actual instances of the transaction.

(14) In an aspect, the generation of each instance for a given hop type can include creation of one partial transaction for each initial transmitter, and, for each partial transaction, extending one hop by filtering destinations based on hop type and/or partial transactions, wherein for each destination, partial transactions with that destination and its corresponding source can be made.

(15) The present disclosure is also directed to a non-transitory computer readable medium storing instructions for executing a process, the instructions comprising generating one or more transactions from a group-based input traffic specification by expansion of the input specification into one or more transactions. Each transaction, an in example embodiment, can include a plurality of hops between multiple hosts, wherein each hop represents a message sent from one host to another. In an aspect, method of the present disclosure includes the step of determining, for each transition/hop in a given transaction flow, hop type for the respective hop based on say the message type of the flow from one host to another such as whether the message type is load request type or load response type. In an aspect, instructions of the present disclosure can also be configured to use the determined hop types to generate actual instances of the transaction. In an aspect, generation of each instance for a given hop type can include creation of one partial transaction for each initial transmitter, and, for each partial transaction, extending one hop by filtering destinations based on hop type and/or partial transactions, wherein for each destination, partial transactions with that destination and its corresponding source can be made.

(16) The present example implementations are related to traffic simulation and design which include expansion of valid sequences based on a traffic specification. Examples of traffic specifications can be found, for example, in U.S. patent application Ser. No. 14/298,717, herein incorporated by reference in its entirety for all purposes.

(17) For illustrative purposes, FIG. 5 illustrates an exemplary group level transaction input, wherein multiple CPU's 502 can be configured to send/receive messages to/from multiple caches 504, which in turn can be configured to send/receive messages to/from memories 506, wherein such group level transaction input does not take into account the sequence of packet flow or aspects relating to delay and ensuring that the requesting CPU gets the requested data after processing from intermediate hosts. Aspects of the present disclosure therefore enable group level transaction input to be expanded into a plurality of transactions, wherein each transaction is a group of messages that flow from one host to another and then to another by means of hops, and wherein such expanded transactions can be then be used for traffic specification simulation and design of Network-On-Chip (NoC). For instance, following two exemplary transactions can be generated from a group of 3 CPUs (CPU.sub.0, CPU.sub.1, and CPU.sub.2), 3 Caches (Cache.sub.0, Cache.sub.1, and Cache.sub.2), and 3 Memories (Memory.sub.0, Memory.sub.1, Memory.sub.2).

(18) CPU.sub.0.fwdarw.Cache.sub.1.fwdarw.Memory.sub.0.fwdarw.Cache.sub.1.fwdarw.CPU.sub.0

(19) CPU.sub.1.fwdarw.Cache.sub.2.fwdarw.Memory.sub.1.fwdarw.Cache.sub.2.fwdarw.CPU.sub.1

(20) The proposed system and method can therefore ensure that the sequence of message flow is maintained by enabling the requestor to send a load request and the same requests to eventually receive the load response to the request, making following exemplary transaction as erroneous:

(21) CPU.sub.0.fwdarw.Cache.sub.1.fwdarw.Memory.sub.0.fwdarw.Cache.sub.2.fwdarw.CPU.sub.1

(22) Aspects of the present disclosure also enable transaction simulation to be performed such that, instead of the node points, the traffic itself is pre-programmed with the hop/message sequence, without maintaining additional information such as state information of the previous requesting hosts, type of message requests, type of hops, request structure, among other attributes/parameters, but instead storing a pre-computed next message in the sequence. For instance, in a typical transaction the message can flow, say from A.fwdarw.B.fwdarw.C.fwdarw.B.fwdarw.\A, wherein A can send a first message (through first hop) to B, B can send a second message (through second hop) to C, C can send a third message (through third hop) to B, and B can send a fourth message (through fourth hop) to A. In an example embodiment, in such a case, A host can be a requester having a query (Q) message to B, which in turn can send another query/request message (Q) to C, wherein C can process the message and send a reply/response (R) to B's query (Q), and B can then send a response (R) based on the response from C to A. A sequence of 4 related messages can be pre-computed to trigger this behavior in simulation, for instance W.fwdarw.X.fwdarw.Y.fwdarw.Z, where W is the query message from A to B, X is the query message from B to C, Y is the response from C to B and Z is the response from B to A. By relating the messages so each message knows the next, the receiving node can just send the next message in the sequence without significant processing. According to one embodiment, in an example implementation, a message type request can be allowed to go anywhere, i.e. to any host, whereas the message type response can be constrained to go back to the requester. FIG. 6 illustrates an exemplary method 600 for generation of expanded transactions in accordance with an embodiment of present disclosure. As mentioned above, in an example architecture, each transaction can include a plurality of hops between multiple hosts, wherein each hop represents a message sent from one host to another.

(23) At step 602, method of the present disclosure can include determining, for each transition/hop in a given transaction flow, hop type for the respective hop based on, say the message type of the flow message from one host to another such as whether the message type is of load request type or of load response type. In an example aspect, the load request can give full flexibility to the sending host to send the message to any other host, whereas the load response can be constrained in terms of the hosts to which the response can be sent such as, for instance, the receiving host can be constrained to send the response back only to the sender host. In another example aspect, the hop type can include New, Old, and All, wherein New can indicate that the message can be forwarded to any new host that has not participated in the current transaction, Old can indicate that the message can only be forwarded to an old/defined host that has been a part of the transaction, and All can indicate that the message can be sent to any host without any constraint. In another aspect, the hop type can be determined based on the request/transaction structure so as to evaluate whether the hop type is of request type (typically with no constraints) or of response type (with constraints). In yet another aspect, the hop type (for instance New, Old, and Any) can be determined based on singletons, wherein one or more singleton endpoints can be configured to define and configure transaction structures to override earlier transaction hops. In yet another embodiment, the hop destination can also be configured to be selected randomly as Any type of transaction.

(24) At step 604, method of the present disclosure can further include using the determined hop types to generate actual instances of the transaction. In an aspect, generation of each instance for a given hop type can include

(25) 1) creation of one partial transaction for each initial transmitter, and,

(26) 2) for each partial transaction, filtering possible destinations from the transaction based on the current hop type and/or the properties of the partial transaction being extended.

(27) At step 604b, extending that transaction one hop by, for each allowed destination, appending that destination and its corresponding source to the partial transaction to make a new partial transaction.

(28) At step 606, it is checked if more hops are present, wherein in case more hops are present, the method goes back to step 604 to further extend all partial hops, else, if the processed hop was the last hop, at step 608, all partial hops can be returned as complete transactions.

(29) FIG. 7 illustrates an exemplary traffic specification 700 in accordance with an embodiment of the present disclosure. As can be seen, CPU (1, 2) 702 can be configured to make a New hop type request to a Coherency Controller (CC) (0, 1) 704, say CC-0 to check for presence of some content, wherein CC-0 at 704 can then send a snoop message of New type to a new CPU (1, 2) 706 to check if the requested data is available. One should appreciate that although New type of hop message are being made in the instant case, even All hop type based requests can also be made, where the snoop message can be sent to any CPU from amongst the group of CPU's. For instance, in case the original request was made by CPU-1 at 702, the snoop request of New can be sent to CPU-2, which can then, at 706, process the snoop message and respond back with an Old hop type to same CC-0 that made the request at 708. In an instance, in case the content/data is not present in the CPU-2, CC-0 can then make a New hop type load request to a memory (0, 1) 710, wherein the memory at 710 can then reply back with an Old hop type to the requesting CC-0 at 712, which in turn can then send a reply back with an Old hop type to the requesting CPU-1 at 714. According to one embodiment, once the requesting CPU-1 receives the response as load data from the CC-0, an acknowledgement message of Old hop type can be sent back to the CC-0 at block 716. New hop type therefore relates to messages that are sent to new hosts that have not been sent messages earlier in the transaction, whereas Old hop type relates to messages that are sent to hosts that have been previously sent messages or have participated in the transaction.

(30) According to one embodiment, based on the above mentioned traffic specification, multiple different expanded transactions can be generated such as shown in 718, 720, 722, 724, 726, 728, 730, and 732 which show different expanded transactions that maintain the sequence of flow across hosts. As seen, transaction 718 shows CPU-0 making a request to CC-3, which can then make a New hop request to, say CPU-1 or CPU-2, which can then respond back with a Old hop response to CC-3. CC-3 can then make a New hop type request to Mem-0, which can in turn make a Old hop response to CC-3 to enable CC-3 to send a Old hop type message to CPU-0, based on which CPU-0 can send an acknowledgement to CC-0. Similarly, other transactions 720, 722, 724, 726, 728, 730 and 732 can be expanded and processed.

(31) According to one embodiment, while sending messages of hop type Old, history of previous messages, their contexts, chain of requesters, state of transaction, hosts waiting for a response, among other information indicative of from where and for what/whom the message arrived, can be used by a current host to determine the next hop. A linear or a stack-based history can therefore be determined in order to track the earlier sequence of messages and the hosts involved therein. In a stack based history, the lowermost stack, in an instance, can include the original requester of the message, say CPU-1, whereas the second level stack can include CC-0 to which the CPU-1 sent the load request message, wherein CC-0 then sends the load request message to CPU-2 and/or to memory, and therefore both CPU-2 and/or to memory can be configured at the third level stack.

(32) According to one aspect of the present disclosure, in a transaction simulator, when a transaction is initiated or the start of simulation, the whole sequence can be created and stored such that the complete transaction is ready before the first request message is sent by the first requester. In an aspect, midpoints can be configured to receive the message that has the pointer to the next message to be sent. In another aspect, a situation can also arrive wherein a first bridge receives a message and then the response to that message can be given by another bridge, and therefore the next message to be transmitted can be queued to enable the message to be sent by the transmitter after a defined delay. According to one embodiment, the delay can be configured such that a transmitting host should not send a message to a receiving host until a defined delay period is over, wherein the delay period can be the processing delay that is incurred by the host that processes the respective message. According to another embodiment, all the transactions can be created before the simulation is run, or can be created on the run as well. Created instructions can also be re-run repeatedly.

(33) According to another embodiment, hop type for a given message can also include implicit hop type, wherein it is implicitly assumed that the message would be replied back to the requesting host. In another embodiment, a user can also define transactions or parts thereof that need full expansion or can specify exactly how or to whom the response is to be sent. A user can therefore explicitly define and/or change a given specification, say to from a first host to a second host to a third host along with indicating say the hop message type, based on which the transaction can be simulated. For instance, a user can explicitly define that CPU-1 should send a request message to CC-0, which should in turn send a request message to CPU-2 without really specifying the actual hop type such as Any, New, or Old, and in which case even the message does not need to remember or keep a stack trail of previous requesters. A user can also state that the CPU-2 can send a response to anyone except CC-1. Therefore, the user can explicitly define any other type of message transaction sequence or traffic type, or traffic route, or any other constraint, giving rise to possibility of generation of any new hop type desired by the user.

(34) For purposes of NoC design, more accurate point-to-point bandwidth requirement of each pair of endpoints can be computed based on the valid traffic sequences. Attempting to directly use grouped-endpoint transaction bandwidths for NoC design will easily over-provision or under-provision bandwidth, as the number of flows from a source to a destination will be hard to predict. Instead, the bandwidth requirements of the grouped-endpoint transaction should determine the bandwidth requirements of each hop of the valid transactions and then these bandwidths processed by a function to produce the bandwidth requirement for each pair of endpoints. One example function to process these bandwidth requirements is adding them up. Another example is taking the maximum.

(35) Using FIG. 7 as an example, the bandwidth from CPU1 to CC1 could be incorrectly computed from the 3 hops in the grouped-endpoint transaction that can expand to CPU1.fwdarw.CC1. Examining the 8 expanded transactions, we find that there are total 6 hops where CPU1 sends to CC1: trans. 722 hop 1, trans. 722 hop 7, trans. 724 hop 3, trans. 726 hop 1, trans 726 hop7 and trans 728 hop 3. The correct design bandwidth requirement comes from the requirements for these 6 hops by applying a function.

(36) The function to compute bandwidth requirements for a link from the chains going over that link can be implemented in various ways, according to the desired implementation. For example, such a function can involve adding the bandwidth requirements for each of those chains. If analyzing peak bandwidths, the function to compute the net requirement can report the maximum requirement for each chain. In a NoC context, the hops of a chain can traverse the same link multiple times, so considering paths of each hop may result in a multiple of the chain bandwidth being included in the computation. Finally, chains may be assigned to various traffic profiles, to indicate which chains may be simultaneously active. A function that takes this into account could add the rates of chains within each profile and take the maximum rate total across all profiles as its result.

(37) FIG. 8(A) illustrates an exemplary non-linear transaction 800, wherein once a coherency controller 804 receives a load request from CPU-0 802, the CC 804 can send two different requests, one to CPU-1 806 and the second to memory MEM-0 808 so that the CC 804 does not have to wait for the CPU-1 806 to respond back stating that the data requested by the CPU-0 802 is not available. Based on the response from CPU-1 806 and/or MEM-0 808, the CC 804 can then send a response back to the CPU-0 802. Aspects of the present disclosure can therefore allow expanding transactions by means of branching, and then enabling the branched transaction to converge. Non-linear transaction can therefore be defined as a directed trigger graph where some of the message hops are forked/diverging and then connected thereafter with each other so as to form a logically set of connected edges.

(38) FIG. 8(B) illustrates another exemplary non-linear bipartite transaction flow 850 having a plurality of transmit interfaces such as 852-1, 852-2, and 852-3, and a receive interface 854-1. The receive interface 854-1 can have multiple concurrent incoming messages (shown as incoming edges) trigger a single processing event, represented by the edge between 854-1 and 852-4. Then it can send concurrent responses to one or more receive interfaces such as 854-2, 854-3 and 854-4. Many kinds of nonlinear transactions can be represented with a connected, directed, bi-partite multi-graph like 850. A transmit interface with multiple outgoing edges can represent multicast (sending messages to many destinations simultaneously) or broadcast (sending messages to all destinations simultaneously). A receive interface with multiple incoming edges can represent the gather phase of a scatter-gather operation, where messages from a multiplicity of sources are needed before a certain processing can begin. Multiple edges between the same endpoints can describe multiple messages being sent from same source to destination in a single transaction. Any other number of such bi-partite nodes 852/854 with any number of edges can therefore be configured in an aspect of the present disclosure.

(39) One should appreciate although the present disclosure has been explained with reference to load data request, snoop response, load data response, among other types of responses, any other type of message/architecture/interface can completely be incorporated and is well within the scope of the present disclosure. Therefore, in the present disclosure, the proposed loads/stores are in terms of AMBA interfaces but the specification in implementation can be of any interface, until the time they are marked as request/response interfaces and relationships there between. One should also appreciate that although the present disclosure has been explained with reference to the transaction expansion being used for NoC simulation, it can also be used for NoC design, wherein during design, the transaction can first be expanded into multiple transactions and then use the expanded set of transactions to design the NoC.

(40) 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.

(41) 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.

(42) 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.

(43) 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.