Thanks gongdori and graphene for your replies.
Actually there is a toolbox, called Simulink HDL Coder in Matlab r2012b, I was working with that, in that we can directly convert the simulink(*.mdl) model into *.vhd file(which provides facility for generating test bench also). There is one more toolbox called HDL Coder. But they are in simulink.
Now if you want to convert your matlab(*.m) file to *.vhd file, you proceed as given below:
Go to File -> New -> Code Generation Project.
There you will find a window, asking for Name, Location and Type of project.
In the type drop-down box, you have two options:
1. MEX, C, and C++ Code Generation.
2. HDL Code Generation.
When you opt for the second option, it asks you for a MATLAB file (like as in the case of deployment tool).
But the problem I am encountering is that, in spite of having MATLAB r2012b, my MATLAB does not show the option for HDL Code Generation. :-(
If anyone can tell me where exactly I am lagging, like if I need to change the MATLAB version, or something like that.
Gongdori: Can you please tell more about AccelDSP, whether I'll be able to play with my matlab file there, and get required HDL Code?
Thanks in advance.