Counter¶
Counter is a single hardware counter with an associated minimum, maximum, step size, and parallelization factor. By default, the parallelization factor is assumed to be a design parameter. Counters can be chained together using CounterChain, but this is typically done implicitly when creating controllers.
Static methods¶
def apply(max: Index): Counter
Creates an unnamed Counter with min of 0, given max, and step size of 1
def apply(min: Index, max: Index): Counter
Creates an unnamed Counter with given min and max, and step size of 1
def apply(min: Index, max: Index, step: Index): Counter
Creates an unnamed Counter with given min, max and step size
def apply(min: Index, max: Index, step: Index, par: Int): Counter
Creates an unnamed Counter with given min, max, step size, and parallelization factor
def apply(name: String, max: Index): Counter
Creates a named Counter with min of 0, given max, and step size of 1
def apply(name: String, min: Index, max: Index): Counter
Creates a named Counter with given min and max, and step size of 1
def apply(name: String, min: Index, max: Index, step: Index): Counter
Creates a named Counter with given min, max and step size
def apply(name: String, min: Index, max: Index, step: Index, par: Int): Counter
Creates a named Counter with given min, max, step size, and parallelization factor