module: int_first_ord_diff
parameters:
inputs: int in, double clk
outputs:  int out
static_variables: int prev_in
classes: EdgeDetect clkedge()
init: 
prev_in = 0;
code:
if (clkedge.inp(clk))
   {
    out = in - prev_in;
    prev_in = in;
   }
