Creates a counter with the specified number of steps.
Creates a counter with the specified number of steps.
number of steps before the counter resets
Increments the counter by a step.
Increments the counter by a step.
whether the counter will wrap on the next clock cycle
The incremented value is registered and will be visible on the next clock cycle
Number of counts before the counter resets
Number of counts before the counter resets
Only defined for ranges starting at zero with steps of size 1. Use range for other use cases.
The range of the counter values.
Resets the counter to its initial value
The current value of the counter.
Used to generate an inline (logic directly in the containing Module, no internal Module is created) hardware counter.
Typically instantiated with apply methods in object Counter
Does not create a new Chisel Module