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