mirror of https://github.com/YosysHQ/yosys.git
CREG to check for \keep
This commit is contained in:
parent
c0bb1d22e8
commit
bd8661e024
|
@ -87,6 +87,9 @@ code
|
|||
reject;
|
||||
if (c.wire->get_bool_attribute(\keep))
|
||||
reject;
|
||||
Const init = c.wire->attributes.at(\init, State::Sx);
|
||||
if (!init.is_fully_undef() && !init.is_fully_zero())
|
||||
reject;
|
||||
}
|
||||
endcode
|
||||
|
||||
|
|
Loading…
Reference in New Issue