GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DPGEN_RF1D (3)

NAME

DPGEN_RF1D, DPGEN_RF1DR0 - Register File with Decoder Macro-Generator

CONTENTS

Synopsis

SYNOPSIS

#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);

DESCRIPTION

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 :
o datain0 and datain1 : the two write busses. Only one is used to actually write the register word, it is selected by the sel signal.
o sel : when set to ’0’ the datain0 is used to write the register word, otherwise it will be datain1.
o adr, adw : the width (Y) of those signals is computed from regNumber : Y = log2(regNumber).
o wen and ren : write enable and read enable, allows reading and writing when sets to ’1’.

    TERMINAL NAMES

1. ck : clock signal (input, 1 bit).
2. sel : select the write bus (input, 1 bit).
3. wen : write enable (input, 1 bit).
4. ren : read enable (input, 1 bit).
5. adr : the read address (input, Y bits).
6. adw : the write address (input, Y bits).
7. datain0 : first write bus (input, N bits).
8. datain1 : second write bus (input, N bits).
9. dataout : read bus (output, N bits).
10. vdd : power.
11. vss : ground.

EXAMPLE

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 );

SEE ALSO

GENLIB_MACRO(3), genlib(1)

Search for    or go to Top of page |  Section 3 |  Main Index


ASIM/LIP6 DPGEN_RF1D (3) 30 July 2004

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.