Running My First MPSoC Script

165 views
Skip to first unread message

Lubna Badri

unread,
Dec 30, 2013, 5:30:25 AM12/30/13
to mpsoc...@googlegroups.com
Dear Liana,

I am trying to run my first script but I don’t know how to start.
In "How to use" it is mentioned that the execution of MPSoCBench  execution is controlled through the command line tool.
Kindly, can you advice me how to reach this tool and start my first example.

Using the other option "manually" controlling MPSoCBench:

1. I changed the makfile (included in the MPSoCBench directory) to the following:

    export PROCESSOR := arm
export SOFTWARE := water-spatial
export NUMPROCESSORS := 8
export CROSS := $(PROCESSOR)-elf-gcc
export PLATFORM := platform.noc.lt
export POWER_SIM_FLAG :=
export WAIT_TRANSPORT_FLAG := -DWAIT_TRANSPORT
export TRANSPORT := block

include Makefile.conf
include Makefile.rules


2. The following results appears on the terminal:

lubnabadri@lubnabadri-HP-Pavilion-g6-Notebook-PC:~/MPSoCBench$ make
Making IP tlm_memory ...
In file included from tlm_memory.cpp:53:0:
tlm_memory.h:51:29: fatal error: ac_tlm_protocol.H: No such file or directory
compilation terminated.
make[1]: *** [tlm_memory.o] Error 1
Making IP tlm_lock ...
In file included from tlm_lock.cpp:13:0:
tlm_lock.h:40:29: fatal error: ac_tlm_protocol.H: No such file or directory
compilation terminated.
make[1]: *** [tlm_lock.o] Error 1
Making IS tlm_noc_lt ...
In file included from tlm_noc.cpp:14:0:
tlm_noc.h:19:29: fatal error: ac_tlm_protocol.H: No such file or directory
compilation terminated.
make[1]: *** [tlm_noc.o] Error 1
Making Processor arm ...
--- No simulator found, using acsim to generate one.
make[1]: /home/lubnabadri/archc/bin/acsim: Command not found
make[1]: *** [arm.cpp] Error 127
Making Software water-spatial ...
make[1]: arm-elf-gcc: Command not found
make[1]: *** [barrier.o] Error 127
cp: cannot stat `sw/water-spatial/*.x': No such file or directory
make: *** [all] Error 1
lubnabadri@lubnabadri-HP-Pavilion-g6-Notebook-PC:~/MPSoCBench$


knowing that the "makefile.conf" contents are:

export SYSTEMC:=/home/lubnabadri/systemc 
export TLM_PATH := /home/lubnabadri/systemc/include
export ARCHC_PATH := /home/lubnabadri/l/archc
export POWERSC_PATH := /home/lubnabadri/powersc
export ARP:=$(PWD)
export PATH:=/l/archc/compilers/arm/bin:/l/archc/compilers/bin:/home/lubnabadri/l/archc/bin:$(PATH)
export HOST_OS:= linux
export LD_LIBRARY_PATH:=/home/lubnabadri/systemc/lib-linux:$(LD LIBRARY PATH) or


Thank you in advance

Regards;
Lubna Badri




Liana Duenha

unread,
Jan 6, 2014, 5:47:53 AM1/6/14
to mpsoc...@googlegroups.com
Hello Lubna,
I'm sorry my late reply. 

The problem is that the ArchC files were not found. There are two possible reasons: the paths are incorrect or the archc installation process failed.

If you are sure that the paths in the Makefile.conf file are correct, please tell me if there is an executable file named "acsim" in /home/lubdnabadri/archc/bin. That file is the generator of the processor simulators. 

Best regards,
Liana.


2013/12/30 Lubna Badri <lubna...@gmail.com>

--
You received this message because you are registered to the group "MPSoCBench" Google Groups.
To post to this group, send email to mpsoc...@googlegroups.com
Visit this group http://groups.google.com/group/mpsocbench?hl=en
---
You received this message because you are subscribed to the Google Groups "MPSoCBench" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpsocbench+...@googlegroups.com.
To post to this group, send email to mpsoc...@googlegroups.com.
Visit this group at http://groups.google.com/group/mpsocbench.



--
-----------------------------------------------------------
Liana Duenha
Contatos: 
Faculdade de Computação  - UFMS
(67)3345-7455
www.facom.ufms.br/~lianaduenha
liana...@facom.ufms.br
liana...@gmail.com
Laboratório de Sistemas de Computação - IC - Unicamp 

Lubna Badri

unread,
Jan 7, 2014, 11:56:23 AM1/7/14
to mpsoc...@googlegroups.com
Dear Liana,

Happy new year

Thank you for your reply.

I checked the paths in the Makefile.conf and corrected the ArchC path and have the Makefile.conf as follows:

export SYSTEMC:=/home/lubnabadri/systemc 
export TLM_PATH := /home/lubnabadri/systemc/include
export ARCHC_PATH := /home/lubnabadri/l/archc
export POWERSC_PATH := /home/lubnabadri/powersc
export ARP:=$(PWD)
export PATH:=/home/lubnabadri/l/archc/compilers/arm/bin:/home/lubnabadri/l/archc/compilers/bin:/home/lubnabadri/l/archc/bin:$(PATH)
export HOST_OS:= linux
export LD_LIBRARY_PATH:=/home/lubnabadri/systemc/lib-linux:$(LD LIBRARY PATH)


Also, I checked the existence of the file  "acsim" in /home/lubdnabadri/archc/bin and it is there.

Finally, I repeated the steps and get the following result:

lubnabadri@lubnabadri-HP-Pavilion-g6-Notebook-PC:~/MPSoCBench$ make
Making IP tlm_memory ...
In file included from tlm_memory.cpp:53:0:
tlm_memory.h:51:29: fatal error: ac_tlm_protocol.H: No such file or directory
compilation terminated.
make[1]: *** [tlm_memory.o] Error 1
Making IP tlm_lock ...
In file included from tlm_lock.cpp:13:0:
tlm_lock.h:40:29: fatal error: ac_tlm_protocol.H: No such file or directory
compilation terminated.
make[1]: *** [tlm_lock.o] Error 1
Making IS tlm_noc_lt ...
In file included from tlm_noc.cpp:14:0:
tlm_noc.h:19:29: fatal error: ac_tlm_protocol.H: No such file or directory
compilation terminated.
make[1]: *** [tlm_noc.o] Error 1
Making Processor arm ...
--- No simulator found, using acsim to generate one.
make[1]: /home/lubnabadri/archc/bin/acsim: Command not found
make[1]: *** [arm.cpp] Error 127
Making Software water-spatial ...
Making Platform platform.noc.lt
g++: error: /include: No such file or directory
make[1]: *** [main.o] Error 1
make: *** [all] Error 2
lubnabadri@lubnabadri-HP-Pavilion-g6-Notebook-PC:~/MPSoCBench$


Kindly can you advice me what to do next?

Best Regards;

Lubna

Liana Duenha

unread,
Jan 8, 2014, 8:02:10 AM1/8/14
to mpsoc...@googlegroups.com
Hello Lubna,
It seems that it's not a problem in the MPSoCBench installation process, but some linux issues. I'm send a response to your personal e-mail in order to help you to correct this problems.
Best regards,
Liana.


2014/1/7 Lubna Badri <lubna...@gmail.com>

Jymas

unread,
Apr 14, 2014, 2:04:45 PM4/14/14
to mpsoc...@googlegroups.com
Dear Liana,

I was wondering if you can help me. I tried to copied bellow all the commands, configurations and results I have, in order to make easy to find the problem.

I could follow without errors all the installation part. But when I try to run the script, I have some errors.

I installed everything as indicated in the installation guide:

/opt/systemc
/opt/archc
/opt/MPSoCBench
/opt/powersc
/l/archc/compilers

I verified that the accsim is in /opt/archc/bin.

The file /opt/MPSoCBench/Makefile.conf has the following content:

export SYSTEMC:=/opt/systemc
export TLM_PATH := /opt/systemc/include
export ARCHC_PATH := /opt/archc
export ARP:=$(PWD)
export POWER_SC_PATH := /opt/powersc
export PATH:=/l/archc/compilers/arm/bin:/l/archc/compilers/bin:/opt/archc/bin:$(PATH)
export HOST_OS:= linux
export LD_LIBRARY_PATH:=/opt/systemc/lib-linux:$(LD_LIBRARY_PATH)

When I run the command    gcc --version      I got the following:

gcc (Ubuntu/Linaro 4.7.3-2ubuntu1~12.04) 4.7.3
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Also, my Python version is   Python 2.7.3     (after running python -V)

So, I guess I have installed everything as the guide states.

When I run the command, I got the following (my username is mpsoc):

mpsoc@mpsoc-VirtualBox:/opt/MPSoCBench$ sudo ./MPSoCBench -p=mips -i=router.lt -s=sha -n=4 -b
[sudo] password for mpsoc: 
[['mips'], ['4'], ['sha'], ['router.lt']]
make[1]: *** No rule to make target `distclean'.  Stop.
make: *** [distclean] Error 2
make[2]: *** No rule to make target `distclean'.  Stop.
make[1]: *** [distclean] Error 2
Making IP tlm_memory ...
ar: creating libtlm_memory.a
Making IP tlm_lock ...
ar: creating libtlm_lock.a
Making IS tlm_router ...
ar: creating libtlm_router.a
Making Processor mips ...

--- No simulator found, using acsim to generate one.
ArchC: Parsing AC_ARCH declaration file: mips_block.ac
ArchC: Parsing AC_ISA declaration file: mips_isa.ac
make[1]: *** [mips.cpp] Segmentation fault (core dumped)
make[1]: *** Deleting file `mips.cpp'
Making Software sha ...
Making Platform platform.router.lt
/usr/bin/ld: cannot find -lmips
collect2: error: ld returned 1 exit status
make[1]: *** [platform.router.lt.x] Error 1

