Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
d9373c0
feat(sim): add explicit clock edges to the simulator
tignear Oct 16, 2026
5297c44
feat(napi): expose explicit clock edges
tignear Oct 16, 2026
f200077
feat(ts): add explicit clock edges to the simulator
tignear Oct 16, 2026
cdd3861
feat(ts): run explicit edges and derived ticks in the WASM bridge
tignear Oct 16, 2026
0b306f0
test(ts): cover explicit edges on the native addon and the WASM bridge
tignear Oct 16, 2026
d31748a
docs: describe explicit clock edges
tignear Oct 16, 2026
316b6ce
test(sim): pulse suite events with explicit edges, as the external te…
tignear Oct 16, 2026
ca05359
test(bench): measure clock cycles with explicit edges
tignear Oct 16, 2026
3bba365
fix(ts): satisfy strict index checks in the WASM edge runner
tignear Oct 16, 2026
607647a
perf(sim): keep comb settled across edges of clocks it does not read
tignear Oct 16, 2026
3ce2142
perf(sim): run plain-event edges through the tick path
tignear Oct 16, 2026
afe9d3b
chore(nix): add the wasm32-wasip1-threads target to the dev shell
tignear Oct 17, 2026
cd312d1
fix(napi): number WASM events as the native simulator does
tignear Oct 17, 2026
aa4c668
feat(ts): share the WASM edge runner as @celox-sim/celox/wasm-edges
tignear Oct 17, 2026
fb6ed76
feat(playground): run ticks, edges and timed steps through the edge r…
tignear Oct 17, 2026
4bb1a39
fix(sim): observe explicit edges as host writes and freeze them after…
tignear Oct 17, 2026
b32c10b
perf(sim): read nothing between a cycle's kernel and its inactive edge
tignear Oct 17, 2026
dab59a0
Merge of #1391
mergify[bot] Oct 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions crates/celox-design/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,10 @@ pub struct EventTopology<A> {
/// an earlier one writes, and none has side effects.
#[serde(default)]
pub independent_derived: BTreeSet<A>,
/// Canonical events whose signal combinational logic reads. Moving such
/// a signal needs a settle before its domains evaluate.
#[serde(default)]
pub combinationally_read: BTreeSet<A>,
}

/// A clock computed combinationally from an event's signal.
Expand Down Expand Up @@ -709,6 +713,7 @@ impl<A> Default for EventTopology<A> {
derived_events: BTreeMap::new(),
combinational_derived: BTreeMap::new(),
independent_derived: BTreeSet::new(),
combinationally_read: BTreeSet::new(),
}
}
}
Expand Down
11 changes: 11 additions & 0 deletions crates/celox-frontend-core/src/symbolic/assembly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ pub fn schedule_symbolic_rtl(
derived_events,
combinational_derived,
independent_derived,
combinationally_read,
} = timed_sub!(
"analyze_clock_dependencies",
analyze_clock_dependencies(
Expand Down Expand Up @@ -1344,6 +1345,7 @@ pub fn schedule_symbolic_rtl(
.map(|(event, targets)| (project(event), targets.into_iter().map(project).collect()))
.collect(),
independent_derived: independent_derived.into_iter().map(project).collect(),
combinationally_read: combinationally_read.into_iter().map(project).collect(),
combinational_derived: combinational_derived
.into_iter()
.map(|(event, clocks)| {
Expand Down Expand Up @@ -3555,6 +3557,8 @@ struct ClockAnalysis {
/// Events whose combinationally derived domains may run before them in
/// turn instead of together.
independent_derived: BTreeSet<AbsoluteAddr>,
/// Events whose signal combinational logic reads.
combinationally_read: BTreeSet<AbsoluteAddr>,
}

fn analyze_clock_dependencies(
Expand Down Expand Up @@ -3950,6 +3954,12 @@ fn analyze_clock_dependencies(
Some((reads, writes))
};
let mut independent_derived = BTreeSet::new();
let combinationally_read: BTreeSet<AbsoluteAddr> = comb_deps
.values()
.flatten()
.map(|source| clock_domains.get(source).copied().unwrap_or(*source))
.filter(|source| unique_clocks.contains(source))
.collect();
let combinational_derived = comb_derived_clocks
.into_iter()
.map(|(event, clocks)| {
Expand Down Expand Up @@ -3989,6 +3999,7 @@ fn analyze_clock_dependencies(
derived_events,
combinational_derived,
independent_derived,
combinationally_read,
}
}

Expand Down
Loading
Loading