Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Problem with Altera DSP Builder and Matlab

Sir

I have:

OS: Windows 7 (64bit)

Matlab : 2012a(32bit)

Altera Quartus II (web edition) : 11.0sp1 (32bit)

ModelSim SE : 10.0c(32bit)

FPGA kit: Altera Cyclone (EP1C12Q240C8) (Cyclone Family)

Altera DSP builder: 11.0sp1 (32bit)

C compiler: lcc [MATLAB]

1. Problem during Altera DSP builder installation :

In Matlab command window:

There are many "Altelink2" files [like this as warning]

asked to check : "which –all Altelink2"

2. Problem during running Simulink:

A. open Matlab-->simulin--> Libraries:

There are two Altera blocks:

a) "Altera DSP Builder Advanced Blockset " (with sub directories as it has "+" sign in the leftside)

b) "Altera DSP Builder Blockset" (without any sub directories as it has no any "+" sign in the left side)

B. When I click on "Altera DSP Builder Blockset" . There is no block set.

C. After some time Matalb noticed me: MATLAB uncounted some unexpected problems and needs to be closed no now. There is "matlab_crash_dump.3132.0" file at your temp directory. (like that)

{I'm facing same problem with Altera Quartus II & Altera DSP Builder version 9.1, 10.0 also and Altera Quartus II version 12.0 or higher version does not have "Cyclone family" and Altera Quartus II 11.0 (which is recommended by Matlab 2012a is not available on their site )}

What should I do to fix these problems?

I have to do my project with this FPGA kit (EP1C12Q240C8) and Matlab

I am looking forward to receive your kind replay regarding this subject

With Regards

Kingsuk Majumdar

9 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You should only have one altelink2 file on your path. If you have more than one then you should remove extra ones as they may interfere.

    To do this, click the File menu and click "Set Path...". Remove any paths that point into versions of DSP Builder other than 11.0sp1.

    In addition, type edit classpath.txt at the MATLAB prompt and check that there are no references to a dspb_sblocks.jar other than the 11.0sp1 version. When you save this file, you will have to restart MATLAB for it to have any effect.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sir,

    There are two paths in MATLAB "setpath"

    1. quartus /dspba (with all sub folders)

    2. quartus/dsp_builder (with all sub folders)

    There is only one file named "altelink2.mdl" in "quartus\dsp_builder\bin\mdllibrary" and no such file is present in other directories.

    I found that in "classpath.txt" file "dspb_sblocks.jar" is not available not even in installation folder.

    Would you like to help me to die out this problem ?

    With Regards Kingsuk
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sir

    I notice that in Matlab "setpath" there is "DSP" (Matlab in build DSP toolbox) having addresses :

    Matlab\R2011a\toolbox\dsp\dsp

    Matlab\R2011a\toolbox\dsp\dsputlilities

    Matlab\R2011a\toolbox\dsp\dsputlilities\dspinit

    Matlab\R2011a\toolbox\dsp\dsputlilities\dspmex

    Matlab\R2011a\toolbox\dsp\examples

    Matlab\R2011a\toolbox\dsp\simulink\dsp

    And

    in classpath.txt file of MATLAB there is a DSP block

    # Java classpath entries for dsp

    $matlabroot/java/jar/toolbox/dsp.jar

    with regards

    Kingsuk
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In your first post you say you're running R2012a, but those paths are from R2011a? Are you using R2011a or R2012a?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It is "Matlab 2012a" ... I made mistake during pen down those paths...

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    There is a bug in MATLAB R2012a that causes the library browser to crash when opening the DSP Builder standard blockset. It can also crash if you use search facility in the library browser.

    This is fixed in DSP Builder 12.0SP2. Alternatively you can run an older version of MATLAB which doesn't have this bug.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Sir

    I cann't go for Altera DSP builder 12 because it does not have "cyclone family". I have a kit from "cyclone family" (EP1C12Q240C8) (mentioned in my 1st post).

    Now I install

    1. MATLAB2011b (32bit)

    2. Altera Quartus II 11.0sp1

    3. Altera DSP Builder 11.0sp1

    4. Modelsim SE 10.0c

    it looks fine but

    when I work with "HDL workflow Avisor" (of MATLAB2011b)

    In FPGA synthesis and Analysis : it provides a warning

    "Warning Downstream Integration: Current version 11.0 of Altera QUARTUS II tool on system path may not be compatible with HDL Workflow Advisor. The compatible version: Altera QUARTUS II 9.1. Attempt to continue running Altera QUARTUS II .."

    As Per Altera DSP BUILDER version support

    Altera DSP Builder 9.1 is not supported by MATLAB 2011b.

    If I install Altera Quartus II 9.1 thn Altera DSP Builder should be also 9.1.

    how to solve this problem.

    I'm looking forward to receive your kind response ...

    With Regards

    Kingsuk
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have no idea what HDL Workflow Advisor is, but you don't have to use it to use DSP Builder.

    I think you can safely ignore this message.