Expand description
Phase triggers (ReadOnly / ReadWrite / NextTimeStep) and the scheduled write buffer (design-doc §4.1(4), §4.4, mapping rows 15 & 22).
One hub per sim thread coordinates: writes via set() are buffered and
drained at the start of the next ReadWrite phase — before ReadWrite
awaiters are woken — porting cocotb’s write scheduler verbatim
(cocotb: handle.py _apply_scheduled_writes, ReadWrite._do_callbacks).
Illegal phase transitions (write/await-ReadWrite from ReadOnly) are
runtime errors, exactly as cocotb.
Structs§
Enums§
Functions§
- current_
phase - leave_
read_ only - Return to a region where writing is legal.
- next_
time_ step - Await the next simulator time step (port of
NextTimeStep()). - read_
only - Await the next ReadOnly phase (port of
ReadOnly()). - read_
write - Await the next ReadWrite phase (port of
ReadWrite()).