Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 3 additions & 2 deletions crates/celox-design/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1072,10 +1072,11 @@ pub struct RuntimeSchema<A> {
/// A combinational settle split into partitions that run only when state
/// they read changed since they last ran.
///
/// Byte `p` of `flags` is partition `p`'s dirty flag; the byte after the
/// Byte `p` of `flags` is partition `p`'s dirty flag. The byte after the
/// last partition's is the untracked byte, set once state may change
/// without anyone setting flags (a retained raw view), after which every
/// partition always runs.
/// partition always runs. The next one says whether the current settle runs
/// every partition, decided at its start.
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct SettlePartitions<A> {
pub flags: A,
Expand Down
7 changes: 4 additions & 3 deletions crates/celox-frontend-core/src/symbolic/assembly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,7 @@ pub fn schedule_symbolic_rtl_reporting_loops(
data: InitialStateData::Packed {
value,
mask: BigUint::default(),
written_mask: (BigUint::from(1u8) << ((partitions + 1) * 8)) - 1u8,
written_mask: (BigUint::from(1u8) << ((partitions + 2) * 8)) - 1u8,
},
});
}
Expand Down Expand Up @@ -2607,14 +2607,15 @@ fn settle_partitioning(
}

/// Declare the flags of a settle of `partitions` partitions, one byte each
/// plus the untracked byte, as a hidden variable of the top module.
/// plus the untracked and the full byte, as a hidden variable of the top
/// module.
fn declare_settle_flags(
modules: &mut HashMap<ModuleId, SimModule>,
root: ModuleId,
var_id: SourceVarId,
partitions: usize,
) {
let width = (partitions + 1) * 8;
let width = (partitions + 2) * 8;
let variables = &mut modules.get_mut(&root).expect("top module").variables;
variables.insert(
var_id,
Expand Down
Loading
Loading