摘要 |
A modulus address generator calculates the next address to access from a current address of a circular buffer having a length L and an address shift from the current address to the next address to access. Within the circuit of the modulus address generator, a plurality of registers stores the length L of the circular buffer, the current address, and the address shift. A separator circuit generates an offset address and a base address from a mask value and the current address. A modulus calculation via a plurality of adders, and selectors is performed to calculate the next address of the circular buffer to access. A sign selector associated with an inverter and the separator circuit sets a wrap around flag depending on whether a wrap around the circular buffer has occurred during the modulus calculation of the next address to access.
|