|
From: <Mic...@al...> - 2007-01-03 06:55:32
|
Hello,
it is not neccessary to create these files with a text editor.
Indeed the format is not intented to be created this way.
The best way is the following:
Just create the component as a subcircuit and paint a nice
symbol for it (see online help). Then build a library from
that subcircuit with "Project->Create library..." from the
menu. Now a user library was created in "~/.qucs/user_lib/".
You can have look into it with a text editor if you like,
or just use it with the "component library" tool.
Have fun,
Michael
>
> Dear QUCS-Team!
>
> Since I want to add a library file including
> RF-Transistor models together with parasitics
> of the housing (e.g. SOTxxx) I started to create
> a test file.
> However, I have some questions:
> At the end of the message I attached an excerpt
> of testlibrary.lib. (An actual test library works,
> but I'm not sure whether the results are true.)
>
> 1. For the BJT in the definition block
> there are four terminals "_net1 _net2 _net3 _net2".
> Which one is defined to be the base, emitter and collector?
>
> 2. How are the terminals of the new device
> "_net1 _net2 _net3" related with the port definition
> in the DefaultSymbol block?
> (E.g. is the first port the first terminal?)
>
> If you could answer these question I could continue
> to add such a library.
>
>
>
> Cordially
>
> Thomas
>
> P.S.: What was confusing me at the beginning:
> Within the DefaultSymbol block, only ONE space character
> is allowed between two values. For the BJT definition,
> all parameters must be in ONE line. A line break in the
> editor is not allowed.
>
>
> ================================================
> <Qucs Library 0.0.9 "RF-BJT-SOT">
>
> <DefaultSymbol>
> <.ID 20 20 TestDevice>
> <Line -5 -5 0 10 #000080 1 1>
> <Line -5 -5 10 5 #000080 1 1>
> <Line -5 5 10 -5 #000080 1 1>
> <Line 20 -6 6 0 #ff0000 1 1>
> ....
> <Line 22 -9 0 6 #ff0000 1 1>
> <.PortSym 0 -30 1 270>
> <.PortSym -30 0 2 0>
> <.PortSym 0 30 3 90>
> </DefaultSymbol>
>
>
> <Component BJT-SOT>
> <Description>
> BJT in SOT
> Manufacturer: ???
> </Description>
> <Model>
> .Def:RFBJT _net1 _net2 _net3
> BJT:T1 _net1 _net2 _net3 _net2 Type="npn" Is="1e-16" Nf="1" Nr"1"
> Ikf="0" Ikr="0" Vaf="100" Var="0"
> Ise="0" Ne="1.5" Isc="0" Nc="2" Bf="160" Br="1" Rbm="0" Irb
> ="0" Rc="0" Re="0" Rb="100" Cje="3p" Vje="0.
> 75" Mje="0.33" Cjc="2p" Vjc="0.75" Mjc="0.33" Xcjc="1.0" Cjs="2
> p" Vjs="0.75" Mjs="0" Fc="0.5" Tf="0.3n"
> Xtf="0.0" Vtf="0.0" Itf="0.0" Tr="6n" Temp="26.85" Kf="0.0" Af
> ="1.0" Ffe="1.0" Kb="0.0" Ab="1.0" Fb="1.0
> " Ptf="0.0"
> C:C1 _net1 _net2 C="0.5 pF"
> .Def:End
> </Model>
> </Component>
> ================================================
> --
>
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
opinions on IT & business topics through brief surveys - and earn
> cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DE
> VDEV
> _______________________________________________
> Qucs-help mailing list
> Quc...@li...
> https://lists.sourceforge.net/lists/listinfo/qucs-help
>
|