module: clocked_delay
parameters:
inputs:  double in double clk
outputs:  double out
classes: EdgeDetect edge1();
static_variables: double prev_in
init: prev_in = 0.0;
code:
if (edge1.inp(clk))
  {
   out = prev_in;
   prev_in = in;
  }
