Events
- class torii.lib.soc.event.Source(*, trigger: Trigger = 'level', name: str | None = None, src_loc_at: int = 0)
- class torii.lib.soc.event.EventMap
Event map.
An event map is a description of a set of events. It is built by adding event sources and can be queried later to determine their index. Event indexing is done implicitly by increment, starting at 0.
- class torii.lib.soc.event.Monitor(*args, src_loc_at: int = 0, **kwargs)
Event monitor.
A monitor for subordinate event sources.
- Parameters:
- Variables:
src (
Source
) – Event source. Its input is asserted when a subordinate event is enabled and pending.enable (Signal(event_map.size), bit mask, in) – Enabled events.
pending (Signal(event_map.size), bit mask, out) – Pending events.
clear (Signal(event_map.size), bit mask, in) – Clear selected pending events.