need 32bit version of modelsim libmodelsimpli.so

35 views
Skip to first unread message

張哲文

unread,
Sep 30, 2024, 11:08:43 PM9/30/24
to OpenPiton Discussion
Hi
i am doing "sims -sys=manycore -x_tiles=1 -y_tiles=1 -msm_run -ariane hello_world.c -rtl_timeout 10000000"
Error (vsim-125) The shared library /piton/tools/linux/x86_64/lib/libmodelsimpli.so being loadded was built on a 64-bit machine, A 64-bit shared library cannot be loaded in a 32-bit simulation. 
wrong ELF class:ELFCLASS64

I use ModelSimSetup-20.1.1.720-linx.run

Could someone help? thank you

Owen

Jonathan Balkind

unread,
Sep 30, 2024, 11:10:58 PM9/30/24
to OpenPiton Discussion
Hi Owen,

I think you're perhaps running the free, 32 bit version of modelsim? It isn't supported by default and requires some changes. There's a (recently closed) pull request on the openpiton repo which should provide a patch that you could apply. Note that I seem to remember it was said to run very slowly. You may have a better time trying verilator or another simulator instead depending on your needs.

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/839bd96c-061f-4752-a104-6c0d7f31228en%40googlegroups.com.

張哲文

unread,
Oct 1, 2024, 10:13:23 AM10/1/24
to OpenPiton Discussion
Hi Jon,

thank you. from sims i only saw ncsim, vcs, iverilog, riviera supported (no verilator?), I have tried iverilog  but failed with  "sims -sys=manycore -x_tiles=1 -y_tiles=1 -icv_build -ariane hello_world.c"
error message: 
openpiton/piton/design/chipset/rv64_platform/bootrom/baremetal/bootrom.sv:255:error: invalid module item
openpiton/piton/design/chipset/rv64_platform/bootrom/baremetal/bootrom_linux.sv:23: syntax error
openpiton/piton/design/chipset/rv64_platform/bootrom/baremetal/bootrom_linux.sv:23: syntax error or localparam list


i don't have commercial simulator in my environment 

Owen

jbal...@ucsb.edu 在 2024年10月1日 星期二上午11:10:58 [UTC+8] 的信中寫道:

Jonathan Balkind

unread,
Oct 1, 2024, 10:16:30 AM10/1/24
to OpenPiton Discussion
Verilator is supported, as noted in the readme and the sims help output: https://github.com/PrincetonUniversity/openpiton/blob/41a14a05010023d1be013cc16eafb0c4b86af595/piton/tools/src/sims/sims%2C2.0#L3348

Icarus does not supported sufficient systemverilog to build the design.

張哲文

unread,
Oct 2, 2024, 11:20:11 AM10/2/24
to OpenPiton Discussion
Thanks.
I just installed Verilator (using ariane/ci/install-verilator.sh, version 4.014) and run it "sims -sys=manycore -x_tiles=1 -y_tiles=1 -vlt_build"
and got error:
openpiton/piton/tools/verilator/my_top.cpp:41:17 error : conflicting declaration of C function "void init_jbus_model_call(char*, int)"

from Vcom_top__Dpi.h:21:17: extern void init_jbus_model_call (const char* str, int oram)

do you have any suggestions? thank you





jbal...@ucsb.edu 在 2024年10月1日 星期二晚上10:16:30 [UTC+8] 的信中寫道:

Jonathan Balkind

unread,
Oct 4, 2024, 1:08:04 AM10/4/24
to OpenPiton Discussion
You can go into the my_top and iob_main files and align the declaration with the use. It's just const char * vs char * which some compilers are unhappy about now. You may also need to remove build/manycore/rel-0.1/obj_dir/ before you rebuild.

Thanks,
Jon

Reply all
Reply to author
Forward
0 new messages