The range of this counter is dependent on the Depth selected.
For example, 4096 depth will generate a Counter Width of 12 range.
Counter Width must be able to accommodate the maximum length of high-speed transaction including HS-Zero and trail. Each write to FIFO is DPHY Lanes x Gear Wide.
Another example of calculating Counter Width is as followed:
- DPHY Lanes = 4
- RX Gear = 8
- Sample word count = 3000
Each write to FIFO is 4 x 8 = 32 bits (4 bytes)
Requirement for HS transaction = 3000 word / 4 bytes = 750 write
Since 2^9 = 512 and 2^10 = 1024,
'Counter width' must be at least 10-bit wide to accommodate this 750 write requirement.