diff options
author | whitequark <whitequark@whitequark.org> | 2020-06-08 19:50:09 +0000 |
---|---|---|
committer | whitequark <whitequark@whitequark.org> | 2020-06-08 20:19:41 +0000 |
commit | 53688a24b531adcc99c091f728e9657d16010467 (patch) | |
tree | 7d2027cda96eeb6c16506ca8b1c9df2fe475efa7 /backends | |
parent | fbb346ea91a04f2feaf6fa96770fe0cd57020e75 (diff) | |
download | yosys-53688a24b531adcc99c091f728e9657d16010467.tar.gz yosys-53688a24b531adcc99c091f728e9657d16010467.tar.bz2 yosys-53688a24b531adcc99c091f728e9657d16010467.zip |
cxxrtl: fix format of hdlnames.
The CXXRTL code that handled the `hdlname` attribute implemented
outdated semantics.
Diffstat (limited to 'backends')
-rw-r--r-- | backends/cxxrtl/cxxrtl_backend.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/cxxrtl/cxxrtl_backend.cc b/backends/cxxrtl/cxxrtl_backend.cc index b3aec2110..bf01b263a 100644 --- a/backends/cxxrtl/cxxrtl_backend.cc +++ b/backends/cxxrtl/cxxrtl_backend.cc @@ -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 { |