verilator/test_regress
Krzysztof Bieganski 519792d02b
Fix to commit coroutines immediately on `wait` statements (#4229)
Event-triggered coroutines live in two stages: 'uncommitted' and 'ready'. First
they land in 'uncommitted', meaning they can't be resumed yet. Only after
coroutines from the 'ready' queue are resumed, the 'uncommitted' ones are moved
to the 'ready' queue, and can be resumed. This is to avoid self-triggering in
situations like waiting for an event immediately after triggering it.

However, there is an issue with `wait` statements. If you have a `wait(b)`, it's
being translated into a loop that awaits a change in `b` as long as `b` is
false. If `b` is false at first, the coroutine is put into the `uncommitted`
queue. If `b` is set to true before it's committed, the coroutine won't get
resumed.

This patch fixes that by immediately committing event controls created from
`wait` statements. That means the coroutine from the example above will get
resumed from now on.
2023-05-25 20:20:44 -04:00
..
t Fix to commit coroutines immediately on `wait` statements (#4229) 2023-05-25 20:20:44 -04:00
.gdbinit
.gitignore
CMakeLists.txt Fix cmake 3.12+ warnings on MSWIN. 2023-02-03 17:16:39 -05:00
Makefile Copyright year update 2023-01-01 10:18:39 -05:00
Makefile_obj Add CFG_CXXFLAGS_STD so CFG_CXXFLAGS_STD_NEWEST can still exist (#3881) 2023-01-22 09:44:50 -05:00
driver.pl Parse process class, and report runtime errors (#3612) 2023-04-08 15:04:42 -04:00
input.vc
input.xsim.vc