Comments (6)
--vpi-trace=results/counter_tb_vpi.log
Could you provide this log?
Also, try running with COCOTB_LOG_LEVEL=TRACE
to get more information about what is happening internal to cocotb's shared libraries.
from cocotb.
The above was already ran with COCOTB_LOG_LEVEL = TRACE
. Also the log file is completely empty.
from cocotb.
You could try setting COCOTB_ATTACH and connecting with a debugger. It stops and waits for attach right before the log
-.--ns INFO gpi ../gpi/GpiCommon.cpp:101 in gpi_print_registered_impl VPI registered
The very next thing should be registering for the VPI startup callback using cbStartOfSimulation
.
from cocotb.
here is the backtrace:
Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140289351952192) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140289351952192)
at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140289351952192) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140289351952192, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007f97a9017476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4 0x00007f97a8ffd7f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x000055d30502c2aa in __gnat_last_chance_handler ()
at /home/runner/work/ghdl/ghdl/build-gcc-12.1.0/../src/grt/grt-cgnatrts.c:23
#6 0x000055d305082098 in grt.waves.foreach_scalar_signal_number.range_pos_to_val (
rti=0x55d3050f72e0 <std__standard__integer__BT__RTI>, rng=0x55d305d40b04, pos=0, val=...)
at /home/runner/work/ghdl/ghdl/build-gcc-12.1.0/../src/grt/grt-rtis_utils.adb:293
#7 0x000055d30508234b in grt.waves.foreach_scalar_signal_number.pos_to_vstring (vstr=...,
rti=0x55d3050f72e0 <std__standard__integer__BT__RTI>, rng=0x55d305d40b04, pos=0)
at /home/runner/work/ghdl/ghdl/build-gcc-12.1.0/../src/grt/grt-rtis_utils.adb:334
#8 0x000055d305082643 in grt.waves.foreach_scalar_signal_number.handle_array_1 (
arr_rti=0x55d3050fa960 <work__counter_pkg__byte_arr_1d_t__BT__RTI>, index=0)
at /home/runner/work/ghdl/ghdl/build-gcc-12.1.0/../src/grt/grt-rtis_utils.adb:379
#9 0x000055d305082a9c in grt.waves.foreach_scalar_signal_number.handle_any (
rti=0x55d3050fa9c0 <work__counter_pkg__byte_arr_1d_t__RTI>)
at /home/runner/work/ghdl/ghdl/build-gcc-12.1.0/../src/grt/grt-rtis_utils.adb:454
#10 0x000055d305081fd2 in grt.waves.foreach_scalar_signal_number (ctxt=...,
obj_type=0x55d3050fa9c0 <work__counter_pkg__byte_arr_1d_t__RTI>,
obj_addr=(system.address) 0x55d305d40b98, is_sig=true, param=0)
at /home/runner/work/ghdl/ghdl/build-gcc-12.1.0/../src/grt/grt-rtis_utils.adb:507
#11 0x000055d305085ab1 in grt.waves.write_signal_numbers (decl=...)
at /home/runner/work/ghdl/ghdl/src/grt/grt-waves.adb:878
#12 0x000055d305085c44 in grt.waves.write_hierarchy_el (decl=...)
at /home/runner/work/ghdl/ghdl/src/grt/grt-waves.adb:923
#13 0x000055d305085e18 in grt.waves.wave_put_hierarchy_1 (inst=..., step=step_hierarchy,
match_list=0x0) at /home/runner/work/ghdl/ghdl/src/grt/grt-waves.adb:971
#14 0x000055d3050860a8 in grt.waves.wave_put_hierarchy_block (inst=..., step=step_hierarchy,
match_list=0x0) at /home/runner/work/ghdl/ghdl/src/grt/grt-waves.adb:1043
#15 0x000055d3050861ed in grt.waves.wave_put_hierarchy (root=..., step=step_hierarchy)
at /home/runner/work/ghdl/ghdl/src/grt/grt-waves.adb:1075
#16 0x000055d305088ab9 in grt.waves.write_hierarchy (root=...)
at /home/runner/work/ghdl/ghdl/src/grt/grt-waves.adb:1670
#17 0x000055d305088f2a in grt.waves.wave_start ()
at /home/runner/work/ghdl/ghdl/src/grt/grt-waves.adb:1755
#18 0x000055d305033840 in grt.hooks.call_start_hooks ()
at /home/runner/work/ghdl/ghdl/src/grt/grt-hooks.adb:135
#19 0x000055d305012f40 in <__ghdl_simulation_init> ()
at /home/runner/work/ghdl/ghdl/src/grt/grt-processes.adb:1181
#20 0x000055d30501332f in grt.processes.simulation ()
at /home/runner/work/ghdl/ghdl/src/grt/grt-processes.adb:1331
#21 0x000055d30502c09a in __ghdl_run_through_longjump (
func=0x55d305013322 <grt.processes.simulation>)
at /home/runner/work/ghdl/ghdl/build-gcc-12.1.0/../src/grt/config/jumps.c:234
#22 0x000055d30502bc02 in grt.main.run_simul ()
at /home/runner/work/ghdl/ghdl/src/grt/grt-main.adb:163
#23 0x000055d30502bce4 in grt.main.run () at /home/runner/work/ghdl/ghdl/src/grt/grt-main.adb:198
Somehow the value of Rng.I32.Dir in grt-rtis_utils.adb:293 is a number instead of dir_downto. How can I track this back to the rtl parsing? Not at all familiar with the internals of ghdl
from cocotb.
Found out this occurs because I had --wave in my SIM_ARGS instead of --vcd as custom types do not work with the VPI interface to cocotb.
from cocotb.
I close this. Feel free to reopen if necessary.
from cocotb.
Related Issues (20)
- Move `cocotb.runner` and `cocotb.config` to new package HOT 1
- Include `combine_results.py` in package
- Unable to get range of all dimensions in packed arrays
- Sometimes packed objects are listed as indexable by GPI
- [Feature Request] Add Trigger to the with_timeout function HOT 2
- Possible Callbacks not cleaned up after cancelation of coro HOT 11
- Can't store value in array HOT 1
- Question: cocotb.task is not cancelable HOT 5
- CI: mingw fails to compile Icarus Verilog and hangs after "mkdir dep" HOT 3
- VPI and friends' callback cleanup is messy
- Verilog extended identifiers HOT 4
- Normalize sub_handle names in the GPI layer
- Always `_discover_all` when finding a sub-handle HOT 1
- Cleanup residual uses of COCOTB_SIM
- Refactor VHDL N-Dimensional Array Access
- Get troubled when run simulation: "needed by sim_build/Vtop.mk" HOT 2
- undeclared identifier 'basename' in verilator.cpp HOT 4
- Test verilator on each platform
- pre-commit autoupdate broken
- Errors in Xcelium VHDL when architecture & entity have the same name
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.