avl._core.covercross module

class avl._core.covercross.Covercross(*args: Any, **kwargs: Any)[source]
__init__(name: str, parent: Covergroup) None[source]

Initialize an instance of the class.

Parameters:
  • name (str) – The name of the instance

  • parent (object) – The parent instance

add_points(args: list[Coverpoint]) None[source]

Add coverpoints to the cross.

Parameters:

args (list[Coverpoint]) – Coverpoints to be crossed

Raises:

ValueError – If the covercross already exists

sample() None[source]

Sample values from each bin in the _bins_ attribute.

This method iterates over all bins stored in the _bins_ attribute and calls the sample method on each bin, passing the result of self.var() as an argument.