davidepatti / noxim

Network on Chip Simulator
218 stars 118 forks source link

Error with TABLE BASED routing #130

Closed udaymallappa closed 2 years ago

udaymallappa commented 2 years ago

I could implement custom traffic with ease, but when implementing custom routing, I find some issues with syntax. Here is an example routing table.txt used by me for two flows, one from node 58 to node 53, other from node 18 to node 36. Mesh is 8x8 and (space at the start of each line).

58 58->58 53 58->59, 59 58->59 53 59->60, 60 59->60 53 60->61, 53 61->53 53 53->53, 18 18->18 36 18->19, 19 18->19 36 19->20, 20 19->20 36 20->28, 36 28->36 36 36->36,

image

udaymallappa commented 2 years ago

The space at the start is added because I see line+1 in the code. Also a "comma" is added at the end of each line after having a look at your code. I changed all my single-digit nodes to two digits (for eg: 2 is represented as 02) and then I use COLUMN_AOC = 14. It sitll throws an error that Assertion 'ao.size() > 0' failed. I ensured that the routing table is read correctly

udaymallappa commented 2 years ago

@davidepatti Can you please help here ? @mpalesi @accuminium

udaymallappa commented 2 years ago

Never mind.. I found a bug in my routing file. It seems to be working now.