mirror of
https://github.com/verilator/verilator.git
synced 2025-01-03 21:27:35 +00:00
519792d02b
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. |
||
---|---|---|
.. | ||
gtkwave | ||
vltstd | ||
.gitignore | ||
verilated_config.h.in | ||
verilated_cov_key.h | ||
verilated_cov.cpp | ||
verilated_cov.h | ||
verilated_dpi.cpp | ||
verilated_dpi.h | ||
verilated_fst_c.cpp | ||
verilated_fst_c.h | ||
verilated_fst_sc.cpp | ||
verilated_fst_sc.h | ||
verilated_funcs.h | ||
verilated_heavy.h | ||
verilated_imp.h | ||
verilated_intrinsics.h | ||
verilated_probdist.cpp | ||
verilated_profiler.cpp | ||
verilated_profiler.h | ||
verilated_save.cpp | ||
verilated_save.h | ||
verilated_sc.h | ||
verilated_std.sv | ||
verilated_sym_props.h | ||
verilated_syms.h | ||
verilated_threads.cpp | ||
verilated_threads.h | ||
verilated_timing.cpp | ||
verilated_timing.h | ||
verilated_trace_defs.h | ||
verilated_trace_imp.h | ||
verilated_trace.h | ||
verilated_types.h | ||
verilated_vcd_c.cpp | ||
verilated_vcd_c.h | ||
verilated_vcd_sc.cpp | ||
verilated_vcd_sc.h | ||
verilated_vpi.cpp | ||
verilated_vpi.h | ||
verilated.cpp | ||
verilated.h | ||
verilated.mk.in | ||
verilated.v | ||
verilatedos.h |