|
NAMEaddlotrs - create a logical transistor See the file man1/alc_origin.1. SYNOPSIS#include "mlo.h" lotrs_list ∗addlotrs(ptfig, type, x, y, width, length, ps, pd, xs, xd, ptgrid, ptsource, ptdrain, ptbulk, name) lofig_list ∗ptfig; char type; long x, y; unsigned short width, length; unsigned short ps, pd; unsigned short xs, xd; losig_list ∗ptgrid, ∗ptsource, ∗ptdrain, ∗ptbulk; const char ∗name; PARAMETERS
DESCRIPTIONaddlotrs creates a new transistor, and adds it to the list
of transistors pointed to by ptfig->LOTRS. The new transistor is
added in front of the list, and becomes itself the list head.
The x, y, width , length, ps,
pd, xs and xd, arguments fill respectivly the X,
Y, WIDTH, LENGTH, PS, PD, XS and
XD fields.
RETURN VALUEaddlotrs returns a pointer to the newly created transistor. ERRORS"∗∗∗ mbk error ∗∗∗ illegal transistor type : type" The type is not a legal transistor type.
EXAMPLE
#include "mlo.h"
void n1_y() /∗ transistor netlist of an inverter ∗/
{
lofig_list ∗pt;
losig_list ∗in, ∗out, ∗vdd, ∗vss;
pt = addlofig("n1_y");
addlocon(pt, "in", in = givelosig(pt, 0), IN);
addlocon(pt, "out", out = givelosig(pt, 1), OUT);
addlocon(pt, "vdd", vdd = givelosig(pt, 2), IN);
addlocon(pt, "vss", vdd = givelosig(pt, 3), IN);
addlotrs(pt, TRANSN, 0, 0, 6, 1, in, vss, out, vss, trn_n1_y);
addlotrs(pt, TRANSP, 0, 0, 12, 1, in, vdd, out, vdd, trp_n1_y);
}
SEE ALSOmbk(1), lofig(3), lotrs(3), locon(3), dellotrs(3). See the file man1/alc_bug_report.1.
|