1GENLIB_LOTRS.3(October 1, 1997) GENLIB_LOTRS.3(October 1, 1997)
2
3
4
6 GENLIB_LOTRS - adds a logical transistor to the current netlist figure
7
9 #include <genlib.h>
10 void GENLIB_LOTRS(type,width,length,grid,source,drain)
11 char type;
12 long width, length;
13 char ∗grid, ∗source, ∗drain;
14
16 type Type of the transistor to be created in the current
17 figure
18
19 width, length Size of the transistor
20
21 grid, source, drain Name of the signals on which the given transistor
22 connector are to be linked
23
25 LOTRS add a logical transistor to the current working figure. This
26 transistor has each of its pin logicaly linked to the adequat signal
27 given as parameter. The type attribut may take the following values:
28
29 TRANSN for a N type mos transistor.
30
31 TRANSP for a P type mos transistor.
32
34 "GENLIB_LOTRS impossible : missing GENLIB_DEF_LOFIG"
35 No figure has been yet specified by a call to DEF_LOFIG. So it
36 isn't possible to add anything. you must call DEF_LOFIG before
37 any other netlist call.
38
40 #include <genlib.h>
41 main()
42 {
43 /∗ Create a figure to work on, an inverter ∗/
44 GENLIB_DEF_LOFIG("n1");
45 /∗ define interface ∗/
46 GENLIB_LOCON("i", IN, "input");
47 GENLIB_LOCON("f", OUT, "output");
48 GENLIB_LOCON("vdd", IN, "vdd");
49 GENLIB_LOCON("vss", IN, "vss");
50 /∗ Place transistors ∗/
51 GENLIB_LOTRS(TRANSP, 5, 4, "input", "vdd", "output");
52 GENLIB_LOTRS(TRANSN, 2, 4, "input", "vss", "output");
53 /∗ Save all that on disk ∗/
54 GENLIB_SAVE_LOFIG();
55 }
56
58 genlib(1), GENLIB_BUS(3), GENLIB_ELM(3), GENLIB_LOINS(3), GEN‐
59 LIB_LOCON(3).
60
61
62
63
64
65
66PROCEDURAL GENERATION LANGUAGE ASIM/LIP6 GENLIB_LOTRS.3(October 1, 1997)