Apparatus and method for generating a modulo address
Abstract
A method and apparatus for generating a modulo address for accessing a circular buffer. The method and apparatus accept as inputs a length L of the circular buffer, a current address A of the circular buffer, and an offset M between the current address and the next address to be generated. The offset M may be positive or negative. During operation of the present invention, the current address A first is broken down into a base address B and an offset from the base address a. Then, in accordance with the length L and the offset M, the invention determines an absolute offset and a wrapped offset. One of these offsets is added to the base address B to generate a next address for the circular buffer. The determination of which offset to add to the base address B is made by performing one of two comparisons. Specifically, either the absolute offset is compared to a predetermined value indicating the beginning of the circular buffer or the absolute offset is compared to a predetermined value indicating the end of the circular buffer, depending on a sign of the offset M. In a second embodiment of the invention, one of the offsets is added to the base address B in accordance with a Wrap fl
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 35.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
An apparatus for generating a next address for accessing a circular buffer, comprising: circuitry for storing a length L of the circular buffer; circuitry for storing a current address A of the circular buffer; circuitry for storing an offset M between the current address A and a next address to be generated; circuitry for breaking down the current address A into a base address B and an offset from the base address a, wherein the circuitry for breaking down the current address A includes a leading one element, having L as an input, for outputting a mask S having "1"s in its low n
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