[gem5-users] Assistance Required: Gem5 Example Error on WSL Ubuntu 22.04

2023-09-12 Thread Ananth.PaiJ--- via gem5-users
Hello,

I hope this email finds you well. I am writing to seek assistance with a 
challenge I am facing while building Gem5 in the "util/tlm" directory on my WSL 
(Windows Subsystem for Linux) Ubuntu 22.04 environment.

Following the instructions provided in the Gem5 README file, I successfully 
executed the initial build commands:

scons build/ARM/gem5.opt
scons --with-cxx-config --without-python --without-tcmalloc USE_SYSTEMC=0 
build/ARM/libgem5_opt.so
Both commands worked perfectly, resulting in the successful building of Gem5 
and the creation of a library.

However, when I attempted to build the SConstruct in the "util/tlm" directory 
by running scons, I encountered an error message:
scons: Reading SConscript files ...
AttributeError: 'Values' object has no attribute 'duplicate_sources':
  File "/home/paija/gem5/util/tlm/SConstruct", line 69:
deps += SConscript('src/SConscript', variant_dir='build/tlm', 
exports='env', duplicate=GetOption('duplicate_sources'))
  File "/home/paija/.local/lib/python3.10/site-packages/SCons/Script/Main.py", 
line 490:
return getattr(OptionsParser.values, name)
  File 
"/home/paija/.local/lib/python3.10/site-packages/SCons/Script/SConsOptions.py", 
line 118:
return getattr(self.__dict__['__defaults__'], attr)

I have thoroughly reviewed the code and dependencies in the "util/tlm" 
directory, but I have not been successful in identifying the root cause of this 
issue. I have also followed the Gem5 README instructions to the best of my 
ability.

As a WSL Ubuntu 22.04 user, I understand that there might be certain nuances 
and configurations specific to this environment. Since Gem5 is a complex tool, 
I thought it would be best to seek guidance from experts like yourself who may 
have experience in addressing similar challenges.

I would greatly appreciate it if you could provide me with some insights, 
suggestions, or steps to troubleshoot and resolve this build issue. If there 
are specific logs or details you require, please let me know, and I will be 
happy to provide them.

Your assistance would be invaluable in helping me overcome this obstacle and 
continue my work with Gem5. Thank you in advance for your time and support.

I look forward to hearing from you soon.

Best regards,
Ananth Pai J (IFIN DES PTS TI EA SME)
ananth.p...@infineon.com

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Issue with TLM programs in gem5

2023-10-19 Thread Ananth.PaiJ--- via gem5-users
Hello,

I am writing to seek your advice on a problem I am facing while running TLM 
programs in gem5. Specifically, I am encountering the following error message 
when I pass my code to gem5.opt:

Global frequency set at 1 ticks per second
build/X86/mem/external_master.cc:73: fatal: Can't find port handler type 
'tlm_master'
Memory Usage: 93468 KBytes

And because of this the simulation is being terminated.

I have tried several solutions, including building gem5 with TLM support and 
checking that the tlm_master component is correctly defined and registered in 
the configuration file. However, I have not been able to resolve the issue.

I am a WSL ubuntu 22.04 LTS user. I am reaching out to the gem5 community to 
see if anyone has encountered a similar problem and has found a solution.

Thank you for the time and support.

Best regards,
Ananth Pai J

Infineon Technologies IN
IFIN DES PTS TI EA SME
Phone: +91 7349045724
ananth.p...@infineon.com

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Assistance required: Stats not generated for TLM examples

2024-01-08 Thread Ananth.PaiJ--- via gem5-users
Hello all,

I have been working with gem5 for a while now. I'm trying to generate 
statistics for the TLM example given in the 
util/systemc/systemc_within_gem5/systemc_gem5_tlm example.
Since there were no in-built stats available for the sc_tlm_target.{cc,hh}, I 
tried to create few of my own using the mechanism given in the documentation. 
I'll add my code snippets below.

#include<>

struct TargetParams: public SimObjectParams{
};
class Target: public sc_module, public gem5::SimObject
{
  public:
   ..
struct StatGroup : public gem5::statistics::Group {
gem5::statistics::Scalar testingVariable1;
gem5::statistics::Scalar testingVariable2;
gem5::statistics::Scalar testingVariable3;
StatGroup(gem5::statistics::Group *parent);
}stats;
  
  public:
PARAMS(Target);
SC_HAS_PROCESS(Target);
Target(sc_module_name name, const Params &p) :
 sc_module(name),
 SimObject(p),
 tSocket("tSocket"),
 wrapper(tSocket, std::string(name) + ".tlm", InvalidPortID),
 stats(this)
{
.
}
.
};
Target::StatGroup::StatGroup(gem5::statistics::Group *parent)
: gem5::statistics::Group(parent),
ADD_STAT(testingVariable1, gem5::statistics::units::Count::get(), 
"Variable1 for testing"),
ADD_STAT(testingVariable2, gem5::statistics::units::Count::get(), 
"Variable2 for testing"),
ADD_STAT(testingVariable3, gem5::statistics::units::Count::get(), 
"Variable3 for testing")
{
}

My current gem5 version is gem5v23.1. I'm working on WSL. Please feel ask any 
more questions if needed.

Thank you and hoping to listen from you soon.

Best Regards,
Ananth Pai J

Infineon Technologies IN
DES PTS TI EA SME
Phone: +91 7349045724
ananth.p...@infineon.com

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org


[gem5-users] Assistance required: SimObject params throwing error

2024-02-25 Thread Ananth.PaiJ--- via gem5-users
Hello *,

While building gem5 with EXTRAS= mechanism I'm encountering an error.
Error :
[SO Param] m5.objects.BranchPredictor, BranchTargetBuffer -> 
ARM/python/_m5/param_BranchTargetBuffer.cc
terminate called after throwing an instance of 'pybind11::error_already_set'
  what():  AttributeError: m5.objects.SystemC_Example.py already found in 
importer

At:
  (57): add_module
  (93): install

And this stays the same for all params build irrespective of which simobject 
its building. But I have not called that anywhere else.
I'm currently using gem5v23.1. gcc 11.2. python 3.10.12.

Warm regards,
Ananth Pai J

Infineon Technologies IN
DES PTS TI EA SME
Phone: +91 7349045724
ananth.p...@infineon.com

___
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org