.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "DPGEN_ROM4" "3" "30 July 2004" "ASIM/LIP6" "Alliance - genlib User's Manual"
.SH NAME
DPGEN_ROM4 \- 4 words ROM Macro-Generator
.SH SYNOPSIS
.sp
\fB#include
.sp
void GENLIB_MACRO (DPGEN_ROM4, char *\fImodelname\fB, long \fIflags\fB, long \fIN\fB, char *\fIconstVal0\fB, char *\fIconstVal1\fB, char *\fIconstVal2\fB, char *\fIconstVal3\fB);
\fR
.SH "DESCRIPTION"
.PP
Generate a \fIN\fR bits 2 words optimized ROM named \fImodelname\fR\&.
.SS "TERMINAL NAMES"
.TP 3
1.
sel1 : upper bit of the address (input, 1 bits).
.TP 3
2.
sel0 : lower bit of the address (input, 1 bits).
.TP 3
3.
q : the selected word (output, \fIN\fR bit).
.TP 3
4.
vdd : power.
.TP 3
5.
vss : ground.
.SS "BEHAVIOR"
.nf
q <= WITH sel1 & sel0 SELECT contsVal0 WHEN B"00",
contsVal1 WHEN B"01",
contsVal2 WHEN B"10",
constVal3 WHEN B"11";
.fi
.SH "EXAMPLE"
.PP
.nf
GENLIB_MACRO(DPGEN_ROM4, "model_rom4_set1_16"
, F_BEHAV|F_PLACE
, 4
, "0xFF00" /* A string! */
, "0xCCCC" /* A string! */
, "0xF0F0" /* A string! */
, "0xAAAA" /* A string! */
);
GENLIB_LOINS( "model_rom4_set1_16"
, "instance1_rom4_set1_16"
, "sel1"
, "sel0"
, "q[31:0]"
, "vdd", "vss", NULL
);
.fi
.SH "SEE ALSO"
.PP
\fBGENLIB_MACRO\fR(3),
\fBgenlib\fR(1)