bool32 data
bool32 reset
bool32.rising clock input
bool32 output
int last_clock;
int data;
last_clock = 0;
data = 0;
if ((inlet_clock > 0) && (last_clock <= 0)) {
data = (inlet_data > 0) ? (1 << 27) : 0;
}
if (inlet_reset > 0)
data = 0;
last_clock = inlet_clock;
outlet_o = data;