Skip to content

Commit

Permalink
Fixed state arrays not getting initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
VonTum committed Jul 5, 2024
1 parent 7073206 commit 411956c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/instantiation/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl<'fl, 'l> InstantiationContext<'fl, 'l> {
RealWireDataSource::ReadOnly
} else {
let is_state = if wire_decl.identifier_type == IdentifierType::State {
Some(Value::Unset)
Some(self.get_initial_val(&typ))
} else {
None
};
Expand Down Expand Up @@ -443,7 +443,7 @@ impl<'fl, 'l> InstantiationContext<'fl, 'l> {
let mut instruction_range = block_range.into_iter();
while let Some(original_instruction) = instruction_range.next() {
let instr = &self.md.instructions[original_instruction];
self.md.get_instruction_span(original_instruction);
self.md.get_instruction_span(original_instruction).debug();
let instance_to_add : SubModuleOrWire = match instr {
Instruction::SubModule(submodule) => {
let sub_module = &self.linker.modules[submodule.module_ref.id];
Expand Down

0 comments on commit 411956c

Please sign in to comment.