Relay

From Vlsiwiki
Revision as of 22:44, 8 November 2009 by Test (Talk | contribs) (Created page with 'module relay (c1, c2, pin, nin) ; inout c1, c2 ; input pin, nin electrical c1, c2, pin, nin; parameter real r=1 ; analog begin @(cross(V(pin,nin))) discontinuity(0) ; if (V(pi…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

module relay (c1, c2, pin, nin) ; inout c1, c2 ; input pin, nin electrical c1, c2, pin, nin; parameter real r=1 ; analog begin @(cross(V(pin,nin))) discontinuity(0) ; if (V(pin,nin) >= 0) I(c1,c2) <+ V(c1,c2)/r; else end endmodule