Closed sujimasi closed 5 years ago
it mostly depend on what you want to do after the fault. However, if you just want to check if deadlock happens, just modify the routing algorithm in order to catch all the transmissions toward the fault link. For example, if you want to simulate what happens if link on direction east of node 2 becomes faulty after clock cycle 5000, you could simply add the following at the end of the routing algorithm: (WARNING it's pseudo code, use the appropriare variables!)
if (sc_time > 5000) { if (local_id == 2) { if (chosen_dir == DIRECTION_EAST) return NOT_VALID // or maybe introduce another constant to manage in a specific way } } return chosen_dir; // here we return the chosen direction as usual
Thanku so much sir for your valuable information
On Friday, November 9, 2018, Davide Patti notifications@github.com wrote:
it mostly depend on what you want to do after the fault. However, if you just want to check if deadlock happens, just modify the routing algorithm in order to catch all the transmissions toward the fault link. For example, if you want to simulate what happens if link on direction east of node 2 becomes faulty after clock cycle 5000, you could simply add the following at the end of the routing algorithm: (WARNING it's pseudo code, use the appropriare variables!)
if (sc_time > 5000) { if (local_id == 2) { if (chosen_dir == DIRECTION_EAST) return NOT_VALID // or maybe introduce another constant to manage in a specific way } } return chosen_dir; // here we return the chosen direction as usual
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/davidepatti/noxim/issues/71#issuecomment-437420220, or mute the thread https://github.com/notifications/unsubscribe-auth/Aed60u-ZfvVzSqoxl9qa9F73B0xf6OyLks5utbGIgaJpZM4VCB_s .
dear prof, I want to create a fault on a link in 4x4 mesh hybrid topology and i want to check whether deadlock has occured in my topology, otherwise i want to create a deadlock in my topology.I am a new user in noxim which files should i modify if some one tells it will be useful for me.
thanks in advance sujatha research scholar Noc