1GENLIB_ELM.3(October 1, 1997)                    GENLIB_ELM.3(October 1, 1997)
2
3
4

NAME

6       GENLIB_ELM - Creates a single element bus name for netlist
7

SYNOPSIS

9       #include <genlib.h>
10       char ∗GENLIB_ELM(busname, index);
11       char ∗busname;
12       long index;
13

PARAMETERS

15       busname             Common signal name for a bus
16
17       index               Index of the demanded signal belonging to the bus
18

DESCRIPTION

20       ELM  Creates  a  single  element bus names valid for the genlib netlist
21       functions that manipulate the signal, and/or connector, concept.   They
22       are:
23              LOINS(3)
24              LOCON(3)
25       The index argument gives the index of the name to be created.
26       This  function  has  a  constant equivalent, it means that if the index
27       value is known at compilation time, one should better  use,  for  read‐
28       ability purposes, the "[n]" construct.
29

EXAMPLE

31       #include <genlib.h>
32       main()
33       {
34       int b = 0;
35       int e = 12;
36            /∗ Create a figure to work on  ∗/
37            GENLIB_DEF_LOFIG("mycell");
38            /∗ define interface  ∗/
39            GENLIB_LOCON(GENLIB_BUS("i", b, e), INPUT, BUS("sig", b, e);
40            GENLIB_LOCON("o[2:0]", OUTPUT, "sigout[4:6]");
41            /∗ Place an instance ∗/
42            GENLIB_LOINS("model","instance", GENLIB_ELM("sig", e/2), "sigout[6]", EOL);
43            /∗ Save all that on disk ∗/
44            GENLIB_SAVE_LOFIG();
45       }
46

SEE ALSO

48       genlib(1), GENLIB_BUS(3).
49
50
51
52
53
54
55PROCEDURAL GENERATION LANGUAGE     ASIM/LIP6     GENLIB_ELM.3(October 1, 1997)
Impressum