mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-12 12:41:28 +00:00
Update techlibs to avoid bits()
This commit is contained in:
parent
360a625785
commit
975bbf2d6d
8 changed files with 22 additions and 26 deletions
|
@ -40,9 +40,8 @@ void run_fixed(xilinx_srl_pm &pm)
|
|||
log_assert(Q.wire);
|
||||
auto it = Q.wire->attributes.find(ID::init);
|
||||
if (it != Q.wire->attributes.end()) {
|
||||
auto &i = it->second.bits()[Q.offset];
|
||||
initval.append(i);
|
||||
i = State::Sx;
|
||||
initval.append(it->second[Q.offset]);
|
||||
it->second.set(Q.offset, State::Sx);
|
||||
}
|
||||
else
|
||||
initval.append(State::Sx);
|
||||
|
@ -121,9 +120,8 @@ void run_variable(xilinx_srl_pm &pm)
|
|||
log_assert(Q.wire);
|
||||
auto it = Q.wire->attributes.find(ID::init);
|
||||
if (it != Q.wire->attributes.end()) {
|
||||
auto &i = it->second.bits()[Q.offset];
|
||||
initval.append(i);
|
||||
i = State::Sx;
|
||||
initval.append(it->second[Q.offset]);
|
||||
it->second.set(Q.offset, State::Sx);
|
||||
}
|
||||
else
|
||||
initval.append(State::Sx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue