1DPGEN_ROM2(3) Alliance - genlib User's Manual DPGEN_ROM2(3)
2
3
4
6 DPGEN_ROM2 - 2 words ROM Macro-Generator
7
9 #include <genlib.h>
10
11 void GENLIB_MACRO (DPGEN_ROM2, char *modelname, long flags, long N,
12 char *constVal0, char *constVal1);
13
15 Generate a N bits 2 words optimized ROM named modelname.
16
17 TERMINAL NAMES
18 1. sel0 : address of the value (input, 1 bits).
19
20 2. q : the selected word (output, N bit).
21
22 3. vdd : power.
23
24 4. vss : ground.
25
26 BEHAVIOR
27 q <= WITH sel0 SELECT
28 contsVal0 WHEN B"0",
29 constVal1 WHEN B"1";
30
31
33 GENLIB_MACRO(DPGEN_ROM2, "model_rom2_set1_4"
34 , F_BEHAV|F_PLACE
35 , 4
36 , "0b1010" /* A string! */
37 , "0b1100" /* A string! */
38 );
39
40 GENLIB_LOINS( "model_rom2_set1_4"
41 , "instance1_rom2_4"
42 , "sel0"
43 , "q[31:0]"
44 , "vdd", "vss", NULL
45 );
46
47
49 GENLIB_MACRO(3), genlib(1)
50
51
52
53ASIM/LIP6 30 July 2004 DPGEN_ROM2(3)