TokenBucketRefillGenerator typedef
Generates the number of tokens supplied to a bucket in the current cycle.
The returned logic must be tokenWidth bits wide. Stateful policies may
use accepted for transfer-gated state updates, but their current output
must not combinationally depend on accepted. The bucket saturates the
resulting balance to its configured capacity.
Implementation
typedef TokenBucketRefillGenerator = Logic Function(
{required Logic tokens,
required Logic accepted,
required Logic clk,
required Logic reset,
required int tokenWidth,
required String name});