mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-08-22 06:07:26 +02:00
cxxrtl: fix format of hdlnames.
The CXXRTL code that handled the `hdlname` attribute implemented outdated semantics.
This commit is contained in:
@@ -508,7 +508,7 @@ std::string get_hdl_name(T *object)
|
||||
if (object->has_attribute(ID::hdlname))
|
||||
return object->get_string_attribute(ID::hdlname);
|
||||
else
|
||||
return object->name.str();
|
||||
return object->name.str().substr(1);
|
||||
}
|
||||
|
||||
struct CxxrtlWorker {
|
||||
|
||||
Reference in New Issue
Block a user