mirror of https://github.com/YosysHQ/yosys.git
cxxrtl: fix format of hdlnames.
The CXXRTL code that handled the `hdlname` attribute implemented outdated semantics.
This commit is contained in:
parent
fbb346ea91
commit
53688a24b5
|
@ -508,7 +508,7 @@ std::string get_hdl_name(T *object)
|
||||||
if (object->has_attribute(ID::hdlname))
|
if (object->has_attribute(ID::hdlname))
|
||||||
return object->get_string_attribute(ID::hdlname);
|
return object->get_string_attribute(ID::hdlname);
|
||||||
else
|
else
|
||||||
return object->name.str();
|
return object->name.str().substr(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct CxxrtlWorker {
|
struct CxxrtlWorker {
|
||||||
|
|
Loading…
Reference in New Issue