Open David-Durst opened 4 years ago
This is addressed by #157.
https://github.com/David-Durst/aetherling/blob/82970b97ed959fe62d42778088953e21cdd072e9/tests/test_space_time/test_nested_counters.py#L16 fails with the following message:
E AssertionError: Got non-zero return code: 2.
E ../NestedCounters_TSeq_3_1_Int__hasCEFalse_hasResetFalse_driver.cpp:8:10: fatal error: 'VNestedCounters_TSeq_3_1_Int__hasCEFalse_hasResetFalse_NestedCounters_TSeq_3_1_Int__hasCEFalse_hasResetFalse.h' file not found
E #include "VNestedCounters_TSeq_3_1_Int__hasCEFalse_hasResetFalse_NestedCounters_TSeq_3_1_Int__hasCEFalse_hasResetFalse.h"
E ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
E 1 error generated.
E make: *** [NestedCounters_TSeq_3_1_Int__hasCEFalse_hasResetFalse_driver.o] Error 1
What am I doing wrong?
Can you try calling compile and run with
magma_opts={"verilator_debug": True}
Sorry this isn't documented but I believe this is needed so verilator will preserve the internal signals. I will update the documentation if it works.
(aetherling) durst@DN0a22a9e8:~/dev/W17-8/aetherling$ verilator --version Verilator 4.014 2019-05-08 rev UNKNOWN_REV
The main readme says that you can work with internal signals. It provides an example for calling .expect().
How can I print the internal signals? The line https://github.com/David-Durst/aetherling/blob/26ccb851cf179ed8e45a0e21fc76c3b95c2085d7/tests/test_bitonic_sort.py#L28 fails: