Hi everyone,it's one day that im trying to run the demos of the DSP builder but everytime that i try to run one of them i get the following errors: S-function 'mip_control' does not exist S-function 'mip_chanview' does not exist S-function 'mip_cic' does not exist And so on, it seems like that something is missing, I also tried to check the Model Dependencies and all the s-function called 'mip_...' are not found. Does someone know how to solve this problem? Thanks in advance ps: i have installed quartus and dsp 10.1, matlab 2009b
Are you running 64-bit MATLAB? Type mexext at the MATLAB prompt. If it says mexw64 or mexa64 then it's 64-bit. On windows, you need to install the 32-bit version. On Linux, run matlab with the "-glnx86" option.
--- Quote Start --- Are you running 64-bit MATLAB? Type mexext at the MATLAB prompt. If it says mexw64 or mexa64 then it's 64-bit. On windows, you need to install the 32-bit version. On Linux, run matlab with the "-glnx86" option. --- Quote End --- Yes, in fact I was running the 64-bit version, but now that i lunched the 32-bit one and tried to lunch the demo_fibonacci, i get the following errors: Invalid MEX-file quartus_path/mip_control.mexglx Invalid MEX-file quartus_path/mip_prim.mexglx what could it still be? thanks
Sounds like your paths are not configured properly. Type:
getenv LD_LIBRARY_PATHThere will be a long string (you'll have to scroll to see all of it), containing paths separated by colons. Look through the paths and see if it contains any that point into your Quartus or DSP Builder installation. Please list those here.
here follows what i got:/opt/Matlab2009b_64/sys/os/glnx86:/opt/Matlab2009b_64/bin/glnx86: /opt/Matlab2009b_64/extern/lib/glnx86: /opt/Matlab2009b_64/runtime/glnx86: /opt/Matlab2009b_64/sys/java/jre/glnx86/jre/lib/i386/native_threads: /opt/Matlab2009b_64/sys/java/jre/glnx86/jre/lib/i386/client: /opt/Matlab2009b_64/sys/java/jre/glnx86/jre/lib/i386: /opt/Xilinx_12.4/ISE_DS/common/lib/lin64: /opt/Xilinx_12.4/ISE_DS/ISE/lib/lin64: /opt/Xilinx_12.4/ISE_DS/ISE/smartmodel/lin64/installed_lin64/lib: /opt/Xilinx_12.4/ISE_DS/EDK/lib/lin64: /usr/lib64: /usr/lib: /usr/local/lib64: /usr/local/lib: /usr/X11R6/lib:/usr/local/ilog/views51/lib/x86_RHEL3.0_3.2/shared:/usr/local/ilog/views51/studio/x86_RHEL3.0_3.2/shared
Ok so the problem is that you don't have the Altera library paths in this. Take a look at p3-4 in this:http://www.altera.com/literature/hb/dspb/hb_dspb_intro.pdf There's a mistake on that page when it says add:
<installation directory>/dspba/Blocksets/BaseBlocks/post2008aIt should say:
Cool! I think now that problem is solved, but now I get the two following errors:Model error/ Unespected standard exception from MEX file/ What() is:boost::filesystem::create_directory: Permission denied: "../rtl" Could it be that I am not running the OS as root user? Thanks for your help
Your problem is that you don't have permission to write to ../rtl.You have two choices: 1) open up the Control block in the design you're generating and change the path to one that you do have permission to write to. 2) change directory to one from which you can write to ../rtl
Cool, it's working thanks!Another little problem, when i launch Quartus II and I start the compilation the Fitter gives to me an error: Current license file does not support the EP2C... I set a Cyclone II as device; how can I know which fpgas my license file supports?