GENLIB_BUS.3(October 1, 1997) GENLIB_BUS.3(October 1, 1997)
GENLIB_BUS - Creates a bus name for netlist
char *GENLIB_BUS(busname, from, to);
long from, to;
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : firstname.lastname@example.org
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
GENLIB_BUS Creates a set of names, based upon a common name, valid for the genlib netlist functions that manipulate the signal, and/or con-
nector, concept. They are:
The from, to arguments give the boundaries of the bus to be created, both of them beeing included in the set. The function allows increas-
ing 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
readability purposes, the "[n:m]" construct.
int b = 0;
int e = 12;
/* Create a figure to work on */
/* 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", EOL);
/* Save all that on disk */
SEE ALSO genlib(1), GENLIB_ELM(3).
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
PROCEDURAL GENERATION LANGUAGE ASIM/LIP6 GENLIB_BUS.3(October 1, 1997)