diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc index ead79fd95..996f6715d 100644 --- a/frontends/ast/ast.cc +++ b/frontends/ast/ast.cc @@ -1820,7 +1820,7 @@ std::string AstModule::derive_common(RTLIL::Design *design, const dictclone(); if (!new_ast->attributes.count(ID::hdlname)) - new_ast->set_attribute(ID::hdlname, AstNode::mkconst_str(stripped_name)); + new_ast->set_attribute(ID::hdlname, AstNode::mkconst_str(stripped_name.substr(1))); para_counter = 0; for (auto child : new_ast->children) {