Help on auto conversion from Matlab to vhdl on filter design

Discussion in 'Hardware' started by hardheart, Dec 7, 2007.

  1. hardheart

    hardheart

    Joined:
    Dec 7, 2007
    Messages:
    1
    Likes Received:
    0
    Hi All,

    Anybody familiar with matlab code auto-conversion to vhdl?

    I want to implement a prototype of CIC filter in FPGA, so am using the FDA tool to generate vhdl code.

    I am just following one demo from matlab, which is "Implementing the Filter Chain of Digital Down Convert in HDL" at Matlab Help/Demos/Toolboxes/Filter Design/Application Demos.

    In this demo there are 3 stages. but I am only testing the 1st stage which is a CIC filter. After generating the CIC filter object by following the demo, I directly call the Generatehdl function (can be found at the bottom of the matlab demo file) to generate vhdl code. My matlab simulation on this CIC filter is correct but the vhdl code is wrong when simulated in ModelSim(the filter output from vhdl simulation is all 0s).

    Just want to know, is the matlab hdl-conversion functionality trustable and reliable? what is the possible reason causing my vhdl code simulation wrong?

    thank you
     
    hardheart, Dec 7, 2007
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.