mirror of
https://github.com/YosysHQ/yosys
synced 2026-07-15 03:35:40 +00:00
rtlil_frontend: allocate meta block
This commit is contained in:
parent
e71ed3007d
commit
d974527ab4
1 changed files with 2 additions and 0 deletions
|
|
@ -773,6 +773,8 @@ struct RTLILFrontendWorker {
|
|||
} else
|
||||
error("RTLIL error: redefinition of memory %s.", design->twines.str(mem_name).c_str());
|
||||
}
|
||||
if (memory->meta_ == nullptr)
|
||||
memory->meta_ = design->alloc_obj_meta();
|
||||
memory->meta_->name = mem_name;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue