counter overflow at time <x> on Tire kick first test

52 views
Skip to first unread message

Peter Lee (wonjongbot)

unread,
Mar 2, 2025, 11:22:00 PM3/2/25
to black-parrot
Hi all,

This is a very exciting open source project, and I hope to contribute here some day soon!

Setup:
I am currently following the instruction on `black-parrot-sim` repository. My environment has been set up using the provided docker file, and I’m running the initial test with the following command after running `make prep_lite`:

`make -C black-parrot/bp_top/syn build.verilator sim.verilator`

Issue:
While the simulation appears to start correctly, I’m getting repeated messages like:

`TOP.testbench.wrapper.processor.u.unicore.unicore_lite.core_minimal.be.watchdog.stall_counter error: counter overflow at time           2854657000`

The same error persists and continues to accumulate, with the simulation not terminating. At first, I assumed the simulation is taking a bit long since it's a large design, but I wanted to confirm whether this is expected behavior or if there might be an issue with my setup. 

I've attached the log file of the ongoing simulation. I would appreciate any guidance on whether this is supposed to happen (which I doubt :( ) or if there are any steps I should take to solve it. Thank you so much for your time!

Best,
Peter
bp_tethered.e_bp_default_cfg.none.sim.bp-tests.hello_world.log

Dan Petrisko

unread,
Mar 3, 2025, 2:38:52 AM3/3/25
to Peter Lee (wonjongbot), black-parrot
Hi, welcome! 

Can you provide your:
- os / version
- verilator version
- black-parrot commit hash
- black-parrot-sdk commit hash

I don't see this in a fresh clone so it may be an environment issue or some step is subtly failing

Best,
-Dan  

--
You received this message because you are subscribed to the Google Groups "black-parrot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to black-parrot...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/black-parrot/2b19af84-8575-47e2-9f23-fd0267f51604n%40googlegroups.com.

Peter Lee (wonjongbot)

unread,
Mar 3, 2025, 3:56:28 AM3/3/25
to black-parrot
Hi dan,

Sure!

os: Ubuntu 22.04.5 LTS (using provided docker environment)
verilator: 5.029 on host ( 5.030 on black-parrot-tools )
black-parrot commit hash: d28efc7
black-parrot-sdk commit hash: f71d11d

Do I need to keep black-parrot and black-parrot-sdk up to date with master? Thanks!

Best,
Peter

Dan Petrisko

unread,
Mar 3, 2025, 5:25:33 AM3/3/25
to Peter Lee (wonjongbot), black-parrot
Hi Peter,

The intention is that the versions tagged in black-parrot-sim all work together. Of course, sometimes things skip through the cracks. It’s definitely worth a shot to bump to main/master

Best,
Dan

On Mar 3, 2025, at 12:56 AM, Peter Lee (wonjongbot) <wonjo...@gmail.com> wrote:



Peter Lee (wonjongbot)

unread,
Mar 3, 2025, 6:31:13 AM3/3/25
to black-parrot
Hi Dan!  

Looks like that did the trick! The sim ran successfully. Thank you so much!  

Quick side note: I had to add the following to my Dockerfile to make sure g++-10 was used for compilation. This ended up fixing another issue where Verilator couldn’t find the coroutine library, which comes with c++20 standard). Just wanted to mention it here in case anyone else runs into something similar (though I did see it referenced in a GitHub issue already).

```
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 && \
    update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 100
```
Looking forward to exploring this project more.

Best, 
Peter
Reply all
Reply to author
Forward
0 new messages