Discussion:
[gem5-users] GEM5 TLM example--No gem5.sc generated
Eric Zhou
2018-07-30 14:39:49 UTC
Permalink
Hello experts,

I am new to GEM5 and I am trying to run the examples in util/tlm directory, but I ran into some issue. I read the README file in this directory and followed every steps. The issue is that no “gem5.sc” file is created after I execute the command below.
../../build/ARM/gem5.opt conf/tlm_slave.py
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 compiled Jul 29 2018 23:57:21
gem5 started Jul 30 2018 03:01:34
gem5 executing on hsv-bw01, pid 313321
command line: ../../build/ARM/gem5.opt --verbose conf/tlm_slave.py

Global frequency set at 1000000000000 ticks per second
fatal: Can't find port handler type 'tlm_slave'
Memory Usage: 375432 Kbytes

It seems that it is working but NO ‘gem5.sc’ is created as described in README.

The message "fatal: Can't find port handler type 'tlm_{master,slave}'" is okay.
The configuration will be stored in the m5out/ directory

The build step creates a binary 'gem5.sc' for each example in the
build/examples/{master|slave}_port directories. It can now be used to load in
the generated configuration file from the previous normal gem5 run.

I tried the example in util/systemc directory and I can get a gem5.opt.sc binary over there. It does not work for example in util/tlm. Does anyone know what I missed, thanks a lot!

Regards,
Eric
Christian Menard
2018-07-30 15:17:06 UTC
Permalink
Hi Eric,

for running the tlm example you need two things:
1. the binary (gem5.sc)
2. a configuration file (config.ini)

The command you posted (see below) produces the configuration, not the
binary.
Post by Eric Zhou
../../build/ARM/gem5.opt conf/tlm_slave.py
Did you follow the build steps (section III in the Readme)? This should
give you some binaries in the build directory. If you did this already,
could you be more specific about what is not working? Do you get eny
error messages?

Cheers,
Christian
Post by Eric Zhou
Hello experts,
I am new to GEM5 and I am trying to run the examples in util/tlm directory, but I ran into some issue. I read the README file in this directory and followed every steps. The issue is that no “gem5.sc” file is created after I execute the command below.
../../build/ARM/gem5.opt conf/tlm_slave.py
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Jul 29 2018 23:57:21
gem5 started Jul 30 2018 03:01:34
gem5 executing on hsv-bw01, pid 313321
command line: ../../build/ARM/gem5.opt --verbose conf/tlm_slave.py
Global frequency set at 1000000000000 ticks per second
fatal: Can't find port handler type 'tlm_slave'
Memory Usage: 375432 Kbytes
It seems that it is working but NO ‘gem5.sc’ is created as described in README.
The message "fatal: Can't find port handler type 'tlm_{master,slave}'" is okay.
The configuration will be stored in the m5out/ directory
The build step creates a binary 'gem5.sc' for each example in the
build/examples/{master|slave}_port directories. It can now be used to load in
the generated configuration file from the previous normal gem5 run.
I tried the example in util/systemc directory and I can get a gem5.opt.sc binary over there. It does not work for example in util/tlm. Does anyone know what I missed, thanks a lot!
Regards,
Eric
_______________________________________________
gem5-users mailing list
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
Eric Zhou
2018-07-30 15:28:47 UTC
Permalink
Hi Christian,
cd ../..
scons build/ARM/gem5.opt
scons --with-cxx-config --without-python --without-tcmalloc build/ARM/libgem5_opt.so
cd util/tlm
../../build/ARM/gem5.opt conf/tlm_slave.py
After the last step, config file (config.ini in m5out/ directory) is generated, but binary gem5.sc is NOT generated. According to README,
"The build step creates a binary 'gem5.sc' for each example in the build/examples/{master|slave}_port directories. It can now be used to load in the generated configuration file from the previous normal gem5 run."

I can not find gem5.sc in directory mentioned above. If everything works well, will the last build command generate gem5.sc binary? Thanks!

Regards,
Eric

On 7/30/18, 11:17 PM, "gem5-users on behalf of Christian Menard" <gem5-users-***@gem5.org on behalf of ***@tu-dresden.de> wrote:

EXTERNAL MAIL


Hi Eric,

for running the tlm example you need two things:
1. the binary (gem5.sc)
2. a configuration file (config.ini)

The command you posted (see below) produces the configuration, not the
binary.
../../build/ARM/gem5.opt conf/tlm_slave.py
Did you follow the build steps (section III in the Readme)? This should
give you some binaries in the build directory. If you did this already,
could you be more specific about what is not working? Do you get eny
error messages?

Cheers,
Christian
Hello experts,
I am new to GEM5 and I am trying to run the examples in util/tlm directory, but I ran into some issue. I read the README file in this directory and followed every steps. The issue is that no “gem5.sc” file is created after I execute the command below.
../../build/ARM/gem5.opt conf/tlm_slave.py
gem5 Simulator System. https://urldefense.proofpoint.com/v2/url?u=http-3A__gem5.org&d=DwIGaQ&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7kl3s3GZ-_haXqY&r=QA0wyVDBz_aNTupsPs_JK-YsqyieXKUdBvCtl6Ixz8o&m=O7vmtLYnoPRrYshvfH7tieW1S7VBb2lWuSCV38HU5zg&s=pCbpKbeWrBCObQLRleiHEtnOuoeVtg4j9rpKFXdOHMM&e=
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Jul 29 2018 23:57:21
gem5 started Jul 30 2018 03:01:34
gem5 executing on hsv-bw01, pid 313321
command line: ../../build/ARM/gem5.opt --verbose conf/tlm_slave.py
Global frequency set at 1000000000000 ticks per second
fatal: Can't find port handler type 'tlm_slave'
Memory Usage: 375432 Kbytes
It seems that it is working but NO ‘gem5.sc’ is created as described in README.
The message "fatal: Can't find port handler type 'tlm_{master,slave}'" is okay.
The configuration will be stored in the m5out/ directory
The build step creates a binary 'gem5.sc' for each example in the
build/examples/{master|slave}_port directories. It can now be used to load in
the generated configuration file from the previous normal gem5 run.
I tried the example in util/systemc directory and I can get a gem5.opt.sc binary over there. It does not work for example in util/tlm. Does anyone know what I missed, thanks a lot!
Regards,
Eric
_______________________________________________
gem5-users mailing list
https://urldefense.proofpoint.com/v2/url?u=http-3A__m5sim.org_cgi-2Dbin_mailman_listinfo_gem5-2Dusers&d=DwIGaQ&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7kl3s3GZ-_haXqY&r=QA0wyVDBz_aNTupsPs_JK-YsqyieXKUdBvCtl6Ixz8o&m=O7vmtLYnoPRrYshvfH7tieW1S7VBb2lWuSCV38HU5zg&s=i1M72d6izP4qTzBeOusgMF6wI2q8qKRfKBZ8kd_8fDM&e=
_______________________________________________
gem5-users mailing list
gem5-***@gem5.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__m5sim.org_cgi-2Dbin_mailman_listinfo_gem5-2Dusers&d=DwIGaQ&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7kl3s3GZ-_haXqY&r=QA0wyVDBz_aNTupsPs_JK-YsqyieXKUdBvCtl6Ixz8o&m=O7vmtLYnoPRrYshvfH7tieW1S7VBb2lWuSCV38HU5zg&s=i1M72d6izP4qTzBeOusgMF6wI2q8qKRfKBZ8kd_8fDM&e=
Loading...