Package: RandomBasePkg

Description

comment out following 2 lines with VHDL-2008. Leave in for VHDL-2002
library ieee_proposed ; -- remove with VHDL-2008
use ieee_proposed.standard_additions.all ; -- remove with VHDL-2008

Constants

Name Type Value Description
OSVVM_RANDOM_ALERTLOG_ID AlertLogIDType OSVVM_ALERTLOG_ID
NULL_INTV integer_vector (NULL_RANGE_TYPE) (others => 0)

Types

Name Type Description
RandomSeedType --------------------------------------------------------------- RandomSeedType - Abstract the type for randomization
RandomDistType (NONE,
UNIFORM,
FAVOR_SMALL,
FAVOR_BIG,
NORMAL,
POISSON)
--------------------------------------------------------------- - Distribution Types and read/write procedures
RandomParmType

Functions

Description

Uniform
Generate a random number with a Uniform distribution
Required by RandomPkg. All randomization is derived from here.
Value produced must be either:
0 <= Value < 1 or 0 < Value < 1

Current version uses ieee.math_real.Uniform
This abstraction allows higher precision version
of a uniform distribution to be used provided

Description

  • RandomSeedType IO

Description

RandomParm IO

Description

  • Randomization Support
  • Scale - Scale a value to be within a given range
  • FavorSmall, FavorBig - Distribution Support
  • RemoveExclude