Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Matlab (.m) to VHDL

Reply
Thread Tools

Matlab (.m) to VHDL

 
 
Vitaliy
Guest
Posts: n/a
 
      12-24-2006
Hello,

I have seen this question many times in the newsgroups but I did not
see a clear answer.
I have to perform various operations on arrays of data (such as
multiplication, addition, finding mean, etc.). I have code written in
Matlab and would like to translate it to vhdl. I understand that such
subroutines as imagesc, imwrite, etc. might not be possible to
translate to vhdl and will need to be written (or similar functions
might be already implemented in vhdl). Is there anyway of directly
translating Matlab code directly to vhdl? Can this be done using
Simulink (Xilinx System Generator)? I don't have System Generator at
home and Xilinx doesn't seem to have evaluation version (asking for
Product Serial Number). Or maybe my question should be: can this be
done in Simulink to start with?
I have Xilinx FPGA/ISE. And if this can not be done using System
Generator, is there anything else that can be used?

Please let me know if my requirements are not very clear.

Thanks,
Vitaliy

 
Reply With Quote
 
 
 
 
David Bishop
Guest
Posts: n/a
 
      12-27-2006
Vitaliy wrote:
> Hello,
>
> I have seen this question many times in the newsgroups but I did not
> see a clear answer.
> I have to perform various operations on arrays of data (such as
> multiplication, addition, finding mean, etc.). I have code written in
> Matlab and would like to translate it to vhdl. I understand that such
> subroutines as imagesc, imwrite, etc. might not be possible to
> translate to vhdl and will need to be written (or similar functions
> might be already implemented in vhdl). Is there anyway of directly
> translating Matlab code directly to vhdl? Can this be done using
> Simulink (Xilinx System Generator)? I don't have System Generator at
> home and Xilinx doesn't seem to have evaluation version (asking for
> Product Serial Number). Or maybe my question should be: can this be
> done in Simulink to start with?
> I have Xilinx FPGA/ISE. And if this can not be done using System
> Generator, is there anything else that can be used?
>
> Please let me know if my requirements are not very clear.


At the moment there is no such thing. There are several Simulink based
tools out there which help you get to hardware. You have to pay for
these though, and you will really have no "golden" code if you go this
route.

I have written VHDL packages:
http://www.vhdl.org/vhdl-200x/vhdl-2...ges/files.html
Which follows the rules in Matlab, so creating this program should be
possible.
 
Reply With Quote
 
 
 
 
Hemang Parekh
Guest
Posts: n/a
 
      12-27-2006
Please look at the AccelDSP tool from Xilinx.. It is based on Matlab
language to HDL conversion for Xilinx devices.

http://www.xilinx.com/ise/dsp_design...ldsp/index.htm

System Generator is based on Simulink based design environment to HDL
conversion for Xilinx devices.

http://www.xilinx.com/ise/optional_p..._generator.htm

Regards

Hemang

"Vitaliy" <> wrote in message
news: ups.com...
> Hello,
>
> I have seen this question many times in the newsgroups but I did not
> see a clear answer.
> I have to perform various operations on arrays of data (such as
> multiplication, addition, finding mean, etc.). I have code written in
> Matlab and would like to translate it to vhdl. I understand that such
> subroutines as imagesc, imwrite, etc. might not be possible to
> translate to vhdl and will need to be written (or similar functions
> might be already implemented in vhdl). Is there anyway of directly
> translating Matlab code directly to vhdl? Can this be done using
> Simulink (Xilinx System Generator)? I don't have System Generator at
> home and Xilinx doesn't seem to have evaluation version (asking for
> Product Serial Number). Or maybe my question should be: can this be
> done in Simulink to start with?
> I have Xilinx FPGA/ISE. And if this can not be done using System
> Generator, is there anything else that can be used?
>
> Please let me know if my requirements are not very clear.
>
> Thanks,
> Vitaliy
>



 
Reply With Quote
 
Jim Lewis
Guest
Posts: n/a
 
      01-02-2007
Vitaliy,
There was a paper presented at MAPLD bridging Matlab using
the library David talked about. The abstract of the paper
is posted at:
http://www.klabs.org/mapld06/abstracts/225_hoy_a.html

I expected to see the paper there too, but did not see it.
You can contact the conference organizer and see if or when
it will be available.

Cheers,
Jim Lewis
VHDL Evangelist

> Vitaliy wrote:
>> Hello,
>>
>> I have seen this question many times in the newsgroups but I did not
>> see a clear answer.
>> I have to perform various operations on arrays of data (such as
>> multiplication, addition, finding mean, etc.). I have code written in
>> Matlab and would like to translate it to vhdl. I understand that such
>> subroutines as imagesc, imwrite, etc. might not be possible to
>> translate to vhdl and will need to be written (or similar functions
>> might be already implemented in vhdl). Is there anyway of directly
>> translating Matlab code directly to vhdl? Can this be done using
>> Simulink (Xilinx System Generator)? I don't have System Generator at
>> home and Xilinx doesn't seem to have evaluation version (asking for
>> Product Serial Number). Or maybe my question should be: can this be
>> done in Simulink to start with?
>> I have Xilinx FPGA/ISE. And if this can not be done using System
>> Generator, is there anything else that can be used?
>>
>> Please let me know if my requirements are not very clear.

>
> At the moment there is no such thing. There are several Simulink based
> tools out there which help you get to hardware. You have to pay for
> these though, and you will really have no "golden" code if you go this
> route.
>
> I have written VHDL packages:
> http://www.vhdl.org/vhdl-200x/vhdl-2...ges/files.html
> Which follows the rules in Matlab, so creating this program should be
> possible.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
vectorized computation in C++ such as those in Matlab (Matlab toC++)? Luna Moon C++ 16 08-08-2008 04:27 PM
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
Eclipse RCP and MATLAB (calling MATLAB from JAVA) siki Java 0 01-16-2007 04:19 AM
Help! FIR Filter - MATLAB fdatool - VHDL Emel VHDL 0 01-08-2006 03:14 PM
Help! FIR Filter - MATLAB fdatool - VHDL Emel VHDL 0 01-08-2006 03:00 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57