Attributes
- Companion
- class
- Source
- Counter.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Counter.type
Members list
Value members
Concrete methods
Instantiate a counter with the specified number of counts.
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
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