Comments (3)
Please post exact code.
I'm guessing you are doing something like this in the makefiles.
COCOTB_RESOLVE_X = whatever
This does not export the make variable as an environment variable. you need to add the export
keyword.
export COCOTB_RESOLVE_X = whatever
The only reason this is not needed for things like TESTCASE
, MODULE
, etc. is because the makefiles export those for you. But they don't export all environment variables.
Also, COCOTB_RESOLVE_X
and BinaryValue
were removed in 2.0, so expect casting values coming from handles to int
to always act like VALUE_ERROR
from now on.
from cocotb.
I see thanks. I thought all the variables listed here are makefile vars. Apparently I missed some lines. Thanks for pointing it out!
from cocotb.
Sorry, the documentation is not clear about which variables are just for Make vs environment variables passed to Python, and which environment variables are exported for you.
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
- vcs U-2023.03-SP1-1 plus conda python wont load HOT 9
- 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
- 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.