DSPRelated.com
Forums

is there a way to convert Matlab code direct to TI TMS320C54x...?

Started by lucy January 10, 2005
I noticed that Mathworks has simulink target for TMS C2000 and C6000...

Does that mean that my TMS320C5410 EVM cannot be used by converting simulink 
code into TI code?

I am also wondering what can I do if I want to convert Matlab code directly 
into TI code? Is that an option to convert Matlab code directly into TI code 
to work in CCS?

For example, for a 40-tap FIR filter, my Matlab lab code is simply:

result=conv(coeff, data);

Does anybody know if it can be easily converted into TI code to work in CCS?

If the above is not possible, is "simulink -> TI" the only option to go?

Thanks a lot! 


lucy wrote:
> I noticed that Mathworks has simulink target for TMS C2000 and
C6000...
> > Does that mean that my TMS320C5410 EVM cannot be used by converting
simulink
> code into TI code? > > I am also wondering what can I do if I want to convert Matlab code
directly
> into TI code? Is that an option to convert Matlab code directly into
TI code
> to work in CCS? > > For example, for a 40-tap FIR filter, my Matlab lab code is simply: > > result=conv(coeff, data); > > Does anybody know if it can be easily converted into TI code to work
in CCS?
> > If the above is not possible, is "simulink -> TI" the only option to
go?
> > Thanks a lot!
IMO, those code generators are really just toys, of interest to universities and managers. John
john wrote:
> lucy wrote: > > I noticed that Mathworks has simulink target for TMS C2000 and > C6000... > > > > Does that mean that my TMS320C5410 EVM cannot be used by converting > simulink > > code into TI code? > > > > I am also wondering what can I do if I want to convert Matlab code > directly > > into TI code? Is that an option to convert Matlab code directly
into
> TI code > > to work in CCS? > > > > For example, for a 40-tap FIR filter, my Matlab lab code is simply: > > > > result=conv(coeff, data); > > > > Does anybody know if it can be easily converted into TI code to
work
> in CCS? > > > > If the above is not possible, is "simulink -> TI" the only option
to
> go? > > > > Thanks a lot! > > IMO, those code generators are really just toys, of interest to > universities and managers. > > John
Why? I have used simulink, the latest version generates decent code, I know the aerospace industry uses them, chances are you probably flew on planes whos engine and/or flight control code was generated from one.
<bungalow_steve@yahoo.com> wrote in message 
news:1105495965.901748.57100@f14g2000cwb.googlegroups.com...
> > john wrote: >> lucy wrote: >> > I noticed that Mathworks has simulink target for TMS C2000 and >> C6000... >> > >> > Does that mean that my TMS320C5410 EVM cannot be used by converting >> simulink >> > code into TI code? >> > >> > I am also wondering what can I do if I want to convert Matlab code >> directly >> > into TI code? Is that an option to convert Matlab code directly > into >> TI code >> > to work in CCS? >> > >> > For example, for a 40-tap FIR filter, my Matlab lab code is simply: >> > >> > result=conv(coeff, data); >> > >> > Does anybody know if it can be easily converted into TI code to > work >> in CCS? >> > >> > If the above is not possible, is "simulink -> TI" the only option > to >> go? >> > >> > Thanks a lot! >> >> IMO, those code generators are really just toys, of interest to >> universities and managers. >> >> John > > > Why? I have used simulink, the latest version generates decent code, I > know the aerospace industry uses them, chances are you probably flew on > planes whos engine and/or flight control code was generated from one. >
Hi Steve, The Simulink only supports conversion Simulink code to C2000 and C6000, am I right? If I want to run it on TMS320C54X... what shall I do? thanks a lot!
bungalow_steve@yahoo.com writes:
> [...] > chances are you probably flew on planes whos engine and/or flight > control code was generated from one.
That's scary. I hope the code was reviewed and tested just as thoroughly as that generated by a human. -- % Randy Yates % "With time with what you've learned, %% Fuquay-Varina, NC % they'll kiss the ground you walk %%% 919-577-9882 % upon." %%%% <yates@ieee.org> % '21st Century Man', *Time*, ELO http://home.earthlink.net/~yatescr
lucy wrote:

> > Hi Steve, > > The Simulink only supports conversion Simulink code to C2000 > > and C6000, am I right? If I want to run it on TMS320C54X... >
well u can't use Simulink then.
> what shall I do? >
rewrite your code in CCS in C from scratch. use some maths library that are available to reduce your code-writing burden.
..[SNIP]..
"lucy" <losemind@yahoo.com> wrote in message
news:cs2llm$6sf$1@news.Stanford.EDU...
> > Hi Steve, > > The Simulink only supports conversion Simulink code to C2000 > > and C6000, am I right? If I want to run it on TMS320C54X... > > what shall I do? > > thanks a lot! > >
You are correct, the Mathworks tools only support the processors you mentioned. You will need to do a manual conversion and create a C/Assembly program (or you could hire any of the fine consultants on these sites who know both Matlab and C54x C/Assembly to help you out). -Shawn