cocotb / cocotb

cocotb, a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python
https://www.cocotb.org
BSD 3-Clause "New" or "Revised" License
1.74k stars 502 forks source link

incorrect GPI_EXTRA on windows #3041

Closed xwzheng1020 closed 2 years ago

xwzheng1020 commented 2 years ago

cocotb version: latest os: win10 64bit simulator: modelsim 2019.2 python: 3.9.12

When I try to use multi language (Verilog and VHDL) to run simulation with modelsim, it will fail when loading C:/ProgramData/Anaconda3/lib/site-packages/cocotb/libs/cocotbvpi_modelsim.dll .

It seems to get a weird GPI_EXTRA value. I found in the makefile GPI_EXTRA is equal to C:/ProgramData/Anaconda3/lib/site-packages/cocotb/libs/cocotbfli_modelsim.dll:cocotbfli_entry_point. But when getenv( https://github.com/cocotb/cocotb/blob/bdcffda4cbec9bd9034cc787c60a9fadfb6bb904/cocotb/share/lib/gpi/GpiCommon.cpp#L183), it becomes to C;C:\ProgramData\Anaconda3\Library\ProgramData\Anaconda3\lib\site-packages\cocotb\libs\cocotbfli_modelsim.dll;cocotbfli_entry_point

This will cause load failure.

marlonjames commented 2 years ago

See #3013

ktbarrett commented 2 years ago

@marlonjames I guess this means it isn't just an issue with Riviera.