Thread: [myhdl-list] modelsim co-simulation
Brought to you by:
jandecaluwe
From: Euripedes R. F. <arq...@gm...> - 2014-01-06 18:37:03
|
Hi, I'm trying to improve the test approach for a module under development and after some consideration I follow the try myhdl. I had the instalation for the 0.8 version done and I'm trying to cosimulate unsig modelsim. After instalation I run the test suite for the core and that pass, now I'm trying to test the cosimulation with modelsim, the compilation was ok but the tests do not pass. First time I run I have an error with the absence of the work library, I manually created it using vlib amd now I'm getting the following error: myhdl_vpi.so: cannot open shared object file: Obviously it's a path issue but I don't know how to correct it and didn't found the info in a web search. My next task will be try to simulate a simple VHDL module wrapped in verilog. Anyone know how to fix the problem? After the start of the simulation I'm planning to spend some time helping to improve myhdl in any ways I can, since I'm advocating python as a high level simulation language for some time here. Regards -- Euripedes R. Filho |
From: Marcel H. <1he...@in...> - 2014-01-06 18:43:19
Attachments:
signature.asc
|
On 06.01.2014 19:36, Euripedes Rocha Filho wrote: > myhdl_vpi.so: cannot open shared object file: try this one: http://stackoverflow.com/questions/15729137/setting-ld-library-path-environment-variable-for-loading-a-shared-library-at-run Greetings |
From: Marcel H. <1he...@in...> - 2014-01-06 18:54:16
Attachments:
signature.asc
|
On 06.01.2014 19:43, Marcel Hellwig wrote: > myhdl_vpi.so: cannot open shared object file: maybe I have to correct myself :) does the shared object file has the x attribute? (chmod + x myhdl_vpi.so) Is it for the correct tar platform (x86_64 vs i686)? What does ``file'' say to myhdl_vpi.so? Is it a valid shared object? Greetings |
From: Euripedes R. F. <roc...@gm...> - 2014-01-06 19:01:47
|
The complete error message for the first test testSingleBitChange (test_bin2gray.TestGrayCodeProperties) Check that only one bit changes in successive codewords ... Reading /opt/mentor/modelsim_dlx/tcl/vsim/pref.tcl # 10.1b # vsim -do cosim.do -c -pli myhdl_vpi.so -quiet dut_bin2gray # ** Error: (vsim-3197) Load of "myhdl_vpi.so" failed: myhdl_vpi.so: cannot open shared object file: No such file or directory. # ** Error: (vsim-PLI-3002) Failed to load PLI object file "myhdl_vpi.so". # Region: / # // ModelSim DE 10.1b Apr 26 2012 Linux 3.2.0-23-generic # // # // Copyright 1991-2012 Mentor Graphics Corporation # // All Rights Reserved. # // # // THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION # // WHICH IS THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS # // LICENSORS AND IS SUBJECT TO LICENSE TERMS. # // # Error loading design Error loading design I ad the x64 option in the make file uncomented. It's x86_64 Ubuntu system. Euripedes 2014/1/6 Marcel Hellwig <1he...@in...> > On 06.01.2014 19:43, Marcel Hellwig wrote: > > myhdl_vpi.so: cannot open shared object file: > maybe I have to correct myself :) does the shared object file has the x > attribute? (chmod + x myhdl_vpi.so) > > Is it for the correct tar platform (x86_64 vs i686)? > What does ``file'' say to myhdl_vpi.so? Is it a valid shared object? > > Greetings > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > > |
From: Marcel H. <1he...@in...> - 2014-01-06 19:08:21
Attachments:
signature.asc
|
On 06.01.2014 20:01, Euripedes Rocha Filho wrote: > # ** Error: (vsim-3197) Load of "myhdl_vpi.so" failed: myhdl_vpi.so: > cannot open shared object file: No such file or directory. this is an import error ;) have you tried my first answer, namely adding the path of myhdl_vpi.so to LD_LIBRARY_PATH? |
From: Euripedes R. F. <arq...@gm...> - 2014-01-06 19:13:13
|
Yes The first answer was correct, Thank you! I also had to regenerate the .so for 32 bit. Now I'm getting invalid command name "cosim.do" Will try to solve this now. Thank you. 2014/1/6 Marcel Hellwig <1he...@in...> > On 06.01.2014 20:01, Euripedes Rocha Filho wrote: > > # ** Error: (vsim-3197) Load of "myhdl_vpi.so" failed: myhdl_vpi.so: > > cannot open shared object file: No such file or directory. > this is an import error ;) have you tried my first answer, namely adding > the path of myhdl_vpi.so to LD_LIBRARY_PATH? > > > > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > > -- Euripedes R. Filho |