Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > How to import data from matlab in to VHDL design

Reply
Thread Tools

How to import data from matlab in to VHDL design

 
 
mailmekaran mailmekaran is offline
Junior Member
Join Date: Aug 2006
Posts: 2
 
      09-04-2006
Hello to all,
I have one sereous problem. i have designed filter in matlab,those generated filter coefficients i want to export to xilinx as a input to my VHDL filter. How to make the file which will contains my filter coefficientas?what will be format of the file and how to import this file into VHDL as input?I guess this is concern with file handelings. In my project there is close colaboration between matlab and vhdl.
Please let me know how to do this??
Thanks in advance
 
Reply With Quote
 
 
 
 
Adrian Jongenelen Adrian Jongenelen is offline
Junior Member
Join Date: Sep 2006
Location: Wellington, New Zealand
Posts: 5
 
      09-27-2006
Are these coefficients going to be used as inputs for a testbench, or used in a synthesized design, eg, stored in ROM or RAM?

I've got a project that uses MATLAB and VHDL a great deal, and I don't know if it is the best method of passing info between the two but I have a way that works.

For testbenches, everything is encoded as hex, but stored as text, eg, the number 123 would be the string "0000007B" (For 32 bit words). The VHDL testbench uses the std.textio package to read each line, and I've written procedures to convert from string to std_logic_vectors.

For RAM/ROM you can write out a .coe file and use the Xilinx Core Generator to generate RAM/ROM with corresponding initial values. I've found it generates a .mif file (another text file) which I believe is the file read by the simulator/synthesizer. Instead of re creating the RAM/ROM everytime with a new .coe file, perhaps you could alter the .mif directly.
 
Reply With Quote
 
 
 
 
DualCore DualCore is offline
Junior Member
Join Date: Sep 2006
Posts: 4
 
      09-27-2006
What about the Modelsim link that Matlab 2006B has , can you like just connect a 32bit bus into a VHDL module and see things working in realtime ?
has anyone tried that ?
 
Reply With Quote
 
nanu nanu is offline
Junior Member
Join Date: Jul 2009
Posts: 1
 
      07-11-2009
can u send the procedures to import data frm matlab to vhdl plzz...i am actually workin on a project called watermarking using vhdl ,u cud even send codes for ths if u cud possibly....i really need them
 

Last edited by nanu; 07-11-2009 at 02:41 PM..
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
vectorized computation in C++ such as those in Matlab (Matlab toC++)? Luna Moon C++ 16 08-08-2008 04:27 PM
Help on auto conversion from Matlab to vhdl on filter design hardheart Hardware 0 12-07-2007 09:19 AM
Eclipse RCP and MATLAB (calling MATLAB from JAVA) siki Java 0 01-16-2007 04:19 AM
Matlab import Alberto Python 2 10-07-2004 10:04 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