I have written the image transformation code in matlab now i like to convert it into VHDL coding , is there any possibility to convert the image related coding into VHDL. if so pl. guide me
I am afraid, that if you want quality code, you should learn to design hardware. So, I mean, write the structure again in a hardware description language, Verilog or VHDL.
There are automatic programs, but you get better results hand-coding it.
In this case, your Matlab file should be converted to FPGA synthesizable one. For this System Generator environment allows you to interface directly with Simulink.
In System Generator in compilation options you need to define compilation type (.bit), Part Number (XC3S500E-FG320), FPGA clock period and FPGA clock Pin Location. Accordingly SG generates a bit stream (*.bit) file for the target platform.
For More details you can also refer the:
(1) FPGA-based Implementation of Signal Processing Systems by Roger Woods, Queen’s university, Belfast, UK, John McAllister, Queen’s University, Belfast, UK, Gaye Lightbody University of Ulster, UK, Ying Yi, University of Edinburgh, UK
(2) DESIGN FOR EMBEDDED IMAGE PROCESSING ON FPGAS by Donald G. Bailey, Massey University, New Zealand
I also agree with Henri- the results of conversion will almost always result in a less efficient implementation. I completely understand why you do not wish to do so though!
I would imagaine Xilinx and Altera may also have useful information available.
Either you can use MATLAB inbuilt HDL encoder or use System Generator tool which will convert your MATLAB Simulink model to VHDL code. These two ways you can do.
From matlab code to VHDL conversion you must follow some steps:
1) If your matlab code is floating point code the must convert in to the fixed point code. because FPGA needs the fixed point code. by using the fixed-point converter MATLAB Apps, during this conversion u must focus on the fractional length and word length.these two are very important parameters.
2) Then used HDL coder APPs on the fixed point matlab code to generate the HDL code.
If u have further confusion ask me....i used lots in my projects....