From 0648e2874c9823e8b4012877b49dfa6eef3d7034 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 4 Jan 2015 11:45:39 +0100 Subject: [PATCH] Fixed pattern matching in "hierarchy -generate" --- passes/hierarchy/hierarchy.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/passes/hierarchy/hierarchy.cc b/passes/hierarchy/hierarchy.cc index 66d660324..58b796a62 100644 --- a/passes/hierarchy/hierarchy.cc +++ b/passes/hierarchy/hierarchy.cc @@ -32,7 +32,7 @@ PRIVATE_NAMESPACE_BEGIN struct generate_port_decl_t { bool input, output; - RTLIL::IdString portname; + string portname; int index; }; @@ -101,7 +101,7 @@ void generate(RTLIL::Design *design, const std::vector &celltypes, for (auto &decl : portdecls) if (decl.index == 0 && patmatch(decl.portname.c_str(), RTLIL::unescape_id(portname).c_str())) { generate_port_decl_t d = decl; - d.portname = portname; + d.portname = portname.str(); d.index = *indices.begin(); log_assert(!indices.empty()); indices.erase(d.index); -- 2.30.2