2.3.2 VectorConvolve
Description
VectorConvolve computes the convolution between two source vectors and stores the result in a destination vector. The result is computed as follows:
Where,
x[k] = source one vector of size N,
h[k] = source two vector of size M (with M < N).
Prototype
fractional* VectorConvolve (int numElems1,int numElems2,fractional* dstV, fractional* srcV1,fractional* srcV2);
Arguments
Parameters |
Description |
---|---|
numElems1 |
Number of elements in source one vector |
numElems2 |
Number of elements in source two vector |
dstV |
Pointer to the destination vector |
srcV1 |
Pointer to the source one vector |
srcV2 |
Pointer to the source two vector |
Returns
Pointer to the base address of the destination vector.
Remarks
The number of elements in the source two vector must be less than or equal to the number of elements in the source one vector.
The destination vector must already exist, with exactly numElems1+numElems2-1 number of elements.
This function can be self-applicable.
Source File
- vcon_aa.s
Function Profile
Device |
Program Words |
Cycles |
---|---|---|
PIC32A |
37 |
For N = numElems1, and M = numElems2,
|
System resource usage
- W0… W7 - used, not restored
- W8…W9 - saved, used, restored
- ACCA - used, not restored
- CORCON - saved, used, restored
- Two REPEAT instruction(s)