mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-11 08:32:04 +00:00
kernel: big fat patch to use more ID::*, otherwise ID(*)
This commit is contained in:
parent
2d86563bb2
commit
956ecd48f7
152 changed files with 4503 additions and 4391 deletions
|
|
@ -71,7 +71,7 @@ struct TribufWorker {
|
|||
|
||||
if (cell->type.in(ID($mux), ID($_MUX_)))
|
||||
{
|
||||
IdString en_port = cell->type == ID($mux) ? ID(EN) : ID(E);
|
||||
IdString en_port = cell->type == ID($mux) ? ID::EN : ID::E;
|
||||
IdString tri_type = cell->type == ID($mux) ? ID($tribuf) : ID($_TBUF_);
|
||||
|
||||
if (is_all_z(cell->getPort(ID::A)) && is_all_z(cell->getPort(ID::B))) {
|
||||
|
|
@ -81,9 +81,9 @@ struct TribufWorker {
|
|||
|
||||
if (is_all_z(cell->getPort(ID::A))) {
|
||||
cell->setPort(ID::A, cell->getPort(ID::B));
|
||||
cell->setPort(en_port, cell->getPort(ID(S)));
|
||||
cell->setPort(en_port, cell->getPort(ID::S));
|
||||
cell->unsetPort(ID::B);
|
||||
cell->unsetPort(ID(S));
|
||||
cell->unsetPort(ID::S);
|
||||
cell->type = tri_type;
|
||||
tribuf_cells[sigmap(cell->getPort(ID::Y))].push_back(cell);
|
||||
module->design->scratchpad_set_bool("tribuf.added_something", true);
|
||||
|
|
@ -91,9 +91,9 @@ struct TribufWorker {
|
|||
}
|
||||
|
||||
if (is_all_z(cell->getPort(ID::B))) {
|
||||
cell->setPort(en_port, module->Not(NEW_ID, cell->getPort(ID(S))));
|
||||
cell->setPort(en_port, module->Not(NEW_ID, cell->getPort(ID::S)));
|
||||
cell->unsetPort(ID::B);
|
||||
cell->unsetPort(ID(S));
|
||||
cell->unsetPort(ID::S);
|
||||
cell->type = tri_type;
|
||||
tribuf_cells[sigmap(cell->getPort(ID::Y))].push_back(cell);
|
||||
module->design->scratchpad_set_bool("tribuf.added_something", true);
|
||||
|
|
@ -121,9 +121,9 @@ struct TribufWorker {
|
|||
SigSpec pmux_b, pmux_s;
|
||||
for (auto cell : it.second) {
|
||||
if (cell->type == ID($tribuf))
|
||||
pmux_s.append(cell->getPort(ID(EN)));
|
||||
pmux_s.append(cell->getPort(ID::EN));
|
||||
else
|
||||
pmux_s.append(cell->getPort(ID(E)));
|
||||
pmux_s.append(cell->getPort(ID::E));
|
||||
pmux_b.append(cell->getPort(ID::A));
|
||||
module->remove(cell);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue