HDL Coder (Matlab): Strange Error

Discussion in 'Embedded Systems and Microcontrollers' started by jamil1988, Dec 1, 2015.

  1. jamil1988

    Thread Starter New Member

    Nov 19, 2015
    11
    0
    Dear All,
    I am using Matlab 2014 HDL Coder. I am trying to convert a code (given in attached files main and fshift) to VHDL Code using Matlab HDL Coder.It giving me the error.Can some one have look into it please.File with name fshift is function and with name main is script file.Because of the file extension restriction I uploaded pdf not the M file.Please help me..Thanks in advance.
     
    Last edited: Dec 1, 2015
  2. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
    What error? There seems to be a whole lot missing that you need to make a valid VHDL source code.
     
  3. jamil1988

    Thread Starter New Member

    Nov 19, 2015
    11
    0
    @kubeek Thanks for your reply.I just want to convert this Matlab code into VHDL Code using Matlab HDL Coder.My fshift function contains exponential function and HDL coder says it is not defined.Kindly can you help me out please.I am new user of HDL Coder.Thanks in advance.
     
  4. kubeek

    AAC Fanatic!

    Sep 20, 2005
    4,670
    804
    Sorry I have no experience with matlab, and used VHDL only just a few little projects at the university. However I can tell you right away that you will have a lot of headaches with using FFT in VHDL, you will have to basically write the code for that from scratch, unless you can find some library that can do it for you.
    Why are you actually trying to do this?
     
  5. jamil1988

    Thread Starter New Member

    Nov 19, 2015
    11
    0

    This function is basically used for fractional shift in a vector (fshift). In input arguments of the function x is a vector and s is the shift.So it provides a shift or you can say delay in a vector.Which I have to use in a indoor positioning project.Do you know any other method ?
     
  6. jamil1988

    Thread Starter New Member

    Nov 19, 2015
    11
    0
    It would be nice if you can tell me how to do FFT in VHDL (code).
    Thanks in advance!
     
  7. Papabravo

    Expert

    Feb 24, 2006
    10,138
    1,787
    Easiest way I know is to implement an existing soft DSP and use an existing program library.
     
Loading...