gate-copy6(pulse)

hio/nwt-gus-hi/gate-copy6(pulse)

Allows values to pass through only if EN pin is set to true
gate-copy6(pulse)
@/gate-copy6(pulse)
Allows values to pass through only if EN pin is set to true
INpulse
ENboolean
Whether values should pass through
gate-copy6(pulse)
IN
OUT
EN
OUTpulse
To use the node in your project you should have the hio/nwt-gus-hi library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

node {
    void evaluate(Context ctx) {
        if (getValue<input_EN>(ctx) && isInputDirty<input_IN>(ctx))
            emitValue<output_OUT>(ctx, true);
    }
}

Tabular tests

ENINOUT
falseno-pulseno-pulse
falsepulseno-pulse
trueno-pulseno-pulse
truepulsepulse
truepulsepulse
trueno-pulseno-pulse
falseno-pulseno-pulse