Skip to content
Closed
2 changes: 2 additions & 0 deletions crates/celox-frontend-core/src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,7 @@ impl HiddenObjects<'_> {
},
array_dims: Vec::new(),
},
unpacked_ranges: Vec::new(),
packed_dims: vec![width],
source: None,
module_affiliated: false,
Expand Down Expand Up @@ -1817,6 +1818,7 @@ pub fn lower_frontend_artifact(
type_kind,
array_dims: Vec::new(),
},
unpacked_ranges: Vec::new(),
packed_dims: vec![signal.value_type().width()],
source: None,
module_affiliated: true,
Expand Down
2 changes: 2 additions & 0 deletions crates/celox-frontend-core/src/shared/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ pub struct VariableInfo {
/// arrays because that is the source-independent storage shape. The
/// testbench adapter also needs packed shape for chained selects.
pub packed_dims: Vec<usize>,
/// Declared unpacked bounds, in storage order; empty uses zero-based dimensions.
pub unpacked_ranges: Vec<(i128, i128)>,
}

impl std::ops::Deref for VariableInfo {
Expand Down
2 changes: 2 additions & 0 deletions crates/celox-frontend-core/src/symbolic/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ pub struct SymbolicVariable {
pub signed: bool,
pub metadata: VariableMetadata,
pub packed_dims: Vec<usize>,
/// Declared unpacked bounds, in storage order; empty uses zero-based dimensions.
pub unpacked_ranges: Vec<(i128, i128)>,
pub source: Option<SourceLocation>,
pub module_affiliated: bool,
}
Expand Down
1 change: 1 addition & 0 deletions crates/celox-frontend-core/src/symbolic/assembly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1690,6 +1690,7 @@ fn module_variables(
var_kind: variable.kind,
signed: variable.signed,
packed_dims: variable.packed_dims.clone(),
unpacked_ranges: variable.unpacked_ranges.clone(),
metadata: variable.metadata.clone(),
},
);
Expand Down
1 change: 1 addition & 0 deletions crates/celox-frontend-core/src/watch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ pub fn declare_counter_slots(
type_kind: PortTypeKind::Bit,
array_dims: Vec::new(),
},
unpacked_ranges: Vec::new(),
packed_dims: vec![EVENT_COUNTER_WIDTH],
source: None,
module_affiliated: false,
Expand Down
Loading
Loading