4.0

4.0 | 1 rating Rate this file 150 downloads (last 30 days) File Size: 25.14 KB File ID: #15268

DSP algorithms using Embedded MATLAB Block

by Kiran Kintali

 

11 Jun 2007 (Updated 14 Aug 2008)

Code covered by BSD License  

using Embedded MATLAB block effectively in Simulink

Download Now | Watch this File

File Information
Description

Embedded MATLAB block provides a way of bringing restricted subset of MATLAB into Simulink. There are couple of possibilities when moving untimed MATLAB algorithms into Simulink. This demo illustrates two such alternatives in porting a sample viterbi algorithm (written in M) into Simulink using embedded MATLAB.

The subsystem 'eML_viterbi_ex1' implements the whole algorithm in a single monolithic embedded MATLAB block, where as 'eML_viterbi_ex2' has a similar implementation but broken down into multiple embedded MATLAB blocks.

The former approach can be used to quickly port existing M code into Simulink and verify that it works the same using the debugging capabilities provided by embedded MATLAB block coupled with signal logging and data visualization capabilities provided by Simulink.

The latter approach has the visual appeal and shows the break down of complex piece of logic in mutilple blocks and graphically displays the hierarchy and data flow. In this case the algorithm is broken down into Brach Metric, Path Metric and Trace back units. The Path Metric is further broken down to Add Compare Seelect and Renormalization units.

One of the further advantages of breaking down the algorithm into multiple blocks is that when going for hardware implementation of this algorithm, tradeoffs between area and speed can be explored by placing pipeline registers (integer delay blocks) between blocks and to identify critical path etc.,

Required Products Communications Blockset
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
23 Jul 2008 KAIS MABROUK

http://comelec.enst.fr/~mabrouk/

Please login to add a comment or rating.
Updates
14 Aug 2008

add to eML category

Tag Activity for this File
Tag Applied By Date/Time
embedded matlab Kiran Kintali 22 Oct 2008 09:15:12
dsp Kiran Kintali 22 Oct 2008 09:15:12
fpga Kiran Kintali 22 Oct 2008 09:15:12
viterbi Kiran Kintali 22 Oct 2008 09:15:12
embedded matlab Kiran Kintali 22 Oct 2008 09:15:12
simulink Kiran Kintali 22 Oct 2008 09:15:12
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com