DPGEN_RF1D(3) | Alliance - genlib User's Manual | DPGEN_RF1D(3) |
DPGEN_RF1D, DPGEN_RF1DR0 - Register File with Decoder Macro-Generator
#include <genlib.h>
void GENLIB_MACRO (DPGEN_RF1D, char *modelname, long flags, long N);
void GENLIB_MACRO (DPGEN_RF1DR0, char *modelname, long flags, long N);
Generate a register file of regNumber words of N bits with decoder named modelname. The DPGEN_RF1DR0 variant differs from the DPGEN_RF1D in that the register of address zero is stuck to zero. You can write into it, it will not change the value. When read, it will always return zero.
How it works :
GENLIB_MACRO(DPGEN_RF1D, "model_rf1dx8_32"
, F_BEHAV|F_PLACE
, 32 /* Words size. */
, 8 /* Number of words. */
); GENLIB_LOINS( "model_rf1dx8_32"
, "instance1_rf1d_32"
, "ck"
, "sel"
, "wen"
, "ren"
, "adr[2:0]"
, "adw[2:0]"
, "datain0[31:0]"
, "datain1[31:0]"
, "dataout[31:0]"
, "vdd", "vss", NULL
);
30 July 2004 | ASIM/LIP6 |