module: dffreset
parameters:
inputs: double_interp d double_interp clk double_interp r
outputs: double_interp q double_interp qb
classes: Reg reg1()
static_variables: double q_prev
init:
q = -1.0;
qb = 1.0;
q_prev = -1.0;
 
code:
q = q_prev;
qb = -q;

reg1.inp(d,clk,-1.0,r);
q_prev=reg1.out;

