mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-20 04:43:40 +00:00
CREG to check for \keep
This commit is contained in:
parent
c0bb1d22e8
commit
bd8661e024
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ code
|
||||||
reject;
|
reject;
|
||||||
if (c.wire->get_bool_attribute(\keep))
|
if (c.wire->get_bool_attribute(\keep))
|
||||||
reject;
|
reject;
|
||||||
|
Const init = c.wire->attributes.at(\init, State::Sx);
|
||||||
|
if (!init.is_fully_undef() && !init.is_fully_zero())
|
||||||
|
reject;
|
||||||
}
|
}
|
||||||
endcode
|
endcode
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue