mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-29 04:39:02 +00:00
Merge cd370bf6d1
into c2291c10a6
This commit is contained in:
commit
b3baba4522
79 changed files with 1002 additions and 484 deletions
|
@ -36,9 +36,9 @@ void invert_gp_dff(Cell *cell, bool invert_input)
|
|||
Const initval = cell->getParam(ID::INIT);
|
||||
if (GetSize(initval) >= 1) {
|
||||
if (initval[0] == State::S0)
|
||||
initval.bits()[0] = State::S1;
|
||||
initval.set(0, State::S1);
|
||||
else if (initval[0] == State::S1)
|
||||
initval.bits()[0] = State::S0;
|
||||
initval.set(0, State::S0);
|
||||
cell->setParam(ID::INIT, initval);
|
||||
}
|
||||
|
||||
|
@ -47,9 +47,9 @@ void invert_gp_dff(Cell *cell, bool invert_input)
|
|||
Const srmode = cell->getParam(ID(SRMODE));
|
||||
if (GetSize(srmode) >= 1) {
|
||||
if (srmode[0] == State::S0)
|
||||
srmode.bits()[0] = State::S1;
|
||||
srmode.set(0, State::S1);
|
||||
else if (srmode[0] == State::S1)
|
||||
srmode.bits()[0] = State::S0;
|
||||
srmode.set(0, State::S0);
|
||||
cell->setParam(ID(SRMODE), srmode);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue