FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
6352 Discussions

Demo not running, s-function not found

Altera_Forum
Honored Contributor II
1,669 Views

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
0 Kudos
10 Replies
Altera_Forum
Honored Contributor II
299 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
299 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

Sounds like your paths are not configured properly. Type: 

 

getenv LD_LIBRARY_PATH 

 

There 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.
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

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/post2008a 

 

It should say: 

 

<installation directory>/dspba/Blocksets/BaseBlocks
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

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?
0 Kudos
Altera_Forum
Honored Contributor II
299 Views

Probably best to ask this in a new thread (perhaps in a different forum) so that the right people look at it.

0 Kudos
Altera_Forum
Honored Contributor II
299 Views

Could you share how do you fixed the problem? 

 

Thanks, 

Jiuxiang
0 Kudos
Reply