1GENLIB_LOSELF.3(August 16, 2002) GENLIB_LOSELF.3(August 16, 2002)
2
3
4
6 GENLIB_LOSELF - add a logical inductor to the current netlist figure
7
9 #include <genlib.h>
10
11 void GENLIB_LOSELF(type,self,scon1,scon1,name)
12 char type ;
13 double self ;
14 char ∗scon1, ∗scon1 ;
15 char ∗name ;
16
18 type Type of the inductor to be created in the current
19 figure
20
21 self Inductance value.
22
23 scon1, scon1 Name of the signals on which the given inductor
24 connectors are to be linked.
25
26 name Inductor name. The unicity of the name is not
27 checked.
28
30 LOSELF adds a logical inductor to the current working figure. This
31 inductor has each of its pin logicaly linked to the adequat signal
32 given as parameter. For the time being, the type attribut may take the
33 following value:
34
35 SELFMIM
36 for a MIM (metal) type inductor.
37
39 "GENLIB_LOSELF impossible : missing GENLIB_DEF_LOFIG"
40 No figure has been yet specified by a call to DEF_LOFIG. So it
41 isn't possible to add anything. you must call DEF_LOFIG before
42 any other netlist call.
43
45 #include <genlib.h>
46
47 int main(int argc,char ∗argv[])
48 {
49 /∗ Create a figure to work on, a parallel inductor ∗/
50 GENLIB_DEF_LOFIG("parallel_self") ;
51
52 /∗ Define interface ∗/
53 GENLIB_LOCON("i",IN,"input") ;
54 GENLIB_LOCON("f",OUT,"output") ;
55
56 /∗ Add inductors ∗/
57 GENLIB_LOSELF(SELFMIM,5.1,"input","output","self1") ;
58 GENLIB_LOSELF(SELFMIM,5.2,"input","output","self2") ;
59
60 /∗ Save all that on disk ∗/
61 GENLIB_SAVE_LOFIG() ;
62
63 return 0 ;
64 }
65
67 genlib(1), GENLIB_BUS(3), GENLIB_ELM(3), GENLIB_LOINS(3), GEN‐
68 LIB_LOCON(3).
69
70
71
72
73
74
75PROCEDURAL GENERATION LANGUAGE ASIM/LIP6 GENLIB_LOSELF.3(August 16, 2002)