phref(3) [x11r4 man page]
PHREF(3) MBK PHYSICAL STRUCTURE DEFINITIONS PHREF(3) NAME
phref - mbk physical reference DESCRIPTION
The phref structure is used to describe a reference belonging to a symbolic layout model, see phfig(3) for details. A reference allows to name a point anywhere in a given model. It may then be seen as a name, and not anymore as a couple of coordinates. References are mostly used for cell programming and multi-access connector representation. The declarations needed to work on phref are available in the header file "/labo/include/mph402.h", where '402' is the actual mbk version. The following C structure supports the description of the reference : typedef struct phref { struct phref *NEXT; char *FIGNAME; char *NAME; long XREF,YREF; struct ptype *USER; } phref_list; NEXT Pointer to the next reference in the list. FIGNAME Kind of reference. Gives information about the possible uses of the object. Some FIGNAME are in use today : "ref_con" for multi-access connectors "ref_ref" for all other uses NAME Name of the reference. The refence is identified by its name, so it should be unique at a given hierarchical level. XREF, YREF Coordinates of the point beeing referenced. USER Pointer to a ptype list, see ptype(3) for details, that is a general purpose pointer used to share informations on the reference. SEE ALSO
mbk(1), addphref(3), getphref(3), delphref(3), phfig(3), ptype(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. ASIM
/LIP6 October 1, 1997 PHREF(3)
Check Out this Related Man Page
ADDPHREF(3) MBK PHYSICAL FUNCTIONS ADDPHREF(3) NAME
addphref - create a physical reference ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite 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" phref_list *addphref(ptfig, type, name, x, y) phfig_list *ptfig; char *type; char *name; long x, y; PARAMETERS
ptfig Pointer to the figure in which the reference should be added type Reference type name Reference name x, y Coordinates of the center of the reference. DESCRIPTION
addphref creates a new reference whose center is at the given coordinates, and adds it to the list of references pointed to by ptfig->PHREF. The new reference is added in front of the list, and becomes itself the list head. The parameters type, name, x and y fill respectivly the FIGNAME, NAME, XREF and YREF fields of the phref structure. The types may have any value, but only two type are now recognized by tools based upon mbk : "ref_con" for multi-access connectors "ref_ref" for cell programming For details on the structure, see phref(3). RETURN VALUE
addphref returns a pointer to the newly created reference. EXAMPLE
#include "mph.h" phref_list *ref_dup(pfd, pfs) /* duplicate refs */ phfig_list *pfd, *pfs; { phref_list *pr; for (pr = pfs->phref; pr != NULL; pr = pr->NEXT) addphref(pfd, pr->FIGNAME, pr->NAME, pr->XREF, pr->YREF); return pfd->PHREF; } SEE ALSO
mbk(1), phfig(3), phref(3), getphref(3), delphref(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. ASIM
/LIP6 October 1, 1997 ADDPHREF(3)