Table of Contents

Name

addphref - create a physical reference

Origin

This software belongs to the ALLIANCE CAD system from the CAO-VLSI team at ASIM/LIP6/UPMC laboratory.
LIP6/ASIM
University P. et M. Curie 4, place Jussieu 75252 PARIS Cedex 05 FRANCE
Fax : {33/0} 1.44.27.62.86
E-mail support : alliance-support@asim.lip6.fr

Synopsys

#include mph402.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 mph402.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/LIP6/UPMC laboratory, cao-vlsi research team.
We need your feedbak to improve documentation and tools. If you find bugs, please fill-in the form at http://asim.lip6.fr/alliance/support/bug-report/ Thanks for doing this.


Table of Contents

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 26 May 2000.