TMS320C54一段资料的翻译

来源:百度知道 编辑:UC知道 时间:2024/05/25 11:40:01
5.5.3.4 Circular Address Modifications (MOD = 8, 9, 10, 11, or 14)
Many algorithms, such as convolution, correlation, and FIR filters, require the
implementation of a circular buffer in memory. In these algorithms, a circular
buffer is a sliding window containing the most recent data. As new data comes
in, the buffer overwrites the oldest data. The key to the implementation of a
circular buffer is the implementation of circular addressing.
The circular-buffer size register (BK) specifies the size of the circular buffer.
A circular buffer of size R must start on a N-bit boundary (that is, the N LSBs
of the base address of the circular buffer must be 0), where N is the smallest
integer that satisfies 2N> R. The value R must be loaded into BK. For example,
a 31-word circular buffer must start at an address whose five LSBs are 0 (that
is, XXXX XXXX XXX0 00002), and the value 31 must be loaded into BK. As
a second example, a 32-

5.5.3.4通告地址修改(国防部= 8 , 9 , 10 , 11或14 )
许多算法,如卷积,相关性, FIR滤波器,要求
执行通知,缓冲记忆体中。在这些算法,通告
缓冲区是一个滑动窗口载的最新数据。随着新的数据来源
在缓冲区覆盖最老的数据。的关键在于执行
通知缓冲区实施循环处理。
通知,缓冲区大小寄存器(银行)指定的大小循环缓冲区。
通告缓冲区的大小R必须开始就无位的边界(即氮LSBs
基地址必须是圆形的缓冲区0 ) ,其中n是最小的
整数,满足为2n “河的值R必须加载到银行。例如,
31字循环缓冲区必须首先解决其在5 LSBs是0 (即
是,为XXXX XXXX的XXX0 00002 ) ,以及价值31必须加载到银行。同样地
第二个例子,一个32字的圆形缓冲区必须从他们的讲话
6 LSBs是0 (即,为XXXX XXXX的XX00 00002 ) ,以及价值32必须
加载到银行。在某些应用中,但是,它可以使用bitreversed
处理,以建立一个为2n缓冲区的边界,并提供为2n的影响
循环处理。
有效基地址(环境食物局)的通知缓冲区是由归零
的N LSBs了用户选择的辅助寄存器(回归) 。年底缓冲区
地址( EOB )的通知缓冲取决于取代的N LSBs的
ARX技术与氮LSBs的银行。该指数的循环缓冲区仅仅是将N LSBs
的回归和步骤的数量正在增加或减去辅助
注册。请按照下列三个规则,当您使用循环处理:
?广场第一(最低)地址通知缓冲区边界上为2n
在为2n大于缓冲区大小的圆。
?使用步骤小于或等于缓冲区大小的圆。
?第一次循环队列处理,辅助登记必须
指向一个要素的循环队列。
算法的循环处理如下:
如果0 ?指数+一步?银行:
指数=指数+步骤。
否则,如果指数+一步?银行:
指数=指数+步骤-银行。
否则,如果指数+一步? 0 :
指数=指数+