sim/compiler: fix registers so they properly retain their old value when not written #67

Merged
programmerjake merged 4 commits from programmerjake/fayalite:fix-queue-sim into master 2026-03-25 06:43:44 +00:00
Showing only changes of commit 52c41bb5db - Show all commits

View file

@ -1295,10 +1295,16 @@ impl SimulationModuleState {
if !self.uninitialized_ios.is_empty() {
match which_module {
WhichModule::Main => {
panic!("can't read from an output before initializing all inputs");
panic!(
"can't read from an output before initializing all inputs\nuninitialized_ios={:#?}",
SortedSetDebug(&self.uninitialized_ios),
);
}
WhichModule::Extern { .. } => {
panic!("can't read from an input before initializing all outputs");
panic!(
"can't read from an input before initializing all outputs\nuninitialized_ios={:#?}",
SortedSetDebug(&self.uninitialized_ios),
);
}
}
}