Compatibility with Aldec Active-HDL on Windows
See original GitHub issueDear cocotb community,
I’m new to cocotb and trying to get the endian_swapper exampl running. My setup is:
- Win10
- Aldec Active-HDL9.3
- Miniconda with Python 3.7
What I did so far:
-
- Installed msys: conda install -c msys2 m2-base m2-make libpython m2w64-toolchain
-
- Install the development version of cocotb :
-
- git clone https://github.com/cocotb/cocotb
-
- pip install -e ./cocotb
- cd cocotb/examples/endian_swapper/tests
- make SIM=aldec TOPLEVEL_LANG=vhdl
This leads to
runsim.tcl(5) error: parse error
@if [string length<--
/c/temp/cocotb/cocotb/share/makefiles/simulators/Makefile.aldec:144: recipe for target 'results.xml' failed
make[1]: *** [results.xml] Error 1
make[1]: Leaving directory '/c/temp/cocotb/examples/endian_swapper/tests'
c:\temp\cocotb\cocotb\share\makefiles/Makefile.sim:150: recipe for target 'sim' failed
make: *** [sim] Error 2
So first of all it seems to that my vsimsa (build 9.3.2744.sp1.09.4995) cant handle the statements generated by Makefile.aldec
@if [string length [array get env LICENSE_QUEUE]] { set LICENSE_QUEUE $::env(LICENSE_QUEUE) }
in runsim.tcl
So I removed in Makefile.aldec for testing:
@echo "@if [string length [array get env LICENSE_QUEUE]] {" >> $@
@echo " set LICENSE_QUEUE $$::env(LICENSE_QUEUE)" >> $@
@echo "}" >> $@
After running again with make Im getting:
`runsim.tcl(8) error: parse error
asim +access +w -interceptcoutput -O2 -dbg -loadvhpi C:/temp/cocotb/cocotb/libs/libcocotbvhpi_aldec:vhpi_startup_routines_bootstrap<--
/c/temp/cocotb/cocotb/share/makefiles/simulators/Makefile.aldec:144: recipe for target 'results.xml' failed
make[2]: *** [results.xml] Error 1`
I could trace this problem back to vsimsa which seems to need “” around -loadvhpi "C:/temp/cocotb/cocotb/libs/libcocotbvhpi_aldec:vhpi_startup_routines_bootstrap"
After adding the quotation marks to Makefile.aldec:
else ifeq ($(TOPLEVEL_LANG),vhdl)
GPI_ARGS = -loadvhpi \"$(LIB_DIR)/libcocotbvhpi_aldec:vhpi_startup_routines_bootstrap\"
I again started with make. this now leads to execution of the generated script with vsimsa but Im getting VHPI: Loading library 'C:/temp/cocotb/cocotb/libs/libcocotbvhpi_aldec.dll' VHPI: Cannot load 'C:/temp/cocotb/cocotb/libs/libcocotbvhpi_aldec.dll' library. Library does not exist or is corrupted.
The simulation seems to start running but never stops.
This is how far I got with my Issue. I hope you can help me get cocotb running on my machine with this simulator and hopefully also improve the project also a bit.
Issue Analytics
- State:
- Created 3 years ago
- Comments:36 (36 by maintainers)
Top GitHub Comments
This is exactly what is here: https://github.com/cocotb/cocotb/wiki/Tier-2-Setup-Instructions#conda-based-installation-all-os
Oh, looks like my version is out of date, apologies.
That last line should be
(__version__, os.path.dirname(__file__), os.getcwd()))
.