cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
xiuyeu
Visitor
Visitor
8,104 Views
Registered: ‎08-11-2013

Please help: what wrong with this Matlab R2011b and system generator 13.4

Hi, I am trying to generate VHDL code from matlab simulink. I used matlab version R2011b and Xilinx ISE 13.4. It is compabtable according to the website. http://www.xilinx.com/support/answers/17966.htm . My simulink model is very simple : constant (0.5) - gateway in -- gateway out -- display (see the attachment). WHen I simulates by matlab it works fine. But when I click to sysgen block and click to generate VHDL it gave me the error below for gateway in.

 

An internal error occurred in the Xilinx Blockset Library.

Please report this error to Xilinx (http://support.xilinx.com), in as much detail as possible. You may also find immediate help in the Answers Database and other online resources at http://support.xilinx.com.

Since it is possible that this internal error resulted from an unhandled usage error in your design, we advise you to carefully check the usage of the block reporting the internal error. If errors persist, we recommend that you restart MATLAB.

Reported by:
'in_out/Gateway In'

 

 

I have searched Internet there maybe an issue about the software compatable. However, two software is fine according to website.

 

in_result.jpg

 

 

Please help me for this. Thanks

 

 

 

0 Kudos
9 Replies
xiuyeu
Visitor
Visitor
8,069 Views
Registered: ‎08-11-2013

Hi, a problem above still happen when I install the system generator 14.2. I have also configurate the system generator configuration pointing to matlab direcetory R2011b before. But still cannot generate when clicking in system generator.

 

I forget to mention that Matlab 2011b is in my PC before. SO do we need to re-install Matlab before install Xilinx ISE 14.2?

 

What wrong with this gateway in/out ? What is Fatal internal error in this situation? Is there anyway to trace the Xilinx blockset in Matlab is used by Xilinx ISE14.2?

 

I copy the log file below:

--------------------------------- Version Log ----------------------------------
Version                                 Path
System Generator 14.2                   C:/Xilinx/14.2/ISE_DS/ISE/sysgen
Matlab 7.13.0.564 (R2011b)              C:/MATLAB/R2011b
ISE                                     C:/Xilinx/14.2/ISE_DS/ISE
--------------------------------------------------------------------------------
Summary of Errors:
Error 0001: Fatal Internal Error
     Block: 'in_out/Gateway In'
--------------------------------------------------------------------------------

Error 0001:

Reported by:
  'in_out/Gateway In'

Details:
An internal error occurred in the Xilinx Blockset Library.

Please report this error to Xilinx (http://support.xilinx.com),
in as much detail as possible. You may also find immediate help
in the Answers Database and other online resources at http://support.xilinx.com.

Since it is possible that this internal error resulted from an
unhandled usage error in your design, we advise you to carefully
check the usage of the block reporting the internal error. If
errors persist, we recommend that you restart MATLAB.
--------------------------------------------------------------------------------

 

Please help! Urgent

0 Kudos
vsrunga
Xilinx Employee
Xilinx Employee
8,067 Views
Registered: ‎07-11-2011

Hi

 

Please start here and check if anything helps:

 

http://www.xilinx.com/support/answers/44617.htm

 

 

Regards,

Vanitha.

 

---------------------------------------------------------------------------------------------
Please do google search before posting, you may find relavant information.
Mark the post - "Accept as solution" and give kudos if information provided is helpful and reply oriented
0 Kudos
xiuyeu
Visitor
Visitor
8,061 Views
Registered: ‎08-11-2013

Thanks for your quick reply, Vsrunga!

 

I have been following the solution in the link you sent. Both Matlab and ISE at the moment at C:\matlab and C:\xilinx\14.2 So I dont reinstall. To add XILINX environment variable I went to "my computer" and setup a PATH as : $C:\Xilinx\14.2\ISE_DS\ISE\bin\nt;$C:\Xilinx\14.2\ISE_DS\ISE\lib\nt

Follow the order to clear a cach in the link http://www.xilinx.com/support/answers/37984.htm

 

However, it still have the same problem as before. I saw line below at matlab promt

 

 In C:\Xilinx\14.2\ISE_DS\ISE\sysgen\bin\nt\xlCompileGenerateMdl.p>xlCompileGenerateMdl at 203
  In C:\Xilinx\14.2\ISE_DS\ISE\sysgen\bin\nt\xlGenerateButton.p>xlGenerateButton at 325
  In C:\Xilinx\14.2\ISE_DS\ISE\sysgen\bin\nt\xlSysgenGUI.p>xlSysgenGUI at 51

 

Do you know what does this means? Thanks


@vsrunga wrote:

Hi

 

Please start here and check if anything helps:

 

http://www.xilinx.com/support/answers/44617.htm

 

 

Regards,

Vanitha.

 




 

0 Kudos
xiuyeu
Visitor
Visitor
8,040 Views
Registered: ‎08-11-2013

Hi, How can we know Xilinx environment varibal setting up correctly?. As the link http://www.xilinx.com/support/answers/44617.htm . Which part of link should be involved to generate in SysGen ? Please help!


@xiuyeu wrote:

Thanks for your quick reply, Vsrunga!

 

I have been following the solution in the link you sent. Both Matlab and ISE at the moment at C:\matlab and C:\xilinx\14.2 So I dont reinstall. To add XILINX environment variable I went to "my computer" and setup a PATH as : $C:\Xilinx\14.2\ISE_DS\ISE\bin\nt;$C:\Xilinx\14.2\ISE_DS\ISE\lib\nt

Follow the order to clear a cach in the link http://www.xilinx.com/support/answers/37984.htm

 

However, it still have the same problem as before. I saw line below at matlab promt

 

 In C:\Xilinx\14.2\ISE_DS\ISE\sysgen\bin\nt\xlCompileGenerateMdl.p>xlCompileGenerateMdl at 203
  In C:\Xilinx\14.2\ISE_DS\ISE\sysgen\bin\nt\xlGenerateButton.p>xlGenerateButton at 325
  In C:\Xilinx\14.2\ISE_DS\ISE\sysgen\bin\nt\xlSysgenGUI.p>xlSysgenGUI at 51

 

Do you know what does this means? Thanks


@vsrunga wrote:

Hi

 

Please start here and check if anything helps:

 

http://www.xilinx.com/support/answers/44617.htm

 

 

Regards,

Vanitha.

 




 


 

0 Kudos
debugasm
Adventurer
Adventurer
8,027 Views
Registered: ‎02-23-2013

Hi, I had the same problem and I have and I partially solved in this way (sometime compilation fail) :

 

This is for Matlab 2012b plus Xilinx 14.6, perhaps also works with older versions

 

Remove all program (Matlab and Xilinx) before start.

 

I use Windows 7 x64 and it works.

 

(0) You must be an "Administrator" for all

(1) Install MATlab 2012b in manual directory "C:\MATlab\" (first install Matlab)

(2) Install Xilinx ISE 14.6 in default directory "C:\Xilinx\"
(3) Configure System Generator with MTAlab 2012b installation
(4) Place Xilinx License in "C:\.Xilixn\"

(5) Create this SYSTEM and USER variables (create directory C:\TEMP if not exist):

    - XILINX = C:\Xilinx\14.6\ISE_DS\ISE
    - XILINX_PLANAHEAD = C:\Xilinx\14.6\ISE_DS\PlanAhead
    - XILINXD_LICENSE_FILE = C:\.Xilinx\Xilinx.lic
    - TMP = C:\TEMP
    - TEMP = C:\TEMP
    
(6) Add to PATH on SYSTEM and USER :

    - %XILINX%\bin\nt
    - %XILINX%\bin\nt64
    - %XILINX%\lib\nt
    - %XILINX%\lib\nt64
    - %XILINX_PLANAHEAD%\bin    
    
(6) Restart

(7) For model use a short directory path, ex: C:\Model\Model.mdl or D:\Project\Files\Model\Model.mdl. Do not use direcotry with "C:\Users\virtual\Desktop" ecc.

 

debugasm

0 Kudos
xiuyeu
Visitor
Visitor
8,005 Views
Registered: ‎08-11-2013

Hi Debugasm, Thanks for your clear guide. I have followed your processures. However, it still not work for my PC. I spent whole day to work it out but fail.

 

I use Window 7x32 bits with Matlab 2012a and ISE 14.2 . I donot have ISE 14.6 (no license) and ISE 14.2 license through server. Not directly point to C:\.Xilixn\ . I also donot have %XILINX%\bin\nt64 and %XILINX%\lib\nt64 at the PATH .

 

My question is :  Is that fine if we request a license from the server ?

 

0 Kudos
debugasm
Adventurer
Adventurer
7,996 Views
Registered: ‎02-23-2013

Hi xiuyeu,

 

> I use Window 7x32 bits with Matlab 2012a and ISE 14.2 ...

 

I have tested all versions up to 14.6 and all versione from 14.1 to 14.5 had problems with matlab, compared to version 13.x and older. The only one that seems to work (not yet perfect) version is 14.6.

 

My advice is try to download the version 14.6, install it by removing the 14.2, if it is not a problem. Request an Evaluation Version 30 day of license and working with this for check the problem.

 

>  Is that fine if we request a license from the server ?

 

I can not answer, but it should not be a problem. Many companies use a license server license to distribute to their employees. So I doubt it will not work.

 

debugasm

0 Kudos
xiuyeu
Visitor
Visitor
7,980 Views
Registered: ‎08-11-2013

Hi debugasm, Thanks again for your recommendation. I have installed ISE 14.6 as your suggestion with evaluation license. I have download and stored in c:\xilinx\xilinx.lic . And finally I think it works with Matlab 2012a. However, we have not yet bought this license. :(

 

Refering to the Xilinx link http://www.xilinx.com/support/answers/17966.htm . It said ISE 14.3 or 14.2 support to Matlab 2012a. I wonder is Xilinx and Matlab actually test for this compatible software ?

 

I also could not find document (system generator) to guide how to debug if we get stuck. I donot like each time we have a problem we have to install the new software.

0 Kudos
debugasm
Adventurer
Adventurer
7,976 Views
Registered: ‎02-23-2013

Hi,

 

> I wonder is Xilinx and Matlab actually test for this compatible software ?

 

I guess so, and at least I hope so. Surely they can not test all possible configurations.

 

> I donot like each time we have a problem we have to install the new software.

 

Is always certainly correct to use the latest version of the software when this is possible.

 

Your configuration with Xilinx 14.6 and Matlab 2012a plus evaluation license now working ?

 

If yes, not remain you to try again with Xilinx 14.2 and evaluation license.

 

debugasm

0 Kudos