1DPGEN_AND3(3) Alliance - genlib User's Manual DPGEN_AND3(3)
2
3
4
6 DPGEN_AND3 - AND3 Macro-Generator
7
9 #include <genlib.h>
10
11 void GENLIB_MACRO (DPGEN_AND3, char *modelname, long flags, long N,
12 long drive);
13
15 Generate a N bits three inputs AND with an output power of drive named
16 modelname.
17
18 Valid drive are : 2 or 4.
19
20 TERMINAL NAMES
21 1. i2 : input.
22
23 2. i1 : input.
24
25 3. i0 : input.
26
27 4. q : output.
28
29 5. vdd : power.
30
31 6. vss : ground.
32
33 BEHAVIOR
34 q <= not(i0 and i1 and i2)
35
36
38 GENLIB_MACRO(DPGEN_AND3, "model_and3_32"
39 , F_BEHAV|F_PLACE
40 , 32
41 , 2
42 );
43
44 GENLIB_LOINS( "model_and3_32"
45 , "instance1_and3_32"
46 , "i2[31:0]"
47 , "i1[31:0]"
48 , "i0[31:0]"
49 , "q[31:0]"
50 , "vdd", "vss", NULL
51 );
52
53
55 GENLIB_MACRO(3), genlib(1)
56
57
58
59ASIM/LIP6 30 July 2004 DPGEN_AND3(3)