SDKZSPF LSI, SDKZSPF Datasheet - Page 77

no-image

SDKZSPF

Manufacturer Part Number
SDKZSPF
Description
Manufacturer
LSI
Datasheet

Specifications of SDKZSPF

Lead Free Status / Rohs Status
Supplier Unconfirmed
3.7 Circular Buffers
Table 3.11
1. 1 = Set, 0 = Cleared, x = Don’t Care
The cbuf.h header file provides the interface to the circular buffers. The
header file’s macros generate the necessary assembly instructions.
To use a circular buffer, a pointer must be declared, the circular buffer
boundaries must be set, and the circular buffer must be enabled. With
sdcc/zdxcc the pointer must be in r14 or r15.
register int *pt asm("r14");
set_r14_cbuf(low,high);
enable_r14_cbuf;
With zdcc, the pointer must be in a0 - a3.
register int *pt asm("a2");
set_cbuf(CBUF_ID,low,high);
enable_cbuf(CBUF_ID);
CBUF_ID must be A0_CBUF, A1_CBUF, A2_CBUF or A3_CBUF.
A circular buffer must have at least 4 ints or 2 longs.
Circular buffers can be disabled using the following macros with
sdcc/zdxcc:
disable_rn_cbuf;
For zdcc the macro is:
disable_cbuf(CBUF_ID);
Circular Buffers
Copyright © 1999-2003 by LSI Logic Corporation. All rights reserved.
ETSI Function
mult_r
norm_l
norm_s
round
ETSI to N-Intrinsic Mapping (Cont.)
N-Intrinsic
N_mul
N_norm_l
N_norm_s
N_round_l
sat
1
x
x
x
fmode
q15
1
x
x
x
1
Register Bits
sre
x
x
x
x
mre
1
x
x
x
3-23