Counter

chisel3.util.Counter
See theCounter companion class
object Counter

Attributes

Companion
class
Source
Counter.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Counter.type

Members list

Value members

Concrete methods

def apply(n: Int): Counter

Instantiate a counter with the specified number of counts.

Instantiate a counter with the specified number of counts.

Attributes

Source
Counter.scala
def apply(cond: Bool, n: Int): (UInt, Bool)

Instantiate a counter with the specified number of counts and a gate.

Instantiate a counter with the specified number of counts and a gate.

Value parameters

cond

condition that controls whether the counter increments this cycle

n

number of counts before the counter resets

Attributes

Returns

tuple of the counter value and whether the counter will wrap (the value is at maximum and the condition is true).

Source
Counter.scala
def apply(r: Range, enable: Bool = ..., reset: Bool = ...): (UInt, Bool)

Creates a counter that steps through a specified range of values.

Creates a counter that steps through a specified range of values.

Value parameters

enable

controls whether the counter increments this cycle

r

the range of counter values

reset

resets the counter to its initial value during this cycle

Attributes

Returns

tuple of the counter value and whether the counter will wrap (the value is at maximum and the condition is true).

Source
Counter.scala