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: 
Highlighted
Explorer
Explorer
5,489 Views
Registered: ‎07-09-2010

Help Needed to trnslate this C code to VHDL

Hi,
       I need translation of this code in vhdl.Please any one help me about this.The signals are declared above.Here we have to use procedures. I no.But inside one procedure another procedure can we use?Please translate this
----------------------------------------------------------------------------------------------------------------------
void main()
{
    New_Array_Shift_Row=300;//(Roi_Start_Row);
    New_Array_Shift_Col=300;//(Roi_End_Col);
    Template_Matching(Row_Width,Col_Width,Roi_Start_Row,Roi_End_Row);
}
********************************Template _Matching*******************************/
void Template_Matching(unsigned short int R_Wdth,unsigned short int C_Width,unsigned short int New_Array_Shift_Row,unsigned short int New_Array_Shift_Col )
{
    Pixel_Count=(WINDOW_ROW_TEMP*WINDOW_COL_TEMP);
    Template_Comparision();
}
/******************Template Comparision**********************/
void Template_Comparision()
{
    unsigned short int Ref_R_Idx=0;
    unsigned short int Ref_C_Idx=0;
    unsigned short int Meas_R_Idx=0;
    unsigned short int Meas_C_Idx=0;
    unsigned short int M_Idx=0;
    unsigned short int N_Idx=0;
    unsigned short int M_Pix_R=0;

        some processing i have to do here.
}
-----------------------------------------------------------------------------------------------------------------

Thanks You in Advance,
Mahesh Hegde.
Tags (2)
0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
5,477 Views
Registered: ‎11-28-2007

Re: Help Needed to trnslate this C code to VHDL

I suggest you take a look system level synthesis tools such as AutoESL ( http://www.autoesl.com/ )

Cheers,
Jim
0 Kudos
Historian
Historian
5,467 Views
Registered: ‎02-25-2008

Re: Help Needed to trnslate this C code to VHDL

"Please translate this."

 

Wow, you want us to do your work for you?

----------------------------Yes, I do this for a living.
0 Kudos
Explorer
Explorer
5,436 Views
Registered: ‎07-09-2010

Re: Help Needed to trnslate this C code to VHDL

Hi Bassamn,

                     Sorry........I planned to ask for a help.But when i was typing unknowilngly typed that sentence.I didn't checked it properly.I am not getting how to convert.Please tel me.Again am asking sorry for that.......................

Thanks You in Advance,
Mahesh Hegde.
0 Kudos