davidepatti / noxim

Network on Chip Simulator
225 stars 120 forks source link

routing table file example #64

Closed NavidDorfeshan closed 6 years ago

NavidDorfeshan commented 6 years ago

hi i want to create my routing table file , but i dont know what is format routing file in noxim. how can i create my routing table file format in noxim? can u give me a example of routing table file plz?

mpalesi commented 6 years ago

Hi,

The format of the routing table is as follows. I start stating that a channel is expressed as

id_router -> id_router

A generic entry of the routing table has four fields:

Field 1: is the id of the current router; Field 2: is the input link; Field 3: the id of destination node; Field 4: the list of admissible output links.

Here is an example of a fragment of routing table:

% Node     In    Dest   Outs
 1   1->1      32   1->0, 1->9
 2   3->2      34   2->10
 2   3->2      36   2->10
 2  10->2       3   2->3

That is, the first row refers to the flits coming from the local IP core of router 1 and whose destination is node 32. According to the table information the flits will be routed through one of the two admissible output links in the Outs column (either 1->0 or 1->9).

Pi-Hsung commented 1 year ago

Hi,

The format of the routing table is as follows. I start stating that a channel is expressed as

id_router -> id_router

A generic entry of the routing table has four fields:

Field 1: is the id of the current router; Field 2: is the input link; Field 3: the id of destination node; Field 4: the list of admissible output links.

Here is an example of a fragment of routing table:

% Node     In    Dest   Outs
 1   1->1      32   1->0, 1->9
 2   3->2      34   2->10
 2   3->2      36   2->10
 2  10->2       3   2->3

That is, the first row refers to the flits coming from the local IP core of router 1 and whose destination is node 32. According to the table information the flits will be routed through one of the two admissible output links in the Outs column (either 1->0 or 1->9).

Are you sure the format is right? it will get the ao.size() error in noxim