display signals when panicking because not all inputs/outputs are written yet
This commit is contained in:
parent
a93e66d8ab
commit
52c41bb5db
1 changed files with 8 additions and 2 deletions
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue