Re: [casper] Help with Xilinx and Simulink

2016-08-16 Thread Adam Isaacson
Hi Heystek,

I am a bit confused where you are now. Are you still getting the following
error in red below or has this been resolved, but now you are encountering
another error (Error using gen_xps_files(362)) after you applied the chmod
command? Please send screen captures of the actual errors, thanks.

Details:
standard exception: XNetlistEngine:
Exception message could not be parsed:
com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first
pass text file at
/home/heystek/Desktop/tut1/sysgen/sysgen/masterScript4237968397574398825.pl
line 559'

I had a brief look at line 362 of gen_xps_files.m and it is connected with
the pcores, so once again I have to ask whether you repeated the compile
tweaks after you installed ISE 14.7 (https://casper.berkeley.edu/
wiki/MSSGE_Setup_with_Xilinx_14.x_and_Matlab_2012b)? Also, the tut1
Simulink model that I have been working with is a slx file and not an mdl
file? What tut 1 file are you using?

I am making the assumption that you are based near the Cape Town area? If I
am correct and if you are still experiencing difficulties why not bring
your machine and pop over? I think this may be the easiest solution :).
Just email me directly if you favour this option.

Kind Regards,

Adam

On Tue, Aug 16, 2016 at 9:02 PM, Heystek Grobler 
wrote:

> Hi James
>
> I tried the command and it accepted it. The matlab terminal gives the
> following error:
>
> Error using gen_xps_files(362)
>
> Does it make a diffirence if the simulink models are .mdl or .slx?
>
> Thank for your help
>
> Heystek
>
> On Tue, Aug 16, 2016 at 5:40 PM, James Smith  wrote:
>
>> Hello Heystek,
>>
>> Just to get you an answer quickly, try the following command:
>>
>> chmod 777 -R /home/heystek/Desktop/tut1
>>
>> If that command makes an error message then add sudo.
>> It's funny that you should have permissions issues there, if this doesn't
>> fix things then there might be stranger issues at play.
>>
>> Regards,
>> James
>>
>>
>> On Tue, Aug 16, 2016 at 5:36 PM, Heystek Grobler <
>> heystekgrob...@gmail.com> wrote:
>>
>>> Hi James and Adam
>>>
>>> I got it working. The chmod +x startsg command did the trick. I started
>>> with the first casper tutorial, but when the system generator compiles it
>>> the tutorial breaks. It gives two errors.
>>>
>>> 1. Design Error  DefaultBlockDiagram  System Generator   Caught standard
>>> exception
>>> 2. Block ErrorAddSub   System Generator
>>>
>>> The following error log was also generated:
>>>
>>> - Version Log
>>> --
>>> Version Path
>>> System Generator/opt/Xilinx/14.7/ISE_DS/ISE/s
>>> ysgen
>>> Matlab 8.0.0.783 (R2012b)   /usr/local/MATLAB/R2012b
>>> ISE /opt/Xilinx/14.7/ISE_DS/ISE
>>> 
>>> 
>>> Summary of Errors:
>>> Error 0001: caught standard exception
>>>  Block: Unspecified
>>> 
>>> 
>>>
>>> Error 0001:
>>>
>>> Reported by:
>>>   Unspecified
>>>
>>> Details:
>>> standard exception: XNetlistEngine:
>>> Exception message could not be parsed:
>>> com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first
>>> pass text file at
>>> /home/heystek/Desktop/tut1/sysgen/sysgen/masterScript423796839757439882
>>> 5.pl
>>> line 559'
>>>
>>> 
>>> 
>>>
>>> Do you perhaps have an idea how I can fix it?
>>>
>>> Thanks for all the help.
>>>
>>> Have a wonderful day.
>>>
>>> Heystek
>>>
>>>
>>> On Tue, Aug 16, 2016 at 8:07 AM, James Smith  wrote:
>>>
 Hello Heystek,

 This should be a relatively trivial problem to solve:

 cd ~ # This is a shortcut for your home directory
 git clone >>> SKA-SA one>
 cd mlib-devel
 ./startsg

 If that doesn't work, then do this:
 chmod +x startsg

 Then you should be fine.

 Regards,
 James


 On Mon, Aug 15, 2016 at 7:46 PM, Heystek Grobler <
 heystekgrob...@gmail.com> wrote:

> Hi Adam and James
>
> I am working on my personal computer. I will ask a IT guy to help me
> with the privileges and also clone the mlib-devel into the home
> directory and try to run it again.
>
> Thanks for all your help.
>
> Heystek
>
> On Mon, Aug 15, 2016 at 12:58 PM, Adam Isaacson 
> wrote:
>
>> Hi Heystek,
>>
>> This issue is not with your script, but your linux permissions. I
>> suggest you follow what James suggests. The fact that you can't run sudo
>> though means that you may need your IT guy to give you sudo rights, but 
>> if
>> you are working off the university server that may 

Re: [casper] Help with Xilinx and Simulink

2016-08-16 Thread David MacMahon
Hi, Heystek,

> On Aug 16, 2016, at 8:36 AM, Heystek Grobler  wrote:
> 
> Details:
> standard exception: XNetlistEngine:
> Exception message could not be parsed:
> com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first
> pass text file at
> /home/heystek/Desktop/tut1/sysgen/sysgen/masterScript4237968397574398825.pl
> line 559'
> 

I suggest you open this .pl file with a text editor and look at (and around) 
line 559 to see what that line is trying to do.  That might provide some clues.

HTH,
Dave



Re: [casper] Help with Xilinx and Simulink

2016-08-16 Thread James Smith
Hello Heystek,

It shouldn't matter between .mdl and .slx. Your error there is a bit more
interesting, I'm not sure how to go about solving it or indeed what
information would be needed.

A bit more context information will probably help the other gurus on this
list to assist you though.

Regards,
James


On Tue, Aug 16, 2016 at 9:02 PM, Heystek Grobler 
wrote:

> Hi James
>
> I tried the command and it accepted it. The matlab terminal gives the
> following error:
>
> Error using gen_xps_files(362)
>
> Does it make a diffirence if the simulink models are .mdl or .slx?
>
> Thank for your help
>
> Heystek
>
> On Tue, Aug 16, 2016 at 5:40 PM, James Smith  wrote:
>
>> Hello Heystek,
>>
>> Just to get you an answer quickly, try the following command:
>>
>> chmod 777 -R /home/heystek/Desktop/tut1
>>
>> If that command makes an error message then add sudo.
>> It's funny that you should have permissions issues there, if this doesn't
>> fix things then there might be stranger issues at play.
>>
>> Regards,
>> James
>>
>>
>> On Tue, Aug 16, 2016 at 5:36 PM, Heystek Grobler <
>> heystekgrob...@gmail.com> wrote:
>>
>>> Hi James and Adam
>>>
>>> I got it working. The chmod +x startsg command did the trick. I started
>>> with the first casper tutorial, but when the system generator compiles it
>>> the tutorial breaks. It gives two errors.
>>>
>>> 1. Design Error  DefaultBlockDiagram  System Generator   Caught standard
>>> exception
>>> 2. Block ErrorAddSub   System Generator
>>>
>>> The following error log was also generated:
>>>
>>> - Version Log
>>> --
>>> Version Path
>>> System Generator/opt/Xilinx/14.7/ISE_DS/ISE/s
>>> ysgen
>>> Matlab 8.0.0.783 (R2012b)   /usr/local/MATLAB/R2012b
>>> ISE /opt/Xilinx/14.7/ISE_DS/ISE
>>> 
>>> 
>>> Summary of Errors:
>>> Error 0001: caught standard exception
>>>  Block: Unspecified
>>> 
>>> 
>>>
>>> Error 0001:
>>>
>>> Reported by:
>>>   Unspecified
>>>
>>> Details:
>>> standard exception: XNetlistEngine:
>>> Exception message could not be parsed:
>>> com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first
>>> pass text file at
>>> /home/heystek/Desktop/tut1/sysgen/sysgen/masterScript423796839757439882
>>> 5.pl
>>> line 559'
>>>
>>> 
>>> 
>>>
>>> Do you perhaps have an idea how I can fix it?
>>>
>>> Thanks for all the help.
>>>
>>> Have a wonderful day.
>>>
>>> Heystek
>>>
>>>
>>> On Tue, Aug 16, 2016 at 8:07 AM, James Smith  wrote:
>>>
 Hello Heystek,

 This should be a relatively trivial problem to solve:

 cd ~ # This is a shortcut for your home directory
 git clone >>> SKA-SA one>
 cd mlib-devel
 ./startsg

 If that doesn't work, then do this:
 chmod +x startsg

 Then you should be fine.

 Regards,
 James


 On Mon, Aug 15, 2016 at 7:46 PM, Heystek Grobler <
 heystekgrob...@gmail.com> wrote:

> Hi Adam and James
>
> I am working on my personal computer. I will ask a IT guy to help me
> with the privileges and also clone the mlib-devel into the home
> directory and try to run it again.
>
> Thanks for all your help.
>
> Heystek
>
> On Mon, Aug 15, 2016 at 12:58 PM, Adam Isaacson 
> wrote:
>
>> Hi Heystek,
>>
>> This issue is not with your script, but your linux permissions. I
>> suggest you follow what James suggests. The fact that you can't run sudo
>> though means that you may need your IT guy to give you sudo rights, but 
>> if
>> you are working off the university server that may be an issue - as James
>> says, you shouldn't need this if you install into your home directory.
>>
>> Kind Regards,
>>
>> Adam
>>
>> On Mon, Aug 15, 2016 at 11:27 AM, James Smith 
>> wrote:
>>
>>> Hello Heystek,
>>>
>>> It would be a bit easier to debug if you posted the terminal
>>> session, along with the commands you ran.
>>>
>>> Also, please run "ls -l" in the directory and post that as well. It
>>> might just be that you need to give the file executable permissions.
>>>
>>> Regards,
>>> James
>>>
>>>
>>> On Mon, Aug 15, 2016 at 11:24 AM, Heystek Grobler <
>>> heystekgrob...@gmail.com> wrote:
>>>
 Hi Adam

 I modified the startsg file. When I run it I get the error in the
 terminal "Permission denied". When I run the startsg file as sudo I 
 get the
 error 

Re: [casper] Help with Xilinx and Simulink

2016-08-16 Thread Heystek Grobler
Hi James

I tried the command and it accepted it. The matlab terminal gives the
following error:

Error using gen_xps_files(362)

Does it make a diffirence if the simulink models are .mdl or .slx?

Thank for your help

Heystek

On Tue, Aug 16, 2016 at 5:40 PM, James Smith  wrote:

> Hello Heystek,
>
> Just to get you an answer quickly, try the following command:
>
> chmod 777 -R /home/heystek/Desktop/tut1
>
> If that command makes an error message then add sudo.
> It's funny that you should have permissions issues there, if this doesn't
> fix things then there might be stranger issues at play.
>
> Regards,
> James
>
>
> On Tue, Aug 16, 2016 at 5:36 PM, Heystek Grobler  > wrote:
>
>> Hi James and Adam
>>
>> I got it working. The chmod +x startsg command did the trick. I started
>> with the first casper tutorial, but when the system generator compiles it
>> the tutorial breaks. It gives two errors.
>>
>> 1. Design Error  DefaultBlockDiagram  System Generator   Caught standard
>> exception
>> 2. Block ErrorAddSub   System Generator
>>
>> The following error log was also generated:
>>
>> - Version Log
>> --
>> Version Path
>> System Generator/opt/Xilinx/14.7/ISE_DS/ISE/s
>> ysgen
>> Matlab 8.0.0.783 (R2012b)   /usr/local/MATLAB/R2012b
>> ISE /opt/Xilinx/14.7/ISE_DS/ISE
>> 
>> 
>> Summary of Errors:
>> Error 0001: caught standard exception
>>  Block: Unspecified
>> 
>> 
>>
>> Error 0001:
>>
>> Reported by:
>>   Unspecified
>>
>> Details:
>> standard exception: XNetlistEngine:
>> Exception message could not be parsed:
>> com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first
>> pass text file at
>> /home/heystek/Desktop/tut1/sysgen/sysgen/masterScript423796839757439882
>> 5.pl
>> line 559'
>>
>> 
>> 
>>
>> Do you perhaps have an idea how I can fix it?
>>
>> Thanks for all the help.
>>
>> Have a wonderful day.
>>
>> Heystek
>>
>>
>> On Tue, Aug 16, 2016 at 8:07 AM, James Smith  wrote:
>>
>>> Hello Heystek,
>>>
>>> This should be a relatively trivial problem to solve:
>>>
>>> cd ~ # This is a shortcut for your home directory
>>> git clone >> SKA-SA one>
>>> cd mlib-devel
>>> ./startsg
>>>
>>> If that doesn't work, then do this:
>>> chmod +x startsg
>>>
>>> Then you should be fine.
>>>
>>> Regards,
>>> James
>>>
>>>
>>> On Mon, Aug 15, 2016 at 7:46 PM, Heystek Grobler <
>>> heystekgrob...@gmail.com> wrote:
>>>
 Hi Adam and James

 I am working on my personal computer. I will ask a IT guy to help me
 with the privileges and also clone the mlib-devel into the home
 directory and try to run it again.

 Thanks for all your help.

 Heystek

 On Mon, Aug 15, 2016 at 12:58 PM, Adam Isaacson 
 wrote:

> Hi Heystek,
>
> This issue is not with your script, but your linux permissions. I
> suggest you follow what James suggests. The fact that you can't run sudo
> though means that you may need your IT guy to give you sudo rights, but if
> you are working off the university server that may be an issue - as James
> says, you shouldn't need this if you install into your home directory.
>
> Kind Regards,
>
> Adam
>
> On Mon, Aug 15, 2016 at 11:27 AM, James Smith 
> wrote:
>
>> Hello Heystek,
>>
>> It would be a bit easier to debug if you posted the terminal session,
>> along with the commands you ran.
>>
>> Also, please run "ls -l" in the directory and post that as well. It
>> might just be that you need to give the file executable permissions.
>>
>> Regards,
>> James
>>
>>
>> On Mon, Aug 15, 2016 at 11:24 AM, Heystek Grobler <
>> heystekgrob...@gmail.com> wrote:
>>
>>> Hi Adam
>>>
>>> I modified the startsg file. When I run it I get the error in the
>>> terminal "Permission denied". When I run the startsg file as sudo I get 
>>> the
>>> error "command not found".
>>>
>>> I have attached my modified startsg file.
>>>
>>> Do you perhaps have any ideas of how to solve it?
>>>
>>> Sorry for the inconvenience
>>>
>>> Heystek
>>>
>>> On Mon, Aug 15, 2016 at 11:10 AM, Adam Isaacson >> > wrote:
>>>
 Hi Heystek,

 Nope, just run the ./startsg and matlab will run the startup.m file
 for you when it opens. You should already have both the startsg and
 startup.m files, but I gave you mine as I know it 

Re: [casper] Help with Xilinx and Simulink

2016-08-16 Thread James Smith
Hello Heystek,

Just to get you an answer quickly, try the following command:

chmod 777 -R /home/heystek/Desktop/tut1

If that command makes an error message then add sudo.
It's funny that you should have permissions issues there, if this doesn't
fix things then there might be stranger issues at play.

Regards,
James


On Tue, Aug 16, 2016 at 5:36 PM, Heystek Grobler 
wrote:

> Hi James and Adam
>
> I got it working. The chmod +x startsg command did the trick. I started
> with the first casper tutorial, but when the system generator compiles it
> the tutorial breaks. It gives two errors.
>
> 1. Design Error  DefaultBlockDiagram  System Generator   Caught standard
> exception
> 2. Block ErrorAddSub   System Generator
>
> The following error log was also generated:
>
> - Version Log
> --
> Version Path
> System Generator/opt/Xilinx/14.7/ISE_DS/ISE/sysgen
> Matlab 8.0.0.783 (R2012b)   /usr/local/MATLAB/R2012b
> ISE /opt/Xilinx/14.7/ISE_DS/ISE
> 
> 
> Summary of Errors:
> Error 0001: caught standard exception
>  Block: Unspecified
> 
> 
>
> Error 0001:
>
> Reported by:
>   Unspecified
>
> Details:
> standard exception: XNetlistEngine:
> Exception message could not be parsed:
> com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first
> pass text file at
> /home/heystek/Desktop/tut1/sysgen/sysgen/masterScript423796839757439882
> 5.pl
> line 559'
>
> 
> 
>
> Do you perhaps have an idea how I can fix it?
>
> Thanks for all the help.
>
> Have a wonderful day.
>
> Heystek
>
>
> On Tue, Aug 16, 2016 at 8:07 AM, James Smith  wrote:
>
>> Hello Heystek,
>>
>> This should be a relatively trivial problem to solve:
>>
>> cd ~ # This is a shortcut for your home directory
>> git clone > SKA-SA one>
>> cd mlib-devel
>> ./startsg
>>
>> If that doesn't work, then do this:
>> chmod +x startsg
>>
>> Then you should be fine.
>>
>> Regards,
>> James
>>
>>
>> On Mon, Aug 15, 2016 at 7:46 PM, Heystek Grobler <
>> heystekgrob...@gmail.com> wrote:
>>
>>> Hi Adam and James
>>>
>>> I am working on my personal computer. I will ask a IT guy to help me
>>> with the privileges and also clone the mlib-devel into the home
>>> directory and try to run it again.
>>>
>>> Thanks for all your help.
>>>
>>> Heystek
>>>
>>> On Mon, Aug 15, 2016 at 12:58 PM, Adam Isaacson 
>>> wrote:
>>>
 Hi Heystek,

 This issue is not with your script, but your linux permissions. I
 suggest you follow what James suggests. The fact that you can't run sudo
 though means that you may need your IT guy to give you sudo rights, but if
 you are working off the university server that may be an issue - as James
 says, you shouldn't need this if you install into your home directory.

 Kind Regards,

 Adam

 On Mon, Aug 15, 2016 at 11:27 AM, James Smith  wrote:

> Hello Heystek,
>
> It would be a bit easier to debug if you posted the terminal session,
> along with the commands you ran.
>
> Also, please run "ls -l" in the directory and post that as well. It
> might just be that you need to give the file executable permissions.
>
> Regards,
> James
>
>
> On Mon, Aug 15, 2016 at 11:24 AM, Heystek Grobler <
> heystekgrob...@gmail.com> wrote:
>
>> Hi Adam
>>
>> I modified the startsg file. When I run it I get the error in the
>> terminal "Permission denied". When I run the startsg file as sudo I get 
>> the
>> error "command not found".
>>
>> I have attached my modified startsg file.
>>
>> Do you perhaps have any ideas of how to solve it?
>>
>> Sorry for the inconvenience
>>
>> Heystek
>>
>> On Mon, Aug 15, 2016 at 11:10 AM, Adam Isaacson 
>> wrote:
>>
>>> Hi Heystek,
>>>
>>> Nope, just run the ./startsg and matlab will run the startup.m file
>>> for you when it opens. You should already have both the startsg and
>>> startup.m files, but I gave you mine as I know it works.
>>>
>>> Kind Regards,
>>>
>>> Adam
>>>
>>> On Mon, Aug 15, 2016 at 10:58 AM, Heystek Grobler <
>>> heystekgrob...@gmail.com> wrote:
>>>
 Hi Adam

 I will try these files! Do I run the startup.m file in matlab as
 well?

 Have a nice day

 Heystek

 On Mon, Aug 15, 2016 at 9:04 AM, Adam Isaacson  wrote:

> Hi 

Re: [casper] Help with Xilinx and Simulink

2016-08-16 Thread Heystek Grobler
Hi James and Adam

I got it working. The chmod +x startsg command did the trick. I started
with the first casper tutorial, but when the system generator compiles it
the tutorial breaks. It gives two errors.

1. Design Error  DefaultBlockDiagram  System Generator   Caught standard
exception
2. Block ErrorAddSub   System Generator

The following error log was also generated:

