发明名称 Apparatus and method for generating a modulo address
摘要 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 flag determined by the circuit.
申请公布号 US5659700(A) 申请公布日期 1997.08.19
申请号 US19950388567 申请日期 1995.02.14
申请人 WINBOND ELECTRONIS CORPORATION 发明人 CHEN, HWANG-CHUNG;HSU, SHIH-CHANG
分类号 G06F5/10;G06F7/72;G06F9/355;(IPC1-7):G06F12/00;G06F12/02;G06F9/26;G06F9/34 主分类号 G06F5/10
代理机构 代理人
主权项
地址