make: *** [all] Error 2
Creating rundir for mips.router.lt.4.sha...
---copy platform.router.lt.x to the appropriate rundir
cp: cannot stat `platform.router.lt.x': No such file or directory
make[1]: *** [copy] Error 1
make: *** [copy] Error 2


Also, it creates a directory:  /opt/MPSoCBench/rundir/mips.router.lt.4.sha  with Makefile     . This file (Makefile) has the following content:

include Makefile.con
run:
                 ./platform.router.lt.x sha.mips.x 4


I always run the commands with 'sudo'



Thank you in advance, and congratulations for the work!




Liana Duenha

unread,
Apr 15, 2014, 2:25:13 PM4/15/14
to mpsoc...@googlegroups.com
Hello,
I will try to help you to find the problem. As you can see in the feedback messages, part of the platform was compiled correctly (tlm_memory, tlm_lock and tlm_router), but some problem occured in the the MIPS processor compilation. 

In order to help you, I need to know if you are using the archc_tlm2 version available in the MPSoCBench website? 
This archc version is not a oficial version but it contains TLM 2 support. 

Best regards,
Liana.




--
You received this message because you are registered to the group "MPSoCBench" Google Groups.
To post to this group, send email to mpsoc...@googlegroups.com
Visit this group http://groups.google.com/group/mpsocbench?hl=en
---
You received this message because you are subscribed to the Google Groups "MPSoCBench" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpsocbench+...@googlegroups.com.
To post to this group, send email to mpsoc...@googlegroups.com.
Visit this group at http://groups.google.com/group/mpsocbench.

Jymas

unread,
Apr 15, 2014, 2:37:58 PM4/15/14
to mpsoc...@googlegroups.com
Hi,

I used the links at the MPSoCBench website for all the downloads.

Thanks for your quick response and help!

Best regards,

Jones.

Liana Duenha

unread,
Apr 15, 2014, 3:02:45 PM4/15/14
to mpsoc...@googlegroups.com
Ok, the ArchC could not build the MIPS processor model. 
Let us try other tests.

Can you try with other processor like powerpc, sparc or arm, instead mips? 

cd MPSoCBench
./mpsocbench -p=powerpc -i=router.lt -n=4 -s=dijkstra -b


// If it works, try to execute with

./mpsocbench -p=powerpc -i=router.lt -n=4 -s=dijkstra -r

Liana.



Weslley Nojosa

unread,
Feb 12, 2016, 6:34:22 PM2/12/16
to MPSoCBench
Hello, I'm trying to install the MPSoCBench software, but with no success. The first command, "sh setup.sh" ask for the path where ArchC was installed, I put the correct path, but still returns me an error message, saying:
* ArchC was not properly installed
*The path is wrong
*An older version of ArchC is being used

I installed the ArchC 2.2, and which version of MPSoCBench is compatible to this version of ArchC?

PS: I downloaded the MPSocBench 2.0

Best regards, 

Weslley 

Liana Duenha

unread,
Feb 15, 2016, 3:05:37 PM2/15/16
to mpsoc...@googlegroups.com
Hello Weslley,

You should use MPSoCBench 2.1 version, which is compatible with the latest version of ArchC.
So you will avoid some compatibility errors that may occur.


Download and install the ArchC 2.4: http://www.archc.org/downloads.html

Download and install the MPSoCBench 2.1:  http://www.archc.org/benchs/mpsocbench/downloads.html

And go to the "How To Install" page to help you:  http://www.archc.org/benchs/mpsocbench/howtoinstall.html

Please let me know if you have problems to download or install these tools.
Best regards, 
Liana Duenha.

--
You received this message because you are registered to the group "MPSoCBench" Google Groups.
To post to this group, send email to mpsoc...@googlegroups.com
Visit this group http://groups.google.com/group/mpsocbench?hl=en
---
You received this message because you are subscribed to the Google Groups "MPSoCBench" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpsocbench+...@googlegroups.com.
To post to this group, send email to mpsoc...@googlegroups.com.



--
-------------------------------------------------------------------------
Liana Duenha

Faculdade de Computação - FACOM/UFMS
Website Institucional: www.facom.ufms.br


Faculty of Computing - FACOM/UFMS
Faculty Website: www.facom.ufms.br

Reply all
Reply to author
Forward
0 new messages