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

NAME

6       GENLIB_REVERSE_PHCON  -  reverse  the order of physical connectors on a
7       bus.
8

SYNOPSIS

10       #include <genlib.h>
11       void GENLIB_REVERSE_PHCON(basename)
12       char ∗basename;
13

PARAMETERS

15       basename            Radical of the vector to be reversed.
16

DESCRIPTION

18       REVERSE_PHCON will change the indexes of the  vector  called  basename,
19       making  the  greatest values the smallest and so on.  Both hard connec‐
20       tors, created by PHCON(3) like functions and virtual  ones,  done  with
21       PHREF(3),  will  be taken into account for the reverse operation.  This
22       function is mainly useful to implement the msb0 options of the Alliance
23       CAD  system module generators, as the whole design can be done with the
24       designer chosen bit ordering, and modified on user demand  only  before
25       saving.
26

EXAMPLE

28       #include <genlib.h>
29       main()
30       {
31            GENLIB_DEF_PHFIG("rom");
32            /∗ Create a figure to work on  ∗/
33            .
34            .
35            .
36            /∗ Reverse the bit ordering if needed ∗/
37            if (msb0)
38                 GENLIB_REVERSE_PHCON("adr");
39            /∗ Save all that on disk ∗/
40            GENLIB_SAVE_PHFIG();
41       }
42

SEE ALSO

44       genlib(1),   GENLIB_PHCON(3),  GENLIB_PHREF(3),  GENLIB_COPY_UP_CON(3),
45       GENLIB_COPY_UP_ALL_CON(3),       GENLIB_COPY_UP_CON_FACE(3),       GEN‐
46       LIB_COPY_UP_REF(3).
47
48
49
50
51
52
53PROCEDURAL GENERATION LANGUAGE     ASIM/GLEINPL6IB_REVERSE_PHCON.3(October 1, 1997)
Impressum