Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
GENLIB_DEF_PHINS.3(October 1, 1997)	   GENLIB_DEF_PHINS.3(October 1, 1997)

NAME
       GENLIB_DEF_PHINS	- define a new reference instance

SYNOPSIS
       #include	<genlib.h>
       void GENLIB_DEF_PHINS(instancename);
       char *instancename;

PARAMETERS
       instancename	   Defines the instance	called instancename as the new
			   "reference instance"

DESCRIPTION
       DEF_PHINS  define  the new "reference instance",	used as	starting point
       in the relative placement functions of genlib. It's regarding the abut-
       ment box	of the instance	instancename that the next instance  is	 going
       to  be placed, if using the appropriate functions. Notice that the more
       recently	placed	instance  becomes  automatically  the  "reference  in-
       stance",	if DEF_PHINS isn't called.

ERRORS
       "GENLIB_DEF_PHINS impossible : missing GENLIB_DEF_PHFIG"
	      No  figure  has been yet specified by a call to DEF_PHFIG. So it
	      isn't possible to	refer to an instance inside it.	 you must call
	      DEF_PHFIG	before any other layout	action.
       "instance instancename doesn't exist in current figure"
	      The instance instancename	hasn't currently been  placed  in  the
	      figure, so it's impossible do to any placement from it.

EXAMPLE
       #include	<genlib.h>
       main()
       {
	    /* Create a	figure to work on  */
	    GENLIB_DEF_PHFIG("cell");
	    /* Place an	instance */
	    GENLIB_PLACE("model","i1", NOSYM,0L,0L);
	    GENLIB_PLACE("model","i2", NOSYM,120L,40L);
	    GENLIB_DEF_PHINS("i1");
	    GENLIB_PLACE_TOP("model2", "i3", NOSYM);
	    GENLIB_DEF_AB(0, 0,	0, 0);
	    /* Save all	that on	disk */
	    GENLIB_SAVE_PHFIG();
       }

SEE ALSO
       genlib(1), GENLIB_PLACE(3), GENLIB_PLACE_TOP(3),	GENLIB_PLACE_RIGHT(3),
       GENLIB_PLACE_LEFT(3),  GENLIB_PLACE_BOTTOM(3), GENLIB_SC_PLACE(3), GEN-
       LIB_SC_TOP(3),  GENLIB_SC_RIGHT(3),  GENLIB_SC_LEFT(3),	GENLIB_SC_BOT-
       TOM(3).

PROCEDURAL GENERATION LANGUAGE	   ASIM/LIPGENLIB_DEF_PHINS.3(October 1, 1997)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=GENLIB_DEF_PHINS&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help