table of contents
ADDPHCON(3) | MBK PHYSICAL FUNCTIONS | ADDPHCON(3) |
NAME¶
addphcon - create a physical connector
ORIGIN¶
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Université Pierre et Marie CURIE, in Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS¶
#include "mph.h" phcon_list ∗addphcon(ptfig, orient, conname, x, y, layer, width) phfig_list ∗ptfig; char orient; char ∗conname; long x, y; char layer; long width;
PARAMETERS¶
DESCRIPTION¶
addphcon creates a new connector called conname and
adds it to the list of connectors pointed to by ptfig->PHCON. The
new connector is added in front of the list, and becomes itself the list
head.
The parameters conname, orient, x, y,
layer, width fill respectivly the NAME, ORIENT,
XCON, YCON, LAYER, WIDTH fields of the
phcon structure. See phcon(3) for details.
The INDEX field is computed by the addphcon function in order to
warranty index unicity. A topological sort is performed, checking x,
then y, then the layer. So for a given figure, each connector
will have a constant INDEX.
The x, y coordinates must be placed inside the butment
box of the figure.
The width is a layer extension that takes place in parallel to the
connector face.
For a list of valid orient and layers, see locon(3).
RETURN VALUE¶
addphcon returns a pointer to the newly created connector.
ERRORS¶
"∗∗∗ mbk error ∗∗∗ illegal addphcon unknow layer layer in conname"
EXAMPLE¶
#include "mph.h" phcon_list ∗du_con(ptfig, ptcon) /∗ duplicate connector ∗/ phfig_list ∗ptfig; phcon_list ∗ptcon; {
/∗ the index depends from what's in ptfig->PHCON, not from me ∗/
return addphcon(ptfig, ptcon->ORIENT, ptcon->NAME,
ptcon->XCON, ptcon->YCON,
ptcon->LAYER, ptcon->WIDTH); }
SEE ALSO¶
mbk(1), phfig(3), phcon(3), getphcon(3), delphcon(3), locon(3).
BUG REPORT¶
This tool is under development at the ASIM department of
the LIP6 laboratory.
We need your feedback to improve documentation and tools.
October 1, 1997 | ASIM/LIP6 |