mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-15 13:28:59 +00:00
Remove (* init *) entry when consumed into SRL
This commit is contained in:
parent
a1f78eab04
commit
3d7f4aa0c8
|
@ -52,7 +52,9 @@ void run_fixed(xilinx_srl_pm &pm)
|
||||||
log_assert(Q.wire);
|
log_assert(Q.wire);
|
||||||
auto it = Q.wire->attributes.find(ID(init));
|
auto it = Q.wire->attributes.find(ID(init));
|
||||||
if (it != Q.wire->attributes.end()) {
|
if (it != Q.wire->attributes.end()) {
|
||||||
initval.append(it->second[Q.offset]);
|
auto &i = it->second[Q.offset];
|
||||||
|
initval.append(i);
|
||||||
|
i = State::Sx;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
initval.append(State::Sx);
|
initval.append(State::Sx);
|
||||||
|
@ -118,7 +120,9 @@ void run_variable(xilinx_srl_pm &pm)
|
||||||
log_assert(Q.wire);
|
log_assert(Q.wire);
|
||||||
auto it = Q.wire->attributes.find(ID(init));
|
auto it = Q.wire->attributes.find(ID(init));
|
||||||
if (it != Q.wire->attributes.end()) {
|
if (it != Q.wire->attributes.end()) {
|
||||||
initval.append(it->second[Q.offset]);
|
auto &i = it->second[Q.offset];
|
||||||
|
initval.append(i);
|
||||||
|
i = State::Sx;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
initval.append(State::Sx);
|
initval.append(State::Sx);
|
||||||
|
|
Loading…
Reference in a new issue