The idea is to add some params in .py file and then bind their names to the variables in the implementation file of of the class (foo.cc). I think you missed that step. Have a look at the constructor and add yours similar to the existing params.
At least this is the way that we did. I don't know if that procedure has been changed in newer versions. Regards, Mahmood On Tue, Jul 11, 2017 at 11:01 PM, raziye deylamsalehi < [email protected]> wrote: > Hi Mahmood > > Thank you for answering. for example I want to add parameter to > src/mem/ruby/network/garnet/flexible-pipeline/NetworkInterface.hh. > GarnetNetworkInterface > class is in GarnetNetwork.py file. I added new parameter in .py file and > recompile but it said: > error: 'const Params' has no member named 'num_vcs' > I didn't add this parameter to build/x86/params/GarnetNetworkInterface.hh > for previous run. > then I added parameter to build/x86/params/GarnetNetworkInterface.hh and > recompiled again and it had no compile error. > then I give input in configs/ruby/Ruby.py but when I simulate my 8*8 > network it has this error: > > system.ruby.network.netifs000.num_vcs without default or user set value > > On Tue, Jul 11, 2017 at 7:37 PM, Mahmood Naderan <[email protected]> > wrote: > >> Hi, >> You have to edit the .py file in the src/ and then recompile. For >> example, have a look at src/mem/cache/BaseCache.py and add your *cache* >> related params there and the recompile. The same can be applied to other >> components. >> >> Regards, >> Mahmood >> >> >> >> On Tue, Jul 11, 2017 at 7:31 PM, raziye deylamsalehi < >> [email protected]> wrote: >> >>> Hi >>> >>> I want to add parameter in const params of class. I go to this >>> path build/x86/params and insert parameter there. that is correct? >>> >>> Thanks >>> >>> _______________________________________________ >>> gem5-users mailing list >>> [email protected] >>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >>> >> >> >> _______________________________________________ >> gem5-users mailing list >> [email protected] >> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >> > > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
