Skip to content

Commit c5452ec

Browse files
authored
Merge pull request #280 from mrberman87/master
Library/Utils: Adding documentation for associated addition to Counte…
2 parents 8ad4580 + eac4ef3 commit c5452ec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/SpinalHDL/Libraries/utils.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,15 @@ The Counter tool can be used to easily instantiate a hardware counter.
123123
* - Instantiation syntax
124124
- Notes
125125
* - ``Counter(start: BigInt, end: BigInt[, inc : Bool])``
126-
-
126+
-
127127
* - ``Counter(range : Range[, inc : Bool])``
128128
- Compatible with the ``x to y`` ``x until y`` syntaxes
129129
* - ``Counter(stateCount: BigInt[, inc : Bool])``
130130
- Starts at zero and ends at ``stateCount - 1``
131131
* - ``Counter(bitCount: BitCount[, inc : Bool])``
132132
- Starts at zero and ends at ``(1 << bitCount) - 1``
133+
* - ``Counter(time: TimeNumber[, inc : Bool])``
134+
- Starts at zero and ends after ``time`` clocks
133135

134136
A counter can be controlled by methods, and signals can be read:
135137

0 commit comments

Comments
 (0)