mirror of https://github.com/YosysHQ/yosys.git
verific: expose library name as module attribute
This commit is contained in:
parent
7bb2746208
commit
af94123730
|
@ -1430,6 +1430,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
|
|||
}
|
||||
import_attributes(module->attributes, nl, nl);
|
||||
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()) {
|
||||
NameSpace name_space(0);
|
||||
|
|
Loading…
Reference in New Issue