Table of Contents

Name

getphfig - give back a pointer to a phfig

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 mph403.h"
phfig_list *getphfig(figname, mode)
char *figname;
char mode;

Parameters

figname
Name of the figure to be created mode Demanded mode for the figure

Description

getphfig returns a pointer to the figure called figname with the warranty that the expected information is present in memory. If mode is `A' then the figure has all its lists filled, else the figure may either be complete or interface only. This function allows to completly mask disk access for applications programs. If the figure is in memory, with the specified mode, then the function returns the appropriate pointer. Else, the function performs a call to the loadphfig(3) and returns a pointer to the loaded figure.

Return Value

getphfig returns a pointer to the wanted figure.

Errors

getphfig cannot give any errors, but the subsequent calls it performs to parsers do. So the source of trouble may be the call to getphfig. See loadphfig(3) for details.

Example

#include mph403.h"
phfig_list *na2_y()
{
/* find in memory or load from disk na2_y */ return getphfig("na2_y", `A');
}

See Also

mbk(1) , phfig(3) , addphfig(3) , delphfig(3) , loadphfig(3) , savephfig(3) , flattenphfig(3) , rflattenphfig(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.