Query: genlib_elm
OS: linux
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GENLIB_ELM.3(October 1, 1997) GENLIB_ELM.3(October 1, 1997)NAMEGENLIB_ELM - Creates a single element bus name for netlistSYNOPSYS#include <genlib.h> char *GENLIB_ELM(busname, index); char *busname; long index;ORIGINThis software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.frPARAMETERSbusname Common signal name for a bus index Index of the demanded signal belonging to the busDESCRIPTIONELM Creates a single element bus names valid for the genlib netlist functions that manipulate the signal, and/or connector, concept. They are: LOINS(3) LOCON(3) The index argument gives the index of the name to be created. This function has a constant equivalent, it means that if the index value is known at compilation time, one should better use, for read- ability purposes, the "[n]" 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, BUS("sig", b, e); GENLIB_LOCON("o[2:0]", OUTPUT, "sigout[4:6]"); /* Place an instance */ GENLIB_LOINS("model","instance", GENLIB_ELM("sig", e/2), "sigout[6]", EOL); /* Save all that on disk */ GENLIB_SAVE_LOFIG(); }SEE ALSOgenlib(1), GENLIB_BUS(3).BUG REPORTThis tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools.PROCEDURAL GENERATION LANGUAGEASIM/LIP6 GENLIB_ELM.3(October 1, 1997)