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

NAME

6       DPGEN_NUL - Zero Detector Macro-Generator
7

SYNOPSIS

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

DESCRIPTION

14       Generate a N bits zero detector named modelname.
15
16   TERMINAL NAMES
17       1. i0 : value to check (input, N bits).
18
19       2. q : null flag (output, 1 bit).
20
21       3. vdd : power.
22
23       4. vss : ground.
24
25   BEHAVIOR
26       q <= <= '1' WHEN (i0 = X"00000000") ELSE '0';
27
28

EXAMPLE

30       GENLIB_MACRO(DPGEN_NUL, "model_nul_32"
31                             , F_BEHAV|F_PLACE
32                             , 32
33                             );
34
35       GENLIB_LOINS( "model_nul_32"
36                   , "instance1_nul_32"
37                   , "i0[31:0]"
38                   , "q"  /* Flag null. */
39                   , "vdd", "vss", NULL
40                   );
41
42

SEE ALSO

44       GENLIB_MACRO(3), genlib(1)
45
46
47
48ASIM/LIP6                        30 July 2004                     DPGEN_NUL(3)
Impressum