davidepatti / noxim

Network on Chip Simulator
218 stars 118 forks source link

Assertion Error #140

Closed taadaal closed 1 year ago

taadaal commented 2 years ago

Hi, I am trying to simulate this file porposed_config.docx everything ok with other traffic but when i simulated with TRAFFIC_BIT_REVERSAL, TRAFFIC_SHUFFLE, TRAFFIC_BUTTERFLY, I get this error Assertion Error What's the problem?

davidepatti commented 2 years ago

Have you tried different mesh sizes ?(e.g., 8x8). I dont remember exactly, but it seems that those kind of traffics have some assumptions about the "shape" of the mesh, like being a power of 2 or something like that..

taadaal commented 2 years ago

Thanks for responding dear professor, Yes I Try 10x10, and the problem is from "Utils.h" file this part: Capture How can I fix this problem? Which part of the Noxim must be changed?

davidepatti commented 2 years ago

what don't you just put some print messages to debug the values...

taadaal commented 2 years ago

I didn't understand the point. What are print messages?

theblueskies commented 1 year ago

@taadaal You can use cout to print messages. That'll help you to see the transition of states. From the error you have pasted, it looks like your modification has caused it to exceed mesh_dim_y . Meaning if the max value of y dimension is 10, your changes have just gone above 10 and the assertion has failed.