serial-parallel

cesars/utils/serial-parallel

No description
serial-parallel
@/serial-parallel
D-INgeneric t1
UPDpulse
serial-parallel
D1
D2
D3
D4
D-OUT
TICK
D-IN
UPD
TICKpulse
D-OUTgeneric t1
D4generic t1
D3generic t1
D2generic t1
D1generic t1
To use the node in your project you should have the cesars/utils 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(!isInputDirty<input_UPD>(ctx)) return;

        auto inValue0 = getValue<input_D_IN>(ctx);
        auto inValue1 = getValue<output_D1>(ctx);
        auto inValue2 = getValue<output_D2>(ctx);
        auto inValue3 = getValue<output_D3>(ctx);
        auto inValue4 = getValue<output_D4>(ctx);

        emitValue<output_D1>(ctx, inValue0);
        emitValue<output_D2>(ctx, inValue1);
        emitValue<output_D3>(ctx, inValue2);
        emitValue<output_D4>(ctx, inValue3);
        emitValue<output_D_OUT>(ctx, inValue4);
        emitValue<output_TICK>(ctx, 1);
    }
}