The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 8:44pm
Pages: 1
Send Topic Print
Truly bidirectional ideal transformer in Verilog-A (Read 3790 times)
gmork_0
New Member
*
Offline



Posts: 3
Prague
Truly bidirectional ideal transformer in Verilog-A
Nov 27th, 2008, 2:30am
 
Hi,

In Spectre, there is an ideal transformer component (called transformer). This one is "truly" bidirectional - one can force the current or voltage (connect ideal current or voltage source) to either primary or secondary winding.

i just wondered, if such a component can be written in Verilog-A as well.My best try was:

module idealTransformer(pLeft, nLeft, pRight, nRight);
 parameter real ratio = 2 from (0:inf);

 inout pLeft, nLeft, pRight, nRight;
 electrical pLeft, nLeft, pRight, nRight;

 analog begin
     V(pRight,nRight) <+ ratio*V(pLeft, nLeft);
     I(pLeft,nLeft) <+ -ratio*I(pRight, nRight);
 end
endmodule

,what works fine for real loading of ports. However, one cannot e.g. connect the ideal voltage source to the pRight, nRight ports.

Thanks for comments,

Miro



Back to top
 
 
View Profile   IP Logged
Geoffrey_Coram
Senior Fellow
******
Offline



Posts: 1999
Massachusetts, USA
Re: Truly bidirectional ideal transformer in Verilog-A
Reply #1 - Dec 3rd, 2008, 5:34am
 
I replaced your V line with an indirect assignment:

V(pRight,nRight) : V(pRight,nRight) == ratio*V(pLeft, nLeft);

and it seems to work with a v-source on either side.
Back to top
 
 

If at first you do succeed, STOP, raise your standards, and stop wasting your time.
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.