Keyerror ARIANE_ROOT

104 views
Skip to first unread message

pandyk

unread,
Oct 3, 2019, 8:19:30 PM10/3/19
to OpenPiton Discussion
Hi 

I got VM image for openpiton. I mounted into Virtual box and entered with openpiton user id (already existing and guessed the password). I am trying to build using verilator as below after source piton/piton_setting.sh, arian_setup.sh arian_build_tool.sh 

The following the command that I used for building the design

sims -sys=multicore -x_tiles=1 -y_tiles=1 -vlt_build -ariane

I got error saying Keyerror ARIANE_ROOT

Also I could not open any xterm or any other operation with VM image such as share files between windows and Linux, connecting to internet and etc

Thaks
Pandy K




pjj

unread,
Oct 4, 2019, 5:22:54 PM10/4/19
to OpenPiton Discussion
Hi Pandy,

Firstly, I have uploaded a newer version of the VM image which should be a little more stable.

Are you using VirtualBox to run the VM? If so, make sure you have the guest extensions installed. I am not sure why you are having trouble connecting to the internet, but it is likely an issue with your configuration of VirtualBox.

All the information you need is in the tutorial slides on our website. Specifically, if you start the VM and follow the instructions on slide 10 of the Simulating OpenPiton+Ariane RTL section of the tutorial, you should be able to successfully build the manycore simulation model and run simulations with it. 

If you are still running into problems when trying to execute the commands listed on slides 10 and 14 of the tutorial, please don't hesitate to reach out again. It will be helpful in the future if you provide the exact sequence of commands you are running so I can reproduce the error.

Best,
Paul

Paul J. Jackson

unread,
Oct 7, 2019, 11:40:23 AM10/7/19
to Pandy Kalimuthu, Abridged recipients

Hi Pandy,

 

The method to dump a .vcd file depends on the simulator you are using. VCS, Verilator, and ModelSim all have different commands to dump VCD files.

 

If you are using Verilator to run your simulations,  when calling vlt_build, add the following flags in this order: -vlt_build_args=--trace -vlt_build_args=-CFLAGS -vlt_build_args=-DVERILATOR_VCD

 

Also, make sure you are using the openpiton-dev branch of the repo. The openpiton-dev branch fixes an issue with VCD dumps ending early. You can do this by doing:

 

$cd $PITON_ROOT

$git checkout openpiton-dev

$git pull

$git submodule update --init --recursive

 

Running a simulation after building with these commands should create a .vcd file called my_top.vcd and it’ll be either in the build directory or in build/manycore/rel-0.1/

 

Best,

Paul

 

From: Pandy Kalimuthu <pan...@gmail.com>
Sent: Saturday, October 5, 2019 1:25 PM
To: Paul J. Jackson <p...@princeton.edu>
Subject: Re: Keyerror ARIANE_ROOT

 

Paul 

 

I figured out Cento installation of any package 

Now, still struggling to way to share files between virtual box to windows. Hope will figure out.

 

I need to answer importantly for how to create vcd files in dumping waveform in ariane platform ?

 

Regards

Pandy K

 

On Sat, Oct 5, 2019 at 10:28 AM Pandy Kalimuthu < > wrote:

Paul

 

I took the latest openpiton-centos7-vm.ova and open vdmk file in the virtual box after creating Linux and Ubuntu 

I am able to compile and simulate ariane hello world.c

Thanks you so much for resolving my issues.

 

I use vlt_build and vlt_run.

I assume that it comes with Icarus too.

Which one you suggest me to use?

 

I have few questions

1. How to move files from back and forth to this virtual machine to windows machine

2.I see it has gtkwave to view waveform. Do you have command to dump vcd file from the flow or Should I add in the monitor ?

3.I see Centos 7 installed in virtual machine via vmdk, it is bare minimum. It does not have any browser capability and other important stuff such as xterm and other.

    Do you know how to install them or should I look for internet and if so, will it work with this vmdk ?

4. I tried to download *.vdi version also which is stored in the windows as HTML file how to download them as vdi files ?

 

Thanks Once again Paul your support

 

Regards

Pandy K

 

--
You received this message because you are subscribed to the Google Groups "OpenPiton Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/68a3cee5-f3ff-43eb-bf93-a58bc585f709%40googlegroups.com.

pandyk

unread,
Oct 14, 2019, 10:04:06 PM10/14/19
to OpenPiton Discussion

Paul

Now, I am able to compile with VCS.

I am using -vcd -vcdfile=`pwd`/my.vcd 

I was expecting vcd at the present directory but I could not find one.

Also, I would like to know is there any chance that I could dump out as vpd file and pass dump by hierarchy 

Thanks
Pandy K

To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.

Jonathan Balkind

unread,
Oct 14, 2019, 10:09:06 PM10/14/19
to open...@googlegroups.com
Hi Pandy,

Make sure you build with the -debug_all flag. When doing that does it still lack the VCD?

As for vpd, you may just want to build with -debug_all and run with -gui to open the DVE GUI to view the waveforms. It'll let you save a vpd of your choice.

Thanks,
Jon

To unsubscribe from this group and stop receiving emails from it, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/6feb5dae-c228-438f-abdc-71704051d1a0%40googlegroups.com.

pandyk

unread,
Oct 14, 2019, 10:12:05 PM10/14/19
to OpenPiton Discussion
Yes, I used -debug_all flag and able to run -gui. 
I prefer to run in batch mode but I need some sort of waveform dump either vcd or vpd.
When I use -debug_all, I do not see vcd file generated with command that I use i.e -vcd -vcdfile=`pwd`/my.vcd

Regards
Pandy K

Jonathan Balkind

unread,
Oct 21, 2019, 3:24:32 PM10/21/19
to OpenPiton Discussion

Hi Pandy,

 

You can pass arguments directly to VCS using -vcs_build_args= for build-time and -sim_run_args= for runtime. Perhaps you can look up the info for generating VPD files in the VCS manual and grab something that way. The arguments for VCDs are being passed through automatically too if you look in piton/tools/src/sims/sims,2.0

 

Thanks,

Jon

To unsubscribe from this group and stop receiving emails from it, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/f83cdae8-9b37-43fa-8844-5ac7d3009f41%40googlegroups.com.

Message has been deleted

Raghavendra Srinivas

unread,
Mar 14, 2020, 7:48:18 PM3/14/20
to OpenPiton Discussion
Hi Jon/Pandy,

Were you able to generate vcd/fsdb/vpd with vcs_run?. 
Can you please let me know the arguments.
I did build with -debug_all and I don't want -gui during simulation run. 
In another try, I tried below as per synopsys tutorial (https://www.youtube.com/watch?v=5qvB4nUCV8U)

BUILD:
sims -sys=manycore -x_tiles=1 -y_tiles=1 -vcs_build -ariane -vcs_build_args=-debug_access+all
RUN:
sims -sys=manycore -vcs_run -x_tiles=1 -y_tiles=1 hello_world.c -ariane -rtl_timeout 1000000 -sim_run_args=+fsdb+all=on

I still not able to see fsdb. Though I can update file with system task $fsdbDumpfile. I like to have command line argument.
Can you please help?

Thank you!,
Raghav

Jonathan Balkind

unread,
Mar 14, 2020, 7:50:20 PM3/14/20
to OpenPiton Discussion

Hi Raghav,

 

Try adding -vcd -vcdfile=/path/to/myfile.vcd to your -vcs_run command.

 

Not 100% sure if those flags are working though (they're VCS specific at least). You could instead try manually adding a dumpvars(cmp_top); type line (don't remember the syntax too well for that) in piton/verif/env/manycore/manycore_top.v.pyv

 

Thanks,

Jon

To unsubscribe from this group and stop receiving emails from it, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/38562e38-9865-41e9-8e20-d8eab7916aca%40googlegroups.com.

Raghavendra Srinivas

unread,
Mar 15, 2020, 12:11:29 AM3/15/20
to OpenPiton Discussion
HI Jon,
Yes, System task based dump enable used to work. I was just looking for command line option.
But for now, moving ahead with $fsdnDUmp* or $dump*
Thank you!
Reply all
Reply to author
Forward
0 new messages