DSPRelated.com
Forums

poting of matlab generated c-code on blackfin processor

Started by MOHD AFZAL August 11, 2004
Hi all,

Can i get some reference documents or some tutorials based on
the "How to port the matlab geneted c-code on blackfin processor",
i am using the matlab-7 and realtime workshop,that generated the
floating point c-code, i want to take this code and compile it on
visual DSp++ and anf finally download on the balckfin processor,

can i have the related help???How do i go about it??plz share your
experince with me!
thinking you,

Afzal



Hi,

I think it would use libraries specific to Matlab
and/or Realtime Workshop, I am not sure.

I think it's worth checking with the generated code to
see what calls does it make.

Regards,

JaaC

--- MOHD AFZAL <> wrote:

> Hi all,
>
> Can i get some reference documents or some tutorials
> based on
> the "How to port the matlab geneted c-code on
> blackfin processor",
> i am using the matlab-7 and realtime workshop,that
> generated the
> floating point c-code, i want to take this code and
> compile it on
> visual DSp++ and anf finally download on the
> balckfin processor,
>
> can i have the related help???How do i go about
> it??plz share your
> experince with me!
> thinking you,
>
> Afzal >
>
> _____________________________________
> Note: If you do a simple "reply" with your email
> client, only the author of this message will receive
> your answer. You need to do a "reply all" if you
> want your answer to be distributed to the entire
> group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://groups.yahoo.com/group/adsp
>
> Other Groups: http://www.dsprelated.com/groups.php3
>
> Yahoo! Groups Links >
>


=====

Jaime Andr Aranguren Cardona
__________________________________



On Wed, 11 Aug 2004, Jaime Andres Aranguren Cardona wrote:

> Hi,
>
> I think it would use libraries specific to Matlab
> and/or Realtime Workshop, I am not sure.
>
> I think it's worth checking with the generated code to
> see what calls does it make.

I agree, if you are using floats it may go thru a lot of machinations you
don't really need. Worst case you can just feed the C output from matlab
to the VDSP compiler by hand. I'd personally never do that though - way
too many things can go wrong and you won't know where they are happening.

Patience, persistence, truth,
Dr. mike



Hello,

Matlab could be great for system simulation and
algorithm functionality. You can even use "hardware in
the loop" validation of your system (*). But when it
comes to implementing in a specific hardware platform,
you'd rather implement what your Matlab code does in
the programming language of the hardware platform:
ASM/C/C++/Verilog/VHDL (the latter even suposing you
are targeting your system to an FPGA). I'd use
Matlab/Simulink to understand how should the system
be, what should each module do. Then, implement the
modules.

JaaC

--
(*) There exists DSPDeveloper from SDL. Check this
out: www.sdltd.com. It allows you to run your Simulink
code (blocks) into real DSP hardware: SHARC,
TigerSHARC, Blackfin.

--- Mike Rosing <> wrote:

> On Wed, 11 Aug 2004, Jaime Andres Aranguren Cardona
> wrote:
>
> > Hi,
> >
> > I think it would use libraries specific to Matlab
> > and/or Realtime Workshop, I am not sure.
> >
> > I think it's worth checking with the generated
> code to
> > see what calls does it make.
>
> I agree, if you are using floats it may go thru a
> lot of machinations you
> don't really need. Worst case you can just feed the
> C output from matlab
> to the VDSP compiler by hand. I'd personally never
> do that though - way
> too many things can go wrong and you won't know
> where they are happening.
>
> Patience, persistence, truth,
> Dr. mike


=====

Jaime Andr Aranguren Cardona
__________________________________