Make sure LPMs have valid inputs/outputs

This commit is contained in:
Nick Gasson 2008-07-29 13:06:21 +01:00
parent 39717989a8
commit 680c6f0503
1 changed files with 14 additions and 1 deletions

View File

@ -218,7 +218,20 @@ void draw_nexus(ivl_nexus_t nexus)
}
}
else if ((lpm = ivl_nexus_ptr_lpm(nexus_ptr))) {
assert(false);
ivl_scope_t lpm_scope = ivl_lpm_scope(lpm);
vhdl_scope *vhdl_scope =
find_entity(ivl_scope_tname(lpm_scope))->get_arch()->get_scope();
cout << "LPM " << ivl_lpm_basename(lpm) << endl;
ivl_signal_t linked;
if ((linked = visible_nexus_signal(priv, vhdl_scope))) {
cout << "...linked to signal " << ivl_signal_name(linked) << endl;
}
else {
cout << "...has no signal!" << endl;
assert(false);
}
}
}