projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9304e6
)
Fixed pattern matching in "hierarchy -generate"
author
Clifford Wolf
<clifford@clifford.at>
Sun, 4 Jan 2015 10:45:39 +0000
(11:45 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Sun, 4 Jan 2015 10:45:39 +0000
(11:45 +0100)
passes/hierarchy/hierarchy.cc
patch
|
blob
|
history
diff --git
a/passes/hierarchy/hierarchy.cc
b/passes/hierarchy/hierarchy.cc
index 66d660324b4e572bed1d1b47cefd766a1fd17053..58b796a62bf1a15620961ce3b1ba8e22016934c0 100644
(file)
--- 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::IdS
tring portname;
+
s
tring portname;
int index;
};
@@
-101,7
+101,7
@@
void generate(RTLIL::Design *design, const std::vector<std::string> &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);