.\" 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_ROM2" "3" "30 July 2004" "ASIM/LIP6" "Alliance - genlib User's Manual" .SH NAME DPGEN_ROM2 \- 2 words ROM Macro-Generator .SH SYNOPSIS .sp \fB#include .sp void GENLIB_MACRO (DPGEN_ROM2, char *\fImodelname\fB, long \fIflags\fB, long \fIN\fB, char *\fIconstVal0\fB, char *\fIconstVal1\fB); \fR .SH "DESCRIPTION" .PP Generate a \fIN\fR bits 2 words optimized ROM named \fImodelname\fR\&. .SS "TERMINAL NAMES" .TP 3 1. sel0 : address of the value (input, 1 bits). .TP 3 2. q : the selected word (output, \fIN\fR bit). .TP 3 3. vdd : power. .TP 3 4. vss : ground. .SS "BEHAVIOR" .nf q <= WITH sel0 SELECT contsVal0 WHEN B"0", constVal1 WHEN B"1"; .fi .SH "EXAMPLE" .PP .nf 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 ); .fi .SH "SEE ALSO" .PP \fBGENLIB_MACRO\fR(3), \fBgenlib\fR(1)