2)
v1 =
N v23)
i1 v1 =
i2 v2Substituting (2) into (3) gives
4)
i1 N v2 =
i2 v2or
5)
i1 N =
i2Equations (2) and (5) together are the equations for an ideal transformer. I believe the following should work as an ideal transformer model in Verilog-A.
Code:module ideal_transformer(pp, pn, sp, sn);
parameter real N;
electrical pp, pn, sp, sn;
analog begin
V(sp, sn) <+ N*V(pp, pn);
I(pp, pn) <+ N*I(sp, sn);
end
endmodule
-Ken