Comments (7)
This should be possible. It may be due to limited support in your simulator. Please provide the full details about your environment that the issue template asked you.
from cocotb.
Hey guys, sorry to intrude on firemountain issue , just to add that I see the same issue albeit on a more convoluted fashion but it boils down to the same. I am using 1.7.2 cocotb, using VCS: VCS Release version S-2021.09-SP2-1_Full64 and here is a snippet:
genvar stream_group_gen;
genvar stream_gen;
for (stream_group_gen = 0; stream_group_gen < 8; stream_group_gen++) begin: overlay_stream_group
for (stream_gen = 0; stream_gen < 8; stream_gen++) begin: overlay_stream
stream_module stream_inst()
end
end
When I try to access this via : dut.overlay_stream_group[0].overlay_stream[0].stream_inst
I get the same error as the OP, a print(dir(dut))
gives no member named overlay_stream_group
, but weirdly we get a member named stream_inst
. which is not an array so any access to it while it does not complain at runtime, goes to nowhere
from cocotb.
@genfrontier See #2187. It seems that VCS doesn't have great support for discovering generate loops, but there is a work-around.
from cocotb.
Thanks ktbarret, i was able to bypass this by using :
fullsig = dut._id(f"overlay_stream_group[{groupsel:d}].overlay_stream[{streamsel:d}].stream_inst", extended=False)
The trick is to use as the ._id
string the whole hierarchy from the first generate loop onward. Leaving it here as might someone find it helpful
from cocotb.
Has your question been resolved? If so please close this issue. If it has not been resolved, you may need to provide more information. If no more activity on this issue occurs in 7 days, it will be closed.
from cocotb.
may I have a elaborate explanation on what the mean of simulator I use, I guess it's verilator? and I just built it with python3, I still have this problem, so how u grab this signal if it's defined like that.
from cocotb.
Verilator is a simulator. What version of verilator? You can find out by running verilator --version
.
from cocotb.
Related Issues (20)
- cocotb blocking assignment (setimmediatevalue)not work HOT 3
- cocotb blocking assignment (setimmediatevalue)not work
- GHDL array types not handling HOT 10
- Do we really need to wait until ReadWrite to apply writes if writes are inertial? HOT 1
- GHDL IndexError with in/out port arrays HOT 1
- [Tracking] cleanup handle.py
- Remove types from docstrings, use type annotations instead HOT 3
- Docstrings should not (only) point to Makefile variables
- NVC: Remove experimental status
- Support for package access via VHPI and FLI HOT 1
- Replace `ParameterizedSingleton` with a class decorator
- Thoughts on adding git rev to dev version numbers? HOT 4
- Proposal: revert handle.py cast removals HOT 11
- Re-enable MSVC test HOT 3
- Document `COVERAGE_RCFILE`
- GPI: Try parent handle first when doing handle_by_name()
- Separating symmetric and asymmetric tasks HOT 4
- Riviera-PRO 2022.10+: structs and unions in module ports are not discovered over VPI HOT 2
- Signal probing throws ModifiableObject error HOT 2
- Coverage support with ghdl-gcc simulator HOT 2
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.