1DPGEN_NMUX2(3)          Alliance - genlib User's Manual         DPGEN_NMUX2(3)
2
3
4

NAME

6       DPGEN_NMUX2 - Multiplexer Macro-Generator
7

SYNOPSIS

9       #include  <genlib.h>
10
11       void  GENLIB_MACRO  (DPGEN_NMUX2,  char *modelname, long flags, long N,
12       long drive);
13

DESCRIPTION

15       Generate a N bits two inputs multiplexer with a complemented output and
16       a power of drive named modelname.
17
18       Valid drive are : 2 or 4.
19
20   TERMINAL NAMES
21       1. cmd : select (1 bit).
22
23       2. i1 : input (N bits).
24
25       3. i0 : input (N bits).
26
27       4. nq : output (N bits).
28
29       5. vdd : power.
30
31       6. vss : ground.
32
33   BEHAVIOR
34       nq <= WITH cmd SELECT not i0 WHEN '0',
35                             not i1 WHEN '1';
36

EXAMPLE

38       GENLIB_MACRO(DPGEN_NMUX2, "model_nmux2_32"
39                               , F_BEHAV|F_PLACE
40                               , 32
41                               , 2
42                               );
43
44       GENLIB_LOINS( "model_nmux2_32"
45                   , "instance1_nmux2_32"
46                   , "cmd"
47                   , "i1[31:0]"
48                   , "i0[31:0]"
49                   , "nq[31:0]"
50                   , "vdd", "vss", NULL
51                   );
52
53

SEE ALSO

55       GENLIB_MACRO(3), genlib(1)
56
57
58
59ASIM/LIP6                        30 July 2004                   DPGEN_NMUX2(3)
Impressum