mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-01 21:05:53 +00:00
enforce that hdlname/scopename is used consistently with public/private names
This commit is contained in:
parent
502c39b875
commit
5c41d8bd88
4 changed files with 31 additions and 3 deletions
|
@ -1464,7 +1464,8 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
|
|||
log("Importing module %s.\n", RTLIL::id2cstr(module->name));
|
||||
}
|
||||
import_attributes(module->attributes, nl, nl);
|
||||
module->set_string_attribute(ID::hdlname, nl->CellBaseName());
|
||||
if (module->name.isPublic())
|
||||
module->set_string_attribute(ID::hdlname, nl->CellBaseName());
|
||||
module->set_string_attribute(ID(library), nl->Owner()->Owner()->Name());
|
||||
#ifdef VERIFIC_VHDL_SUPPORT
|
||||
if (nl->IsFromVhdl()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue