building openpiton

227 views
Skip to first unread message

Anudeep

unread,
Apr 13, 2023, 10:30:54 PM4/13/23
to OpenPiton Discussion
Hello,

I have added custom verilog code to the existing openpiton code.
when I built it, it passes and was able to run user code but when I enable the verilator waveform dump, the build fails.

sims -sys=manycore -x_tiles=2 -y_tiles=1 -vlt_build -ariane - PASS


sims -sys=manycore -x_tiles=1 -y_tiles=1 -vlt_build -vlt_build_args=-trace -vlt_build_args=-CFLAGS -vlt_build_args=-DVERILATOR_VCD -ariane - FAIL


error message : %Error: Command Failed /home/anudeep/hackdac_21/openpiton/piton/design/chip/tile/ariane//tmp/verilator-4.014//bin/verilator_bin -cc -exe
*/openpiton/piton/tools/verilator/my_top.cpp 

*/openpiton/piton/tools/pli/iop/b_ary.c 

*/openpiton/piton/tools/pli/iop/bw_lib.c 

*/openpiton/piton/tools/pli/iop/iob_main.cc 

*/openpiton/piton/tools/pli/iop/iob.cc 

*/openpiton/piton/tools/pli/iop/cpx.cc 

*/openpiton/piton/tools/pli/iop/pcx.cc --top-module cmp_top -Wno-fatal -Wno-BLKANDNBLK -DPITON_DPI --unroll-count 256 -CFLAGS -DVERILATOR -CFLAGS -DPITON_DPI -CFLAGS -lstdc\+\+ -CFLAGS -I/*

/openpiton/piton/tools/pli/iop -CFLAGS -I/*

/openpiton/piton/tools/verilator -f flist -DSYNC_MUX -trace -CFLAGS -DVERILATOR_VCD

sims: Caught a SIGDIE. failed building model at */openpiton/piton/tools/src/sims/sims,2.0 line 1571.

can you please guide me in debugging this issue?

Thanks,
Anudeep.

Jonathan Balkind

unread,
Apr 14, 2023, 12:02:53 PM4/14/23
to OpenPiton Discussion
Hi Anudeep,

Could you give a slightly newer verilator version a try? I've also seen this occasionally and I'm not sure if it's a verilator or compiler issue or whether it's an OpenPiton issue. I've produced waveforms plenty of times so I don't think it's as likely to be an OP issue.

Thanks,
Jon

--
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/6e221873-f075-4f16-b66f-65487b91c10en%40googlegroups.com.

Anudeep

unread,
Apr 17, 2023, 2:29:04 AM4/17/23
to OpenPiton Discussion
Hi Jon,

I see an error after updating verilator.
unable to build now.

Please find the sims.log attached.

Thanks,
Anudeep.

sims.log

Jonathan Balkind

unread,
Apr 17, 2023, 2:31:08 AM4/17/23
to OpenPiton Discussion
This version of the code is very old. Please use something newer.

Thanks,
Jon

Anudeep

unread,
Apr 21, 2023, 8:25:56 PM4/21/23
to OpenPiton Discussion
Please help.
I see new errors after updating the code.

Thanks,
Anudeep.

sims (1).log

Jonathan Balkind

unread,
Apr 24, 2023, 1:00:37 PM4/24/23
to OpenPiton Discussion
Your verilator version doesn't match what OpenPiton is expecting. You can find the line with TIMESCALEMOD in piton/tools/src/sims/sims,2.0 and comment it out or you can change your verilator version.

Thanks,
Jon

Anudeep

unread,
Apr 24, 2023, 2:18:20 PM4/24/23
to Jonathan Balkind, OpenPiton Discussion
sorry Jon,

I don't see any line with TIMESCALEMOD in /openpiton/piton/tools/src/sims/sims,2.0 file

Thanks,
Anudeep.

You received this message because you are subscribed to a topic in the Google Groups "OpenPiton Discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpiton/FkGrNj7QUbI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/CAJm4tWaS0JLCcjH5uh7sei1n1kC6qGB1ypNmrFSxjmD%3Deq2bAQ%40mail.gmail.com.

Jonathan Balkind

unread,
Apr 24, 2023, 3:59:03 PM4/24/23
to OpenPiton Discussion
Message has been deleted

Anudeep

unread,
Apr 24, 2023, 9:40:42 PM4/24/23
to OpenPiton Discussion
I see the following error(attached the image) after running ./piton/ariane_build_tools.sh
Please help.

Thanks,
Anudeep.

error.png

Anudeep

unread,
Apr 24, 2023, 9:43:08 PM4/24/23
to OpenPiton Discussion
I tried deleting the "/tmp" directory which didn't work.

Thanks,
Anudeep.

Jonathan Balkind

unread,
Apr 24, 2023, 9:53:21 PM4/24/23
to OpenPiton Discussion

Anudeep

unread,
Apr 24, 2023, 11:12:05 PM4/24/23
to OpenPiton Discussion

/piton/design/chip/tile/ariane/tmp/riscv-tests/env/v/vm.c

fixed it by adding "extern" 

extern volatile uint64_t tohost; extern volatile uint64_t fromhost;

Now I see new errors.
Please help.

Thanks,
Anudeep.
sims (2).log
image.png

Jonathan Balkind

unread,
Apr 24, 2023, 11:13:30 PM4/24/23
to OpenPiton Discussion
You already have verilator installed so you don't need to build it again

Reply all
Reply to author
Forward
0 new messages