module: latch1
parameters: 
inputs:  double_interp latch double_interp d 
outputs:  double_interp q
static_variables: double q_prev
classes:  Latch lat1()
init: 
q = -1.0;
q_prev = -1.0;

code:
q = q_prev;

lat1.inp(d,latch);
q_prev = lat1.out; 
