From eac4ef3d1be30d87e289930067f2078733456527 Mon Sep 17 00:00:00 2001 From: Michael Berman Date: Mon, 8 Sep 2025 12:46:53 -0700 Subject: [PATCH] Library/Utils: Adding documentation for associated addition to Counter from SpinalHDL --- source/SpinalHDL/Libraries/utils.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/SpinalHDL/Libraries/utils.rst b/source/SpinalHDL/Libraries/utils.rst index f6bfe11f39..077aaa6a3a 100644 --- a/source/SpinalHDL/Libraries/utils.rst +++ b/source/SpinalHDL/Libraries/utils.rst @@ -123,13 +123,15 @@ The Counter tool can be used to easily instantiate a hardware counter. * - Instantiation syntax - Notes * - ``Counter(start: BigInt, end: BigInt[, inc : Bool])`` - - + - * - ``Counter(range : Range[, inc : Bool])`` - Compatible with the ``x to y`` ``x until y`` syntaxes * - ``Counter(stateCount: BigInt[, inc : Bool])`` - Starts at zero and ends at ``stateCount - 1`` * - ``Counter(bitCount: BitCount[, inc : Bool])`` - Starts at zero and ends at ``(1 << bitCount) - 1`` + * - ``Counter(time: TimeNumber[, inc : Bool])`` + - Starts at zero and ends after ``time`` clocks A counter can be controlled by methods, and signals can be read: