Comments (9)
vcs command line:
`
/tools_vendor/synopsys/vcs//U-2023.03-SP1-1/linux64/bin/vcs1 -Mcc=gcc -Mcplusplus=g++ \ │
-Masflags= -Mcfl= -pipe -fPIC -O -I/tools_vendor/synopsys/vcs//U-2023.03-SP1-1/include
-Mxllcflags= -Mxcflags= -pipe -fPIC -I/tools_vendor/synopsys/vcs//U-2023.03-SP1-1/include
-Mldflags= -Lvendor/yaml-cpp/build -rdynamic
-Mout=/vcs-core/out/simv
-Mamsrun="" -Mvcsaceobjs="" -Mobjects=" /tools_vendor/synopsys/vcs//U-2023.03-SP1-1/linux64/lib/libvirsim.so
/tools_vendor/synopsys/vcs//U-2023.03-SP1-1/linux64/lib/liberrorinf.so /tools_vendor/synopsys/vcs//U-2023.03-SP1-1/linux64/lib/libsnpsmalloc.so
/tools_vendor/synopsys/vcs//U-2023.03-SP1-1/linux64/lib/libvfs.so /proj_tensix/user_dev/emunoz/newrepo6/cmake-build-t6-trin-n1-vcs-cctb/src/t6ifc/vcs-core/tvm_tb/libvcs-core-tvm-tb.so
-lboost_system -lyaml-cpp -lsqlite3 -lz -lglog -lstdc++fs " -Mexternalobj= -Msaverestoreobj=/tools_vendor/synopsys/vcs//U-2023.03-SP1-1/linux64/lib/vcs_save_restore_new.o
-Mcrt0= -Mcrtn="" -Mcsrc="" -Mdir=/vcs-core/out/csrc
-Msyslibs=/tools_vendor/synopsys/verdi//U-2023.03-SP1-1/share/PLI/VCS/LINUX64/pli.a
-ldl -lm -l vcs_compile.log -V -kdb -Xufe=2steps -lca +error+20 +vcs+lic+wait +define+ECC_ENABLE
+define+ECC_ENABLE +define+MAILBOX_TARGET=6 -xprop=tmerge -full64 -timescale=1ns/1ps
-error=PCWM-L +warn=noTFIPC +warn=noLCA_FEATURES_ENABLED -assert disable_cover -assert
svaext -o /vcs-core/out/simv
-P /vcs-core/cocotb_pli.tab -load
/conda/conda-envs/tek/lib/python3.10/site-packages/cocotb/libs/libcocotbvpi_vcs.so
+define+T_CCTB=1 +define+T_CCTB_1 -debug_acc+dmptf +vpi +vcsd1 +itf+/tools_vendor/synopsys/vcs//U-2023.03-SP1-1/linux64/lib/vcsdp_lite.tab
-debug_region+cell+encrypt -debug_access +lint=all +warn=all -error=IWU -picarchive
-P /tools_vendor/synopsys/verdi//U-2023.03-SP1-1/share/PLI/VCS/LINUX64/verdi.tab
-fsdb -sverilog +vpi -gen_obj -f vcs.f
`
from cocotb.
And this is running the quickstart example in the documentation:
`rm -f results.xml
make -f Makefile results.xml
make[1]: Entering directory '/cctbtest'
mkdir -p sim_build
echo "acc+=rw,wn:*" > sim_build/pli.tab
cd sim_build && \
TOPLEVEL=my_design
/tools_vendor/synopsys/vcs/U-2023.03-SP1-1/bin/vcs -top my_design +acc+1 +vpi -P pli.tab +define+COCOTB_SIM=1 -sverilog
-timescale=1ns/1ps \
-full64 -debug -load /conda/conda-envs/tek/lib/python3.10/site-packages/cocotb/libs/libcocotbvpi_vcs.so /cctbtest/my_design.sv
Warning-[DEBUG_DEP] Option will be deprecated
The option '-debug' will be deprecated in a future release. Please use
'-debug_acc+pp+f+dmptf -debug_region+cell+encrypt' instead.
Chronologic VCS (TM) Version U-2023.03-SP1-1_Full64 -- Thu Mar 28 12:48:23 2024 Copyright (c) 1991 - 2023 Synopsys, Inc.
This software and the associated documentation are proprietary to Synopsys,
Inc. This software may only be used in accordance with the terms and conditions
of a written license agreement with Synopsys, Inc. All other use, reproduction,
or distribution of this software is strictly prohibited. Licensed Products
communicate with Synopsys servers for the purpose of providing software
updates, detecting software piracy and verifying that customers are using
Licensed Products in conformity with the applicable License Key for such
Licensed Products. Synopsys will use information gathered in connection with
this process to deliver software updates and pursue software pirates and
infringers.
Inclusivity & Diversity - Visit SolvNetPlus to read the "Synopsys Statement on
Inclusivity and Diversity" (Refer to article 000036315 at
https://solvnetplus.synopsys.com)
Warning-[DEPRECATED_OPTION] Deprecated option used
The specified option '+acc+1' is deprecated.
Please use '-debug_access+r+w+nomemcbk -debug_region+cell' instead.
-.--ns INFO gpi ..mbed/gpi_embed.cpp:76 in set_program_name_in_venv Did not detect Python virtual environment. Using system-wide Python interpreter
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
`
from cocotb.
In your Python environment, what does running cocotb-config --libpython
give you?
from cocotb.
/conda/conda-envs/tek/lib/libpython3.10.so.1.0
from cocotb.
Are you setting LIBPYTHON_LOC
environment variable to that path?
from cocotb.
yep:
echo $LIBPYTHON_LOC /conda/conda-envs/tek/lib/libpython3.10.so.1.0
from cocotb.
Is cocotb installed from pypi or did you build it locally?
from cocotb.
From using conda. in the conda env file we have this
`
name: tek
channels:
- conda-forge
dependencies: - numpy
- python=3.10.8
- pyqt=5.12.3
- sphinx
- pip
- numpy
- python-gitlab
- pymongo
- pip:
- watchdog
- python-constraint
- PyYAML
- elasticsearch>=7,<8
- cocotb
- cocotb_coverage
- pyvsc==0.8.7.6990678536
- pytest
- pyuvm
- systemrdl-compiler
- /proj_tensix/user_dev/pymodules/pysqlite3
`
from cocotb.
At this point, I'll point you to https://docs.python.org/3.10/c-api/intro.html#embedding-python which has some details on how the embedded Python interpreter determines search paths.
We may look at using Py_InitializeFromConfig
for Python 3.8+.
This may also help: conda/conda#9648
from cocotb.
Related Issues (20)
- The clock generation in the TB simulation using Python is slow
- No module named 'cocotb_tools' HOT 2
- Support Pytest Fixtures HOT 1
- GHDL Returns Integers/naturals as 32 bit binaryValue HOT 2
- GHDL Arrays Access HOT 2
- Python segmentation fault when running embedded pytest test and UVM
- Compile sources into different libs HOT 1
- Improve implementation of `Freeze` and `Release`
- `Release` does not work on GHDL
- `Force`/`Release` don't work on Verilator
- Setting value on forced signal causes implicit release on Riviera
- Questa's FLI allows depositing over a forced signal
- Treat each `MODULE` as it's own testsuite in JUnit results
- Backwards compat `TESTCASE`
- Add Python runner to quick start guide
- Allow Logic for BinaryValue.__eq__() in cocotb 1.8
- COCOTB_RESOLVE_X not working HOT 3
- Change CI's MacOS Verilator test to build cocotb from source
- Python Runner starts tests directly (not waiting for GUI) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocotb.