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


PLXSIM VHDL reference - byte_vector_t

Declaration

Synopsis

Description

Declaration
type byte_vector_t is array(natural range <>) of byte_t;
Synopsis

byte_vector_t is a vector type used to hold data for a local bus transfer.

Description

Use this vector type to hold the data for a local bus transfer in a call to one of the following functions:

Each element of the vector is a byte of data, and normally the length of a byte_vector_t value should be same as the length of the byte_enable_t value it is associated with. For writes, each element of the vector will be driven onto one of the byte lanes of the local bus LD or LAD signals during a transfer. For reads, each element of the vector is obtained from one of the byte lanes of the local bus LD or LAD signals during a transfer.

To avoid confusion and problems related to ascending vs. descending ranges, the range of any objects of type byte_vector_t should always be ascending; for example:

variable data : byte_vector_t(0 to 15); -- Ok

variable data : byte_vector_t(9 downto 3); -- NOT OK

 


 Top of page