Visible to Intel only — GUID: hco1423077154055
Ixiasoft
Visible to Intel only — GUID: hco1423077154055
Ixiasoft
14.4.33. Loadable Counter (LoadableCounter)
Internal registers hold the value, modulo, and step size of the counter. The values of these registers on reset are parameters that you can set on the block. Additionally, you can reload these registers with new values in-circuit by raising the ld signal high. While ld is high, DSP Builder writes the values of the i, s, and m input signals into the value, step, and modulo registers, respectively. The value of i passes through to the counter output. When ld falls low again, the counter resumes its normal operation starting from these new values.
If the initial or step values exceed the modulo value, the behavior is undefined. Using signed step values increases logic usage in hardware.
Parameter | Description |
---|---|
Counter setup | A vector that specifies the counter settings on reset in the following format: [<initial value> <modulo> <step size>] |
Signal | Direction | Type | Description | Vector Data Support | Complex Data Support |
---|---|---|---|---|---|
en | Input | Boolean | Enable the counter. | Yes | No |
ld | Input | Boolean | Load the counter. | Yes | No |
i | Input | Any unsigned integer | New initial value to load. | Yes | No |
s | Input | Any integer | New step value to load. | Yes | No |
m | Input | Any non-zero unsigned integer | New modulo value to load. | Yes | No |
q | Output | Unsigned integer | Counter value. | Yes | No |