frac32 in
int32.positive s
frac32 o0
frac32 o1
int32_t hold0;
int32_t hold1;
int32_t prev;
hold0 = 0;
hold1 = 0;
prev = 0;
if ((inlet_s == 0) && (inlet_in != prev)) {
hold0 = inlet_in;
outlet_o0 = inlet_in;
} else {
outlet_o0 = hold0;
}
if ((inlet_s == 1) && (inlet_in != prev)) {
hold1 = inlet_in;
outlet_o1 = inlet_in;
} else {
outlet_o1 = hold1;
}
prev = inlet_in;