Hi Mohammad, As far as params are concerned, in gem5 params are passed from python to C++ objects. For example, all parameters of CommMonitor are defined in src/mem/CommMonitor.py. Once you compile gem5, you can view the generated header file for these parameters: build/X86/params/CommMonitor.hh (for X86 e.g.). Look here (http://www.gem5.org/documentation/learning_gem5/part2/parameters/) for more details on parameters of SimObjects.
Based on this document (http://old.gem5.org/General_Memory_System.html), you might have to also connect MemTraceProbe to CommMonitor. Though src/mem/CommMonitor.py does not have a trace_file parameter, you can find this parameter in src/mem/probes/MemTraceProbe.py. Btw, which gem5 version are you using? Regards, Ayaz On Tue, Jan 28, 2020 at 8:04 PM Mohammad Ahmadi <mahm...@mail.usf.edu> wrote: > hello everyone, > > I am trying to use communication monitor to generate trace from system > simulation. When I'm trying to pass the *trace_file* argument to the > constructor, I get the following error: > > "AttributeError: Class CommMonitor has no parameter trace_file" > > I also looked into the communication monitor header file, comm_monitor.hh > and I see that there is an include line: > > #include "params/CommMonitor.hh" > > but there are no *params* directory in the gem5 source code. Do you know > where the problem might be? > > Thanks, > Mohammad Ahmadi > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users