CDSP
Libraries:
SoC Blockset Support Package for Infineon AURIX Microcontrollers /
AURIX TC4x
Description
The Converter Digital Signal Processing (CDSP) block applies signal processing techniques to data from DSADC block. Based on the filter properties and filter chain that you specify in the block, the block outputs the filtered data as 16-bit signed and unsigned integers.
When you enable the timestamp output, the block provides an additional output port to read the timestamp as a 16-bit unsigned value.
Note
You must install DSP System Toolbox™, SoC Blockset™, or Vision HDL Toolbox™ to use CDSP block in the Simulink model.
Ports
Input
indata — Input data from DSADC
scalar
The port accepts incoming data from DSADC block ( using on-chip or external modulator) and applies different signal processing techniques based on the application.
Note
In a code generation workflow, the port accepts data from DSADC block
In a simulation workflow, the port accepts data from any Simulink® source block
Data Types: uint16
| int16
Output
filtereddata — 16-bit filtered data
vector
The block outputs the filtered data as 16-bit values in the form of an N-by-1 array. N varies based on based on the timestamp, number of output samples, and FIFO depth configuration.
The size of output depends on the values of the other parameters in the block.
Enable FIFO | Enable timestamp output | Number of output samples | FIFO depth | Size of filtereddata |
---|---|---|---|---|
Disable | Disable | NA | NA | 1-by-1 |
Enable | NA | NA | 1-by-1 | |
Enable | Disable | 1 | 4 | 4-by-1 |
3 | 3-by-1 | |||
2 | 2-by-1 | |||
1 | 1-by-1 | |||
2 | 4 | 4-by-1 | ||
2 | 2-by-1 | |||
Enable | 1 | 2 | 1-by-1 |
Note
If you set both Enable FIFO and Enable
timestamp output parameters, then you must set
FIFO depth parameter to
2
to receive correct filtered output. This
is a known limitation.
Data Types: uint16
| int16
timestamp — Timestamp of 16-bit counter value
scalar
The port outputs the status of the 16-bit counter value of timestamp counter.
Dependencies
To enable this port, select the Enable timestamp output parameter.
Data Types: uint16
Parameters
Basic
Enable timestamp output — Option to enable timestamp output
off
(default) |
on
Select this parameter to configure the timestamp output port.
Selecting this parameter enables options in the Timestamp tab and Timestamp event (under Events tab) in the CDSP Peripheral Configuration.
Note
As the timestamp is always associated with the trigger, it is recommended that you configure and provide the trigger accordingly, when the timestamp output is enabled. Otherwise, the FIFO functionality does not work, as timestamp is flushed into FIFO first and then to the result registers.
Filter chain — Option to select filter chain
DSP Demo FIR (FC0)
(default)
Select the filter chain to be used by CDSP.
Output datatype — Data type of filtered output
int16
(default) |
uint16
Select data type of the filtered output.
Basic > FIFO Configuration
Enable FIFO — Option to enable first-in first-out (FIFO) register
off
(default) |
on
Select to enable FIFO register.
Number of output samples — Output samples to read from FIFO
1
(default) |
2
Configure whether to read a single sample or double samples at a time.
Selecting 2
helps in fetching the data faster
from the FIFO.
Dependencies
To enable this parameter, select the Enable FIFO parameter.
FIFO depth — FIFO register depth
4
(default) | 3
|
2
|
1
(only if 'Enable Timestamp' is not selected)
FIFO level after which the module generates service request.
Dependencies
To view this parameter, select the Enable FIFO parameter.
FIR
Coefficients — Coefficients of FIR filter
[8, 13, -39, -130, -170, -135, -68, 27, 220, 424, 400, 124, -268,
-617, -763, -604, -74, 655, 1244, 1419, 971, -26, -1390, -2569, -2842,
-1783, 736, 4316, 8296, 11711, 13682, 13682, 11711, 8296, 4316, 736, -1783,
-2842, -2569, -1390, -26, 971, 1419, 1244, 655, -74, -604, -763, -617, -268,
124, 400, 424, 220, 27, -68, -135, -170, -130, -39, 13, 8]
(default)
Specify the coefficients of the FIR filter.
Decimation rate — Decimation rate of FIR filter
1
(default) |
2
|
4
|
8
|
16
Specify decimation rate of the FIR filter.
Version History
Introduced in R2024a
See Also
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)