-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows 10 64-bit + Cocotb instruction #498
Comments
And it works with Intel Python - here is recipe for Anaconda Visual Studio supports both Python(PTVS) and GCC (plugins). I also use V3S for the Verilog and VHDL projects in Visual Studio - so it's possible to have one IDE for all. |
Thank you, interesting info! |
I trying to reproduce your success. Makefile.pylib.Msys fix was helpful. I'm using Windows 7 64-bit and Modelsim Starter Edition which is 32-bit. Due to 32 bit of modelsim I have to use msys2 32-bit + Anaconda 3 32-bit. It builds libcocotbutils.dll successfully but then (while processing the next files) I see the following error:
I'm using GCC 5.3 from msys2. |
I'm not sure about 64bit vs 32bit conflicts details. |
It's funny but now I got all modules compiled successfuly after "pacman -R gcc" and installing of TDM32 GCC! Now I'm getting error "Load of libvpi.dll failed". When using Linux 64-bit I have to use Anaconda 32-bit and all other 32-bit software to get linked with Modelsim (which is 32-bit). My assumption is that Modelsim for Windows also require such trick. However after this "Load of libvpi.dll failed" it seems that Modelsim for Windows could use 64-bit VPI iterface...
Modelsim internal console output:
|
Yes, I think that TDM-gcc has better linking with windows python. And what is the output with Icarus (common simulator for the Cocotb checks)? |
Same result without ARCH.
Both executables is 32-bit. Why it can not find libvpi.dll? OK, I just put libvpi.dll into dir where vsim.exe and now it can see library, however unable to load:
Then I copy all DLLs from c:\work\cocotb-master\build\libs\i686\ to vsim.exe path - same result.
Also, when run Dependency Walker I see that it needs more DLLs: DBGCORE GPSVC.DLL IESHIMS.DLL Is that OK if it says "Failed to load PLI object file" but we are using VPI (libvpi)? |
Hm, I will try to check your situation in VM on Saturday. |
Yes please, try Modelsim Starter Edition (which is free to download) in Windows 64-bit. |
Sorry, still without time to check. Will try later. |
May be it will be easier to fix this error (instead of Modelsim 32-bit), here is my result with Modelsim 64-bit (TDM-GCC-64, MSys2 64-bit, Anaconda 64-bit):
However, Modelsim 32-bit Started Edition still highly interesting, because it's free for anyone. |
Hm... strange. TDM-GCC-64, MSys2 64-bit, Anaconda 64-bit works well for me with QuestaSim. |
Try to check the new issue - #502 |
My command is:
This "make results.xml" is just an output during command execution. Same command for 32-bit Modelsim leads to "almost working" condition but unmet dependencies makes failure. |
Hi @orionbytes Sorry to chime in at this late stage, but your fix in the gist will break for python 2.7 because print is not a function. Have a look at the code I posted in the issue you linked (#502) to see one way of dealing with this (I think it's the most common way) so that it works with both versions of python. You should submit a pull request if you haven't already. |
Hi, @jeremyherbert |
2 OrionBytes: I found similar topic here: #428 will try these solutions. UPDATE: gendef python35.dll and dlltool is not help to solve problem because it's all about *.a files:
but here is the problem with *.lib file. Why this file is wrong and how to regenerate .lib file - no idea. |
Maybe some way like: Try this... If your libpython32.a file is 0 bytes, something went wrong. Double-check that you downloaded the correct version of gendef for your version of mingw/msys. If you're running a 64-bit build, you'll likely have to download the gendef binaries and compile yourself, but that's simple enough. from http://stackoverflow.com/questions/6731100/link-to-python-with-mingw |
I found solution of this problem "Python35.lib wrong format":
Currently I'm using 64-bit Modelsim and Anaconda 3.5. |
I'm happy!!! I found solution! I just copied ALL .dll-s from Anaconda root directory, especially api-ms-win-.dll files! Also, I copied files from cocotb/build directory. Hope that adding both dirs to PATH will help to overcome actual copying. |
I created cross-platform script on Python 3 that launch my testing environment on Linux and Windows. If anybody is interested in such script I can show source code. |
@orionbytes can you help me a bit? |
Which exact problems do you have? May be I can help you too? |
All our development is on Windows and VisualStudio, so it will be nice to have everything on the same IDE. I tried with msys2, but got errors when MAKE. |
|
|
It looks like you're using 32 bit modelsim with 64 bit tools. I recommend installing 32 bit msys2 and 32 bit python (eg. anaconda) in a sensible location (Eg. C:\tools) and prepending them to your PATH variable.
|
Easiest way to use conda httpss://github.com/cocotb/cocotb/wiki/Tier-2-Setup-Instructions#conda-based-installation-all-os |
Hi, |
What did not work? |
Ming64 is not able to locate modelsim.
…On Sun, Nov 20, 2022, 3:37 PM Tomasz Hemperek ***@***.***> wrote:
Installed Modelsim(Intel version) in windows but it did not work.
What did not work?
—
Reply to this email directly, view it on GitHub
<#498 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3Y63LU6VKFZQ6ASLUR6ZDDWJHZ7XANCNFSM4CWWPFFQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Need to add path to modalism ( |
Yes I am getting this error itself
…On Sun, Nov 20, 2022, 6:18 PM Tomasz Hemperek ***@***.***> wrote:
Ming64 is not able to locate modelsim.
Need to add path to modalism (vsim) to PATH environment variable?
—
Reply to this email directly, view it on GitHub
<#498 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3Y63LTZOP476BVGKV7MRQTWJIMYNANCNFSM4CWWPFFQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It works well with
And small fix in Makefile.pylib.Msys (Python3 print syntax)
https://gist.github.com/OrionBytes/fa4b46f956c5dc4637fd45f2e8c768a4
I'm not sure is it optimal solution or not - but it seems working with QuestaSim
The text was updated successfully, but these errors were encountered: