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

FreeBSD Manual Pages

  
 
  

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

NAME
       GENLIB_BUS - Creates a bus name for netlist

SYNOPSYS
       #include	<genlib.h>
       char *GENLIB_BUS(busname, from, to);
       char *busname;
       long from, to;

PARAMETERS
       busname		   Common signal name for a bus

       from		   Starting index of the set of	signal,	from included

       to		   Ending index	of the set of signal, to included

DESCRIPTION
       GENLIB_BUS  Creates a set of names, based upon a	common name, valid for
       the genlib netlist functions that manipulate the	signal,	and/or connec-
       tor, concept.  They are:
	      LOINS(3)
	      LOCON(3)
       The  from,  to  arguments give the boundaries of	the bus	to be created,
       both of them beeing included in the set.	The function allows increasing
       or decreasing order busses, as one could	expect.
       This  function has a constant equivalent, it means that if the from, to
       values are known	at compilation time, one should	better use, for	 read-
       ability purposes, the "[n:m]" construct.

EXAMPLE
       #include	<genlib.h>
       main()
       {
       int b = 0;
       int e = 12;
	    /* Create a	figure to work on  */
	    GENLIB_DEF_LOFIG("mycell");
	    /* define interface	 */
	    GENLIB_LOCON(GENLIB_BUS("i", b, e),	INPUT, GENLIB_BUS("sig", b, e);
	    GENLIB_LOCON("o[2:0]", OUTPUT, "sigout[4:6]");
	    /* Place an	instance */
	    GENLIB_LOINS("model","instance", GENLIB_BUS("sig", e/2), "sigout[6]", EOL);
	    /* Save all	that on	disk */
	    GENLIB_SAVE_LOFIG();
       }

SEE ALSO
       genlib(1), GENLIB_ELM(3).

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

NAME | SYNOPSYS | PARAMETERS | DESCRIPTION | EXAMPLE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=GENLIB_BUS&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help