FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-22-2004, 11:01 AM
Hyoung Lee
Guest
 
Posts: n/a
Default MATLAB algorithmic statements to C

[Please excuse this topic if this it has been covered (I attempted to search
past messages without success)].

Is there a translator that translates MATLAB algorithmic statements into C
statements?

I have been using R14 MATLAB and MCC to translate M-Files into DLLs in the
Windows environment. But, for TI DSPs, I had to manually translate MATLAB
statements into C statements. When I used MCC to generate C files, they
contain library calls to emulate the MATLAB execution environment. Though
"Link for TI CCS" and "Realtime Workshop" help testing and validating DSP
algorithms in the TI CCS environment, such C files embed MATLAB library
calls, which are equivalent to MEX structures.

I need to automatically translate many DSP algorithms written in MATLAB
(algorithmic statements only) to C (as opposed to manually translating or
rewriting an equivalent algorithm in C); for example:

MATLAB statements:

if (intensity < max),
intensity = intensity + increment;
else
direction = down;
intensity = intensity - increment;
end;

to C statements:

if (*intensity < max)
(*intensity) += increment;
else {
*direction = down;
(*intensity) -= increment;
}

Is there a translator with which one can automate the process? Are there
other solutions that will help translate MATLAB algorithmic statements to C
statements?

Thanks,

Hyoung


Reply With Quote
  #2 (permalink)  
Old 12-24-2004, 10:13 PM
Harryk
Guest
 
Posts: n/a
Default Re: MATLAB algorithmic statements to C

Yes,from 6.5 matlab support this convertion. However, matlab can not
convert m file to C, but can convert simulink-model into various C
platform including Embedded C Code

Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using 2 If statements [email protected] Verilog 1 02-23-2006 06:53 PM
null statements... Jluis VHDL 5 06-10-2004 07:26 PM
component statements within architecture statements Neil Zanella VHDL 7 10-19-2003 06:15 PM
Re: Process and IF Statements spyros VHDL 0 07-19-2003 07:07 AM
generate statements rajan VHDL 1 07-04-2003 09:22 AM


All times are GMT +1. The time now is 02:37 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved