When using an FPGA as data preprocessor for a digital signal processor, one needs to establish a high-bandwidth link between the two chips. Many modern Texas Instruments DSPs use a protocol called "McASP" (multi-channel audio serial port). Despite its name, it can be used for any kind of data, not just audio.
This library provides blocks for sending and receiving data to and from a TI DSP and is made for HDL code generation with HDL Coder.
To learn how the blocks are used, see the example model, it shows continouus data streaming with 16 bit words (check the logic analyzer). Of course, it's also possible to use 8 bit or 32 bit words by configuring the block parameters.
A C-Code excerpt showing the configuration values for the different McASP registers on a 66AK2G12 DSP is also provided. If you are using a different DSP chip, the register names might still be the same and you can use this code as guidance.
인용 양식
Felix Schneider (2024). McASP receiver and transmitter (for HDL Coder) (https://www.mathworks.com/matlabcentral/fileexchange/73571-mcasp-receiver-and-transmitter-for-hdl-coder), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
- Signal Processing > DSP System Toolbox > Transforms and Spectral Analysis > Transforms >
- FPGA, ASIC, and SoC Development >
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!