- Version Log
--
Version Path
System Generator/opt/Xilinx/14.7/ISE_DS/ISE/sysgen
Matlab 8.0.0.783 (R2012b)   /usr/local/MATLAB/R2012b
ISE /opt/Xilinx/14.7/ISE_DS/ISE

Summary of Errors:
Error 0001: caught standard exception
 Block: Unspecified


Error 0001:

Reported by:
  Unspecified

Details:
standard exception: XNetlistEngine:
Exception message could not be parsed:
com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first
pass text file at
/home/heystek/Desktop/tut1/sysgen/sysgen/masterScript4237968397574398825.pl
line 559'



Do you perhaps have an idea how I can fix it?

Thanks for all the help.

Have a wonderful day.

Heystek


On Tue, Aug 16, 2016 at 8:07 AM, James Smith  wrote:

> Hello Heystek,
>
> This should be a relatively trivial problem to solve:
>
> cd ~ # This is a shortcut for your home directory
> git clone  SKA-SA one>
> cd mlib-devel
> ./startsg
>
> If that doesn't work, then do this:
> chmod +x startsg
>
> Then you should be fine.
>
> Regards,
> James
>
>
> On Mon, Aug 15, 2016 at 7:46 PM, Heystek Grobler  > wrote:
>
>> Hi Adam and James
>>
>> I am working on my personal computer. I will ask a IT guy to help me with
>> the privileges and also clone the mlib-devel into the home directory and
>> try to run it again.
>>
>> Thanks for all your help.
>>
>> Heystek
>>
>> On Mon, Aug 15, 2016 at 12:58 PM, Adam Isaacson 
>> wrote:
>>
>>> Hi Heystek,
>>>
>>> This issue is not with your script, but your linux permissions. I
>>> suggest you follow what James suggests. The fact that you can't run sudo
>>> though means that you may need your IT guy to give you sudo rights, but if
>>> you are working off the university server that may be an issue - as James
>>> says, you shouldn't need this if you install into your home directory.
>>>
>>> Kind Regards,
>>>
>>> Adam
>>>
>>> On Mon, Aug 15, 2016 at 11:27 AM, James Smith  wrote:
>>>
 Hello Heystek,

 It would be a bit easier to debug if you posted the terminal session,
 along with the commands you ran.

 Also, please run "ls -l" in the directory and post that as well. It
 might just be that you need to give the file executable permissions.

 Regards,
 James


 On Mon, Aug 15, 2016 at 11:24 AM, Heystek Grobler <
 heystekgrob...@gmail.com> wrote:

> Hi Adam
>
> I modified the startsg file. When I run it I get the error in the
> terminal "Permission denied". When I run the startsg file as sudo I get 
> the
> error "command not found".
>
> I have attached my modified startsg file.
>
> Do you perhaps have any ideas of how to solve it?
>
> Sorry for the inconvenience
>
> Heystek
>
> On Mon, Aug 15, 2016 at 11:10 AM, Adam Isaacson 
> wrote:
>
>> Hi Heystek,
>>
>> Nope, just run the ./startsg and matlab will run the startup.m file
>> for you when it opens. You should already have both the startsg and
>> startup.m files, but I gave you mine as I know it works.
>>
>> Kind Regards,
>>
>> Adam
>>
>> On Mon, Aug 15, 2016 at 10:58 AM, Heystek Grobler <
>> heystekgrob...@gmail.com> wrote:
>>
>>> Hi Adam
>>>
>>> I will try these files! Do I run the startup.m file in matlab as
>>> well?
>>>
>>> Have a nice day
>>>
>>> Heystek
>>>
>>> On Mon, Aug 15, 2016 at 9:04 AM, Adam Isaacson 
>>> wrote:
>>>
 Hi Heystek,

 No worries. I was in your position just a few months ago :). I have
 attached my matlab startup scripts (startsg and startup.m). These must 
 be
 placed in the "mlib_devel" directory. You will probably have to change 
 the
 paths to where your installs are.

 All you need to do is the following:

 1) Startup matlab R2012b, by running the startsg script. Using the
 Ubuntu terminal, in the "mlib_devel" directory type: "./startsg". This
 should startup matlab. There should be a message saying that