UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor rvlganesh
Visitor
16,371 Views
Registered: ‎12-12-2010

Conversion of .m file to .vhdl file OR .vhdl file from .c

            Hi,         

 

           I am implementing the code for image comparison in C and MATLAB.Now i want to know the process to create .vhdl file from .m file (or) .vhdl file from .c file on xilinx or is there any opensources available for this conversion and also is all .m files can be converted to .hdl files or is there any limitations.Please,let me know as early as possible.

 

Thanks,

Ganesh.

0 Kudos
11 Replies
Mentor awillen
Mentor
16,363 Views
Registered: ‎11-29-2007

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

I take it you've never written anything in VHDL before, is that correct?

 

 

Adrian



Please google your question before asking it.
If someone answers your question, mark the post with "Accept as solution". If you see a particularly good and informative post, consider giving it Kudos (the star on the left).
Visitor rvlganesh
Visitor
16,336 Views
Registered: ‎12-12-2010

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

Respected Adrian,

     Thanks for your reply.Actually my project is comparison of fingerprint images for ATM accessing.In my project i want to do comparison of two images using MATLAB and then convert that .m file to .vhdl file from that i want to generate .bit file to run on FPGA or .hex file to run on ARM .I enquired about the conversion possibilities,someone is saying that it is possible by using mbox tool in xilinx but some one are saying that it is confined to some functions in matlab.so,that i want to confirm about its possibilities of conversion.Please, let me know as early as possible.I am also attaching my project base paper.

 

 

Thanks&Regards,

R.V.L.Ganesh

0 Kudos
Teacher eteam00
Teacher
16,333 Views
Registered: ‎07-21-2009

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

Ganesh,

 

On behalf of my twin brother Adrian (with whom I was separated at birth), please consider answering Adrian's question:

I take it you've never written anything in VHDL before, is that correct?

- Bob Elkind

SIGNATURE:
README for newbies is here: http://forums.xilinx.com/t5/New-Users-Forum/README-first-Help-for-new-users/td-p/219369

Summary:
1. Read the manual or user guide. Have you read the manual? Can you find the manual?
2. Search the forums (and search the web) for similar topics.
3. Do not post the same question on multiple forums.
4. Do not post a new topic or question on someone else's thread, start a new thread!
5. Students: Copying code is not the same as learning to design.
6 "It does not work" is not a question which can be answered. Provide useful details (with webpage, datasheet links, please).
7. You are not charged extra fees for comments in your code.
8. I am not paid for forum posts. If I write a good post, then I have been good for nothing.
Advisor eilert
Advisor
16,323 Views
Registered: ‎08-14-2007

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

Hi Ganesh,

there are two ways that lead from Matlab to FPGAs.

One is the HDL-Coder Toolbox. The other one is Xilinx System Generator.

 

Both have their pros and cons and yes, there are limitations.

You can't just convert any code. It has to comply with some strict rules and restrictions.

 

Similar things apply for C-Synthesis tools.

Which is no wonder, when you take in account that even VHDL itself can only use a subset of itself for synthesis.

 

The point is that you are going to design hardware, wich differs greatly from software.

If you have an algorithm working nicely as software, there is a good chance that an identical approach of a hardware implementation fails badly.

 

And while all of these tools may be quite nice for algorithmic stuff (if you know how to handle them) they behave clumsy when you are going to design the interfaces to the outer world of the FPGA.

 

Have a nice synthesis

   Eilert

Visitor rvlganesh
Visitor
16,311 Views
Registered: ‎12-12-2010

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

Hi Eilert,

     Thanks for your support.I will go through the process and if any queries i will confirm with you.If you dont mind can i get  the screen shots of the conversion process.

 

 

Thanks&Regards,

R.V.L.Ganesh

0 Kudos
Advisor eilert
Advisor
16,295 Views
Registered: ‎08-14-2007

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

Hi Ganesh,

If further questions on specific details come up, just post them or write me a message.

About the screenshots: Well, there's nothing much to see on the screen but progress bars.

 

Also I only have access to Xilinx sysgen. The other tools, I know about but don't have them installed.

 

Have a nice synthesis

  Eilert

0 Kudos
Visitor rvlganesh
Visitor
16,279 Views
Registered: ‎12-12-2010

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

Hi Eilert,

 

         Thanks for spending your valuable time.I will go through the process.

 

 

Thanks&Regards,

R.V.L.Ganesh

0 Kudos
Historian
Historian
16,273 Views
Registered: ‎02-25-2008

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

 


@rvlganesh wrote:

Hi Eilert,

     Thanks for your support.I will go through the process and if any queries i will confirm with you.If you dont mind can i get  the screen shots of the conversion process.

 

 

Thanks&Regards,

R.V.L.Ganesh


 

Since you refuse to answers Adrian's question, we can only assume that you've never done anything at all with VHDL or FPGAs.

 

Good luck. You'll need it.

----------------------------Yes, I do this for a living.
Newbie smanohar
Newbie
14,080 Views
Registered: ‎02-01-2013

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

Hi Eilert sir,

 

my M.tech project is Face recognition on virtex5, i want help for the my algorithm part, My algorithm is Haar classifier (viola jones algorithm). i dont know how to start the my algorithm part.

then my project is the video processing based, so i dont know how to give pixel value in Input, that is i dont know how to convert the video file into TXT file.

then how to give pixel value's in RAM ?

 

Then I was finished my simulation part in MATLAB, so how to convert the .m file to .v file(like verilog file) ?

 

there r two way to convert the HDL file

 

1)  Simulink HDL coder

2)  AccelDSP Synthesis Tool or ACCELDSP Software tool

 

I dont know about ACCELDSP software, so plz give me the procedure for that software

 

help me

 

Thank you,

 

by,

Mano.H

0 Kudos
Newbie smanohar
Newbie
3,411 Views
Registered: ‎02-01-2013

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

Sir, My project is Face recognition on FPGA virtex% kit,

Then I was finished my simulation part in MATLAB, so how to convert the .m file to .v file(like verilog file) ?



there r two way to convert the HDL file



1) Simulink HDL coder

2) AccelDSP Synthesis Tool or ACCELDSP Software tool



I dont know about ACCELDSP software, so plz give me the procedure for that software..

thank you
0 Kudos
Visitor pankajp12
Visitor
3,017 Views
Registered: ‎03-13-2014

Re: Conversion of .m file to .vhdl file OR .vhdl file from .c

Hi guys, I am working on Video Compression , I done compression in MATLAB. Now i want to convert that .m file to hdl file or .c file. How it is possible.let me know
0 Kudos