sim: Bail if there are blackboxes in simulation

This commit is contained in:
Martin Povišer 2023-07-19 16:57:49 +02:00 committed by Lofty
parent 51ef942547
commit f5485b59a9
1 changed files with 4 additions and 0 deletions

View File

@ -188,6 +188,10 @@ struct SimInstance
{ {
log_assert(module); log_assert(module);
if (module->get_blackbox_attribute(true))
log_error("Cannot simulate blackbox module %s (instanced at %s).\n",
log_id(module->name), hiername().c_str());
if (parent) { if (parent) {
log_assert(parent->children.count(instance) == 0); log_assert(parent->children.count(instance) == 0);
parent->children[instance] = this; parent->children[instance] = this;