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

NAME

6       DPGEN_ROM4 - 4 words ROM Macro-Generator
7

SYNOPSIS

9       #include  <genlib.h>
10
11       void  GENLIB_MACRO  (DPGEN_ROM4,  char  *modelname, long flags, long N,
12       char *constVal0, char *constVal1, char *constVal2, char *constVal3);
13

DESCRIPTION

15       Generate a N bits 2 words optimized ROM named modelname.
16
17   TERMINAL NAMES
18       1. sel1 : upper bit of the address (input, 1 bits).
19
20       2. sel0 : lower bit of the address (input, 1 bits).
21
22       3. q : the selected word (output, N bit).
23
24       4. vdd : power.
25
26       5. vss : ground.
27
28   BEHAVIOR
29       q <= WITH sel1 & sel0 SELECT contsVal0  WHEN B"00",
30                                    contsVal1  WHEN B"01",
31                                    contsVal2  WHEN B"10",
32                                    constVal3  WHEN B"11";
33
34

EXAMPLE

36       GENLIB_MACRO(DPGEN_ROM4, "model_rom4_set1_16"
37                              , F_BEHAV|F_PLACE
38                              , 4
39                              , "0xFF00"  /* A string! */
40                              , "0xCCCC"  /* A string! */
41                              , "0xF0F0"  /* A string! */
42                              , "0xAAAA"  /* A string! */
43                              );
44
45       GENLIB_LOINS( "model_rom4_set1_16"
46                   , "instance1_rom4_set1_16"
47                   , "sel1"
48                   , "sel0"
49                   , "q[31:0]"
50                   , "vdd", "vss", NULL
51                   );
52
53

SEE ALSO

55       GENLIB_MACRO(3), genlib(1)
56
57
58
59ASIM/LIP6                        30 July 2004                    DPGEN_ROM4(3)
Impressum