davidepatti / noxim

Network on Chip Simulator
218 stars 118 forks source link

How adding a fault to the node? #139

Closed taadaal closed 2 years ago

taadaal commented 2 years ago

Hi I implemented the XY-YX algorithm in Noxim. As you know, this algorithm is a fault-tolerance routing algorithm. What code or function should I add to the Router.cpp file to cause a fault in a node? In other sources, I found the XY-YX Router.cpp that related to the old version, and I made changes like this file, but I got a lot of errors. Could I reference a fault to the routing algorithm with a function? Fault Tolerant Dynamic XY-YX Routing Algorithm for Network On-Chip Architecture.pdf

davidepatti commented 2 years ago

the description is too generic... what kind of fault? being unable to route? forever or temporary? Anyway you could just add a boolean representing the status (e.g., true=working, false = fault) and then putting in AND to whatever piece of code implements the faulty part of the router.

taadaal commented 2 years ago

Thanks for responding dear professor, for example I want to deactive one or two router. Thanks for your advice.