mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-02 09:20:23 +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
|
@ -74,34 +74,34 @@ struct AnlogicEqnPass : public Pass {
|
|||
{
|
||||
for (auto cell : module->selected_cells())
|
||||
{
|
||||
if (cell->type == "\\AL_MAP_LUT1")
|
||||
if (cell->type == ID(AL_MAP_LUT1))
|
||||
{
|
||||
cell->setParam("\\EQN", init2eqn(cell->getParam("\\INIT"),1));
|
||||
cell->setParam(ID(EQN), init2eqn(cell->getParam(ID::INIT),1));
|
||||
cnt++;
|
||||
}
|
||||
if (cell->type == "\\AL_MAP_LUT2")
|
||||
if (cell->type == ID(AL_MAP_LUT2))
|
||||
{
|
||||
cell->setParam("\\EQN", init2eqn(cell->getParam("\\INIT"),2));
|
||||
cell->setParam(ID(EQN), init2eqn(cell->getParam(ID::INIT),2));
|
||||
cnt++;
|
||||
}
|
||||
if (cell->type == "\\AL_MAP_LUT3")
|
||||
if (cell->type == ID(AL_MAP_LUT3))
|
||||
{
|
||||
cell->setParam("\\EQN", init2eqn(cell->getParam("\\INIT"),3));
|
||||
cell->setParam(ID(EQN), init2eqn(cell->getParam(ID::INIT),3));
|
||||
cnt++;
|
||||
}
|
||||
if (cell->type == "\\AL_MAP_LUT4")
|
||||
if (cell->type == ID(AL_MAP_LUT4))
|
||||
{
|
||||
cell->setParam("\\EQN", init2eqn(cell->getParam("\\INIT"),4));
|
||||
cell->setParam(ID(EQN), init2eqn(cell->getParam(ID::INIT),4));
|
||||
cnt++;
|
||||
}
|
||||
if (cell->type == "\\AL_MAP_LUT5")
|
||||
if (cell->type == ID(AL_MAP_LUT5))
|
||||
{
|
||||
cell->setParam("\\EQN", init2eqn(cell->getParam("\\INIT"),5));
|
||||
cell->setParam(ID(EQN), init2eqn(cell->getParam(ID::INIT),5));
|
||||
cnt++;
|
||||
}
|
||||
if (cell->type == "\\AL_MAP_LUT6")
|
||||
if (cell->type == ID(AL_MAP_LUT6))
|
||||
{
|
||||
cell->setParam("\\EQN", init2eqn(cell->getParam("\\INIT"),6));
|
||||
cell->setParam(ID(EQN), init2eqn(cell->getParam(ID::INIT),6));
|
||||
cnt++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue