Giter VIP home page Giter VIP logo

Comments (9)

emunoz-at-tt avatar emunoz-at-tt commented on May 30, 2024

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.

emunoz-at-tt avatar emunoz-at-tt commented on May 30, 2024

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.

marlonjames avatar marlonjames commented on May 30, 2024

In your Python environment, what does running cocotb-config --libpython give you?

from cocotb.

emunoz-at-tt avatar emunoz-at-tt commented on May 30, 2024

/conda/conda-envs/tek/lib/libpython3.10.so.1.0

from cocotb.

marlonjames avatar marlonjames commented on May 30, 2024

Are you setting LIBPYTHON_LOC environment variable to that path?

from cocotb.

emunoz-at-tt avatar emunoz-at-tt commented on May 30, 2024

yep:
echo $LIBPYTHON_LOC /conda/conda-envs/tek/lib/libpython3.10.so.1.0

from cocotb.

marlonjames avatar marlonjames commented on May 30, 2024

Is cocotb installed from pypi or did you build it locally?

from cocotb.

emunoz-at-tt avatar emunoz-at-tt commented on May 30, 2024

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.

marlonjames avatar marlonjames commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.