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