module: first_order_difference
parameters: double kd
inputs: double in double clk
outputs: double out
classes: Filter diff("1-z^-1","1"), EdgeDetect clkedge()
static_variables:
init:
code:
if (clkedge.inp(clk))
  {
  diff.inp(in);
  out=kd*diff.out;
  }
 
