mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-23 09:05:32 +00:00
zinit: resolve one more comment by @mwkmwkmwk
This commit is contained in:
parent
c6afce7638
commit
b75c5bf743
2 changed files with 13 additions and 4 deletions
|
@ -153,9 +153,11 @@ struct ZinitPass : public Pass {
|
|||
else if (cell->type.in(ID($_DFF_NN0_), ID($_DFF_NN1_), ID($_DFF_NP0_), ID($_DFF_NP1_),
|
||||
ID($_DFF_PN0_), ID($_DFF_PN1_), ID($_DFF_PP0_), ID($_DFF_PP1_)))
|
||||
{
|
||||
std::string t = cell->type.str();
|
||||
t[8] = (t[8] == '0' ? '1' : '0');
|
||||
cell->type = t;
|
||||
if (initval == State::S1) {
|
||||
std::string t = cell->type.str();
|
||||
t[8] = (t[8] == '0' ? '1' : '0');
|
||||
cell->type = t;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue