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

NAME

6       GENLIB_COPY_UP_SEG  -  copy  a physical segment from an instance in the
7       current figure
8

SYNOPSIS

10       #include <genlib.h>
11       void GENLIB_COPY_UP_SEG(oldname, insname, newname)
12       char ∗oldname, ∗insname, ∗newname;
13

PARAMETERS

15       oldname             Name of the segment in the instance
16
17       insname             Name of the instance in the which the segment is to
18                           be searched for
19
20       newname             Name to be given to the segment in the current fig‐
21                           ure
22

DESCRIPTION

24       COPY_UP_SEG adds a segment in the current layout cell.   All  the  seg‐
25       ment's  attributes  are copied from the first found segment called old‐
26       name in the instance insname.  The new segment is given the  name  new‐
27       name.  The  main purpose of this function is to rename a segment, so it
28       can be used later, when extracting a layout.
29

ERRORS

31       "GENLIB_COPY_UP_SEG impossible : missing GENLIB_DEF_PHFIG"
32              No figure has been yet specified by a call to DEF_PHFIG.  So  it
33              isn't  possible  to  place  a  segment inside it.  you must call
34              DEF_PHFIG before any other layout action.
35       "illegal getphins : instance insname does not exist"
36              The instance called insname does not  currently  belong  to  the
37              figure.
38       "GENLIB_COPY_UP_SEG impossible : segment segname does not exist"
39              The  segment segname does not exist in the model of the instance
40              insname.
41

EXAMPLE

43       #include <genlib.h>
44       main()
45       {
46            /∗ Create a figure to work on  ∗/
47            GENLIB_DEF_PHFIG("cell");
48            GENLIB_PLACE("z2l_y", "r1", NOSYM, 23L, 54L);
49            /∗ Put a segment ∗/
50            GENLIB_COPY_UP_SEG("mux0_s", "r1", "out_s");
51            /∗ Save that on disk ∗/
52            GENLIB_SAVE_PHFIG();
53       }
54

SEE ALSO

56       genlib(1), GENLIB_DEF_PHFIG(3), GENLIB_SAVE_PHFIG(3),  GENLIB_PHSEG(3),
57       GENLIB_THRU_H(3),    GENLIB_THRU_CON_H(3),    GENLIB_THRU_V(3),    GEN‐
58       LIB_THRU_CON_V(3), GENLIB_WIRE1(3), GENLIB_WIRE2(3), GENLIB_WIRE3(3).
59
60
61
62
63
64
65PROCEDURAL GENERATION LANGUAGE     ASIM/LIGPE6NLIB_COPY_UP_SEG.3(October 1, 1997)
Impressum