// Module differentiates the input voltage and applies the result to the output module V_differentiator(in,out); input in; output out; voltage in,out; parameter real kd = 1; analog V(out) <+ kd*ddt(V(in)); endmodule