mirror of https://github.com/YosysHQ/yosys.git
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);
|
||||
auto it = Q.wire->attributes.find(ID(init));
|
||||
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
|
||||
initval.append(State::Sx);
|
||||
|
@ -118,7 +120,9 @@ 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()) {
|
||||
initval.append(it->second[Q.offset]);
|
||||
auto &i = it->second[Q.offset];
|
||||
initval.append(i);
|
||||
i = State::Sx;
|
||||
}
|
||||
else
|
||||
initval.append(State::Sx);
|
||||
|
|
Loading…
Reference in New Issue