Table of Contents

Name

addphvia - create a physical via

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"
phvia_list *addphvia(ptfig, viatype, x, y) phfig_list *ptfig;
char viatype;
long x, y;

Parameters

ptfig
Pointer to the figure in which the via should be added
viatype
Contact type
x, y
Coordinates of the center of the via.

Description

addphvia creates a new via whose center is at the given coordinates, and adds it to the list of vias pointed to by ptfig->PHVIA. The new via is added in front of the list, and becomes itself the list head. The parameters viatype, x and y fill respectivly the TYPE, XVIA and YVIA fields of the phvia structure.
For a list of valid viatypes, and details on the structure, see phvia(3) .

Return Value

addphvia returns a pointer to the newly created via.

Errors

*** mbk error *** illegal addphvia viatype : viatype at x, y" The via type is not a predefined contact. For a list of legal via types, see phvia(3) .

Example

#include mph402.h"
phvia_list *via_dup(pfd, pfs) /* duplicate vias */ phfig_list *pfd, *pfs;
{
phvia_list *pv;
for (pv = pfs->phvia; pv != NULL; pv = pv->NEXT)

addphvia(pfd, pv->TYPE, ps->XVIA, ps->YVIA); return pfd->PHVIA;
}

See Also

mbk(1) , phfig(3) , phvia(3) , delphvia(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.