Xod/core/clock why "isInputDirty" is used for Boolean Input

Hi,

In xod/core/clock theres is “EN” Is the clock enabled.
It is boolean and auto isEnabled = getValue<input_EN>(ctx); is used but

there is check that is used isInputDirty.
if (isRstDirty || isInputDirty<input_EN>(ctx))

Is it used for pulse not boolean?

Thanks

Looks like that code is to handle initialization needed when EN state changes, so it is used as a boolean, but the implementation also needs to know when EN state changes (so kind of treated like a pulse for some of the code).

1 Like