module: meas_clk_period
inputs: double_interp clk
outputs: double period_val
classes:  EdgeMeasure sig_edge()
init:
period_val = 0.0;
code:
sig_edge.inp(clk);
if (sig_edge.out > 1e-30)
   period_val = Ts*sig_edge.out;
