mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 04:13:39 +00:00
Manual fixes for new cell connections API
This commit is contained in:
parent
b7dda72302
commit
f8fdc47d33
36 changed files with 169 additions and 123 deletions
|
@ -219,7 +219,7 @@ static bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool fla
|
|||
|
||||
RTLIL::Module *mod = design->modules[cell->type];
|
||||
|
||||
for (auto &conn : cell->connections()) {
|
||||
for (auto &conn : cell->connections_) {
|
||||
int conn_size = conn.second.size();
|
||||
std::string portname = conn.first;
|
||||
if (portname.substr(0, 1) == "$") {
|
||||
|
@ -519,7 +519,7 @@ struct HierarchyPass : public Pass {
|
|||
new_connections[pos_map.at(key)] = conn.second;
|
||||
} else
|
||||
new_connections[conn.first] = conn.second;
|
||||
cell->connections() = new_connections;
|
||||
cell->connections_ = new_connections;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ struct SubmodWorker
|
|||
flag_found_something = true;
|
||||
}
|
||||
|
||||
void flag_signal(RTLIL::SigSpec &sig, bool create, bool set_int_driven, bool set_int_used, bool set_ext_driven, bool set_ext_used)
|
||||
void flag_signal(const RTLIL::SigSpec &sig, bool create, bool set_int_driven, bool set_int_used, bool set_ext_driven, bool set_ext_used)
|
||||
{
|
||||
for (auto &c : sig.chunks())
|
||||
if (c.wire != NULL)
|
||||
|
@ -163,7 +163,7 @@ struct SubmodWorker
|
|||
|
||||
for (RTLIL::Cell *cell : submod.cells) {
|
||||
RTLIL::Cell *new_cell = new_mod->addCell(cell->name, cell);
|
||||
for (auto &conn : new_cell->connections())
|
||||
for (auto &conn : new_cell->connections_)
|
||||
for (auto &bit : conn.second)
|
||||
if (bit.wire != NULL) {
|
||||
assert(wire_flags.count(bit.wire) > 0);
|
||||
|
@ -180,7 +180,7 @@ struct SubmodWorker
|
|||
RTLIL::Wire *old_wire = it.first;
|
||||
RTLIL::Wire *new_wire = it.second.new_wire;
|
||||
if (new_wire->port_id > 0)
|
||||
new_cell->connections()[new_wire->name] = RTLIL::SigSpec(old_wire);
|
||||
new_cell->set(new_wire->name, RTLIL::SigSpec(old_wire));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue