ADM-XRC SDK 2.8.1 User Guide (Linux)
© Copyright 2001-2009 Alpha Data


The zbtsram_pinout_t datatype

The zbtsram_pinout_t datatype is exported by the memif package, and is used to specify the physical configuration of an instance of zbtsram_port.

It is a record type, defined as follows:

type zbtsram_pinout_t is
record
    family        : family_t;
    has_ce2       : boolean;
    has_ce2_l     : boolean;
    has_cke_l     : boolean;
end record;

This datatype can normally treated as an abstract datatype, since the user application need typically only use one of the predefined constants of type zbtsram_pinout_t. However, should it be necessary to create a new value, the members are defined as follows:

Member Type Function
family family_t Specifies the FPGA family that the memory port targets.
has_ce2 boolean If true, the rc bus of the memory port includes the CE2 pin.
has_ce2_l boolean If true, the rc bus of the memory port includes the CE2# pin.
has_cke_l boolean If true, the rc bus of the memory port includes the CKE# pin.

The value of zbtsram_pinout_t passed in the pinout parameter of a zbtsram_port determines the proper value to pass for the rc_width parameter. The relevant formula is:

A = (rd_width / 8)
B = 1 if has_ce2 else 0
C = 1 if has_ce2_l else 0
D = 1 if has_cke_l else 0

rc_width = A + B + C + D + 4

 


 Top of page