mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-19 20:33:39 +00:00
Changed users of cell->connections_ to the new API (sed command)
git grep -l 'connections_' | xargs sed -i -r -e ' s/(->|\.)connections_\["([^"]*)"\] = (.*);/\1set("\2", \3);/g; s/(->|\.)connections_\["([^"]*)"\]/\1get("\2")/g; s/(->|\.)connections_.at\("([^"]*)"\)/\1get("\2")/g; s/(->|\.)connections_.push_back/\1connect/g; s/(->|\.)connections_/\1connections()/g;'
This commit is contained in:
parent
cd6574ecf6
commit
b7dda72302
61 changed files with 1201 additions and 1201 deletions
|
@ -177,9 +177,9 @@ struct IopadmapPass : public Pass {
|
|||
for (int i = 0; i < wire->width; i++)
|
||||
{
|
||||
RTLIL::Cell *cell = module->addCell(NEW_ID, RTLIL::escape_id(celltype));
|
||||
cell->connections_[RTLIL::escape_id(portname)] = RTLIL::SigSpec(wire, i);
|
||||
cell->connections()[RTLIL::escape_id(portname)] = RTLIL::SigSpec(wire, i);
|
||||
if (!portname2.empty())
|
||||
cell->connections_[RTLIL::escape_id(portname2)] = RTLIL::SigSpec(new_wire, i);
|
||||
cell->connections()[RTLIL::escape_id(portname2)] = RTLIL::SigSpec(new_wire, i);
|
||||
if (!widthparam.empty())
|
||||
cell->parameters[RTLIL::escape_id(widthparam)] = RTLIL::Const(1);
|
||||
if (!nameparam.empty())
|
||||
|
@ -190,9 +190,9 @@ struct IopadmapPass : public Pass {
|
|||
else
|
||||
{
|
||||
RTLIL::Cell *cell = module->addCell(NEW_ID, RTLIL::escape_id(celltype));
|
||||
cell->connections_[RTLIL::escape_id(portname)] = RTLIL::SigSpec(wire);
|
||||
cell->connections()[RTLIL::escape_id(portname)] = RTLIL::SigSpec(wire);
|
||||
if (!portname2.empty())
|
||||
cell->connections_[RTLIL::escape_id(portname2)] = RTLIL::SigSpec(new_wire);
|
||||
cell->connections()[RTLIL::escape_id(portname2)] = RTLIL::SigSpec(new_wire);
|
||||
if (!widthparam.empty())
|
||||
cell->parameters[RTLIL::escape_id(widthparam)] = RTLIL::Const(wire->width);
|
||||
if (!nameparam.empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue