davidepatti / noxim

Network on Chip Simulator
218 stars 118 forks source link

Adding algorithm to Noxim? #127

Closed taadaal closed 2 years ago

taadaal commented 2 years ago

I want to use two algorithms at the same time in WiNoC. how it could be possible?

davidepatti commented 2 years ago

what do you mean "at the same time"?

taadaal commented 2 years ago

For example, i want to use XY for the wired and FoN for wireless of WiNoC. how it could be possible?

davidepatti commented 2 years ago

There are several ways to do that, one could be to create a new routing algorithm (see tutorial slides) so that its own logic chooses between XY and FoN depending on some additional data that has been added to the packet fields. For example, in the Route(packet p) of a router: case MY_ROUTING: if (p.is_wired==true) Route_XY(p) else use Route_FoN(p)

taadaal commented 2 years ago

thanks a lot 🌹