common_2008

extras/common_2008.vhdl

Dependencies

None

Description

This is a set of common types defining unconstrained arrays of arrays in VHDL-2008 syntax. This provides a common set of types and conversion functions that can be used to interoperate between different library components that need to make use of fully unconstrained types.

Types

common.sulv_array

Array of std_ulogic_vector.

common.slv_array

Array of std_logic_vector.

common.unsigned_array

Array of unsigned.

common.signed_array

Array of signed.

Subprograms

common.to_slv_array (A : sulv_array) → slv_array
Convert std_ulogic_vector array to std_logic_vector array.
Parameters:
  • A (sulv_array) – Array to convert
Returns:

Array with new type.

common.to_sulv_array (A : slv_array) → sulv_array
Convert std_logic_vector array to std_ulogic_vector array.
Parameters:
  • A (slv_array) – Array to convert
Returns:

Array with new type.

common.to_unsigned_array (A : sulv_array) → unsigned_array
Convert std_ulogic_vector array to unsigned array.
Parameters:
  • A (sulv_array) – Array to convert
Returns:

Array with new type.

common.to_sulv_array (A : unsigned_array) → sulv_array
Convert unsigned array to std_ulogic_vector array.
Parameters:
  • A (unsigned_array) – Array to convert
Returns:

Array with new type.

common.to_signed_array (A : sulv_array) → signed_array
Convert std_ulogic_vector array to signed array.
Parameters:
  • A (sulv_array) – Array to convert
Returns:

Array with new type.

common.to_sulv_array (A : signed_array) → sulv_array
Convert signed array to std_ulogic_vector array.
Parameters:
  • A (signed_array) – Array to convert
Returns:

Array with new type.

common.to_unsigned_array (A : slv_array) → unsigned_array
Convert std_logic_vector array to unsigned array.
Parameters:
  • A (slv_array) – Array to convert
Returns:

Array with new type.

common.to_slv_array (A : unsigned_array) → slv_array
Convert unsigned array to std_logic_vector array.
Parameters:
  • A (unsigned_array) – Array to convert
Returns:

Array with new type.

common.to_signed_array (A : slv_array) → signed_array
Convert std_logic_vector array to signed array.
Parameters:
  • A (slv_array) – Array to convert
Returns:

Array with new type.

common.to_slv_array (A : signed_array) → slv_array
Convert signed array to std_logic_vector array.
Parameters:
  • A (signed_array) – Array to convert
Returns:

Array with new type.

common.to_signed_array (A : unsigned_array) → signed_array
Convert unsigned array to signed array.
Parameters:
  • A (unsigned_array) – Array to convert
Returns:

Array with new type.

common.to_unsigned_array (A : signed_array) → unsigned_array
Convert signed array to unsigned array.
Parameters:
  • A (signed_array) – Array to convert
Returns:

Array with new type.

common.to_sulv_array (A : std_ulogic_vector) → sulv_array
Convert a scaler std_ulogic_vector to a single element std_ulogic_vector array.
Parameters:
  • A (std_ulogic_vector) – Vector
Returns:

Array with new type.

common.to_slv_array (A : std_logic_vector) → slv_array
Convert a scaler std_logic_vector to a single element std_logic_vector array.
Parameters:
  • A (std_logic_vector) – Vector
Returns:

Array with new type.

common.to_unsigned_array (A : unsigned) → unsigned_array
Convert a scaler unsigned to a single element unsigned array.
Parameters:
  • A (unsigned) – Vector
Returns:

Array with new type.

common.to_signed_array (A : signed) → signed_array
Convert a scaler signed to a single element signed array.
Parameters:
  • A (signed) – Vector
Returns:

Array with new type.