davidepatti / noxim

Network on Chip Simulator
225 stars 120 forks source link

Simulation Fails with Flit Size of 256 Bits #101

Closed lchang256 closed 4 years ago

lchang256 commented 4 years ago

I am running a simple simulation of mesh config with flit size 256 bits. However, simulation always fails with the following message: noxim: ../src/Power.cpp:88: void Power::configuraeRouter(int, int, int, std::_cxx11::string, std::_cxx11::string): Assertion 'GlobalParams::power_configuration.bufferPowerConfig.leakage.find(key)!= GlobalParams::power_configuration.bufferPowerConfig.leakge.end()' failed.

It looks like it's trying to execut NoC.cpp around line 2181: t[i][j]->r->power.configureRouter(GlobalParams::flit_size, GlobalParams::buffer_depth, GlobalParams::flit_size, string(GlobalParams::routing_algorithm), "default");

That doesn't match the function declaration in Power.cpp:77:

void Power::configureRouter(int link_width, int buffer_depth, int buffer_item_size, string routing_function, string selection_function)

What is buffer_item_size supposed to be?

davidepatti commented 4 years ago

If you look at the power.yaml file in the bin directory, in the default power model the numbers for 256 size are missing, for example in "network interface" and "buffer" sections. This is not a limitation by itself, it's simply that we did not consider such sizes when measuring with those VHDL model. Anyway, you are free to add those missing entries from your own measurements, or just to interpolate the previous values (16,32,64,128) to create the new ones for 256.

lchang256 commented 4 years ago

Thank you. This fixed my issue. This can be closed.

KHariHaraChaitanya commented 1 year ago

@davidepatti I have a similar issue where I am unable to run simulations with buffer sizes 5 and 6. How do I extrapolate the ItemSize Leakage Push Front Pop values to add them in power.yaml file?