module thevenin (p, n); electrical p, n; parameter real vth=0; parameter real rth=1; analog begin V(p,n) <+ vth + rth*I(p,n); end endmodule