diff --git a/crates/celox-design/src/lib.rs b/crates/celox-design/src/lib.rs
index 5e45cf13916..9a6ccd0d0c6 100644
--- a/crates/celox-design/src/lib.rs
+++ b/crates/celox-design/src/lib.rs
@@ -1058,6 +1058,9 @@ pub struct SchedulerSchema {
/// The event signals a host periodic clock may drive inside the
/// scheduler's slots, in the order of its clock slots.
pub clocks: Vec,
+ /// Per process kernel, the event signals it writes, as indices into
+ /// [`Self::events`]; empty for a kernel the scheduler does not run.
+ pub kernel_events: Vec>,
}
impl SchedulerSchema {
@@ -1069,6 +1072,7 @@ impl SchedulerSchema {
fallback: self.fallback,
events: self.events.into_iter().map(&mut map).collect(),
clocks: self.clocks.into_iter().map(map).collect(),
+ kernel_events: self.kernel_events,
}
}
}
diff --git a/crates/celox-frontend-core/src/symbolic/assembly.rs b/crates/celox-frontend-core/src/symbolic/assembly.rs
index 7682ec5627d..aab80fca1fd 100644
--- a/crates/celox-frontend-core/src/symbolic/assembly.rs
+++ b/crates/celox-frontend-core/src/symbolic/assembly.rs
@@ -2072,6 +2072,7 @@ pub fn schedule_symbolic_rtl_reporting_loops(
fallback: Vec::new(),
events: Vec::new(),
clocks: Vec::new(),
+ kernel_events: Vec::new(),
});
// The runtime reads counters, the signals waits watch and staged
// nonblocking values directly; no unit loads a wait's signal.
diff --git a/crates/celox-runtime/src/schedule.rs b/crates/celox-runtime/src/schedule.rs
index b9a0e39311b..4d8e7f255e0 100644
--- a/crates/celox-runtime/src/schedule.rs
+++ b/crates/celox-runtime/src/schedule.rs
@@ -77,6 +77,10 @@ pub(crate) struct SchedulerRefs {
/// The event id and signal of each host clock the scheduler may run,
/// in the order of its clock slots.
pub(crate) clocks: Vec<(usize, SignalRef)>,
+ /// Per process kernel, the bits of `levels` of the events it writes.
+ pub(crate) kernel_events: Vec,
+ /// Per clock slot, the bit of `levels` of its event.
+ pub(crate) clock_events: Vec,
pub(crate) clock_next: SignalRef,
pub(crate) clock_period: SignalRef,
pub(crate) clock_value: SignalRef,
@@ -365,6 +369,24 @@ impl ResolvedSchedule {
.iter()
.map(|event| backend.resolve_event_opt(event).map(|event| event.id()))
.collect::