DPGEN_ROM2(3) | Alliance - genlib User's Manual | DPGEN_ROM2(3) |
DPGEN_ROM2 - 2 words ROM Macro-Generator
#include <genlib.h>
void GENLIB_MACRO (DPGEN_ROM2, char *modelname, long flags, long N, char *constVal0, char *constVal1);
Generate a N bits 2 words optimized ROM named modelname.
q <= WITH sel0 SELECT
contsVal0 WHEN B"0",
constVal1 WHEN B"1";
GENLIB_MACRO(DPGEN_ROM2, "model_rom2_set1_4"
, F_BEHAV|F_PLACE
, 4
, "0b1010" /* A string! */
, "0b1100" /* A string! */
); GENLIB_LOINS( "model_rom2_set1_4"
, "instance1_rom2_4"
, "sel0"
, "q[31:0]"
, "vdd", "vss", NULL
);
30 July 2004 | ASIM/LIP6 |