Re: [casper] Matlab crashes with tutorial 3

2012-05-11 Thread Jack Hickish
On 11 May 2012 03:07, Gopal Narayanan go...@astro.umass.edu wrote:

 Hi Jack,

 All is well now. I indeed had placed the pcore files in the wrong
 directory, one above the required pcores subdirectory. Now it compiles
 all the way through. My mistake!

 Thanks a lot for your help.

 Best Regards,
 Gopal



Hey Gopal,

Glad things are working now.

Cheers,

Jack


Re: [casper] Matlab crashes with tutorial 3

2012-05-10 Thread Jack Hickish
Well, you wouldn't want things to be too easy now, would you? :)

Your missing pcore problem occurs because you are compiling with ISE 13.3,
which removed support for some of the cores that we still use. The design
should compile fine with 11.x (which is what I tested it on), but you can
fix the error relatively easily -- see
https://casper.berkeley.edu/wiki/CASPER_With_ISE_13.1

Hopefully that will be the only hurdle,
Jack

On 10 May 2012 15:05, Gopal Narayanan go...@astro.umass.edu wrote:

 Compilation of the MDL file for tutorial 3 in Jack's git repository
 failed. The last few lines in the Matlab window after the failure are:

 -
 Format revision of project to EDK 13.3 completed
 ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_even
 - cannot
   find MPD for the pcore 'opb_bram_if_cntlr_v1_00_a' in any of the
   repositories
   -


 /home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 373
 WARNING:EDK - IPNAME: opb_v20, INSTANCE: opb0 - Superseded core for
 architecture
   'virtex5sx' -


 /home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 99
 ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_even
 - cannot
   find MPD for the pcore 'opb_bram_if_cntlr_v1_00_a' in any of the
   repositories
   -


 /home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 373
 ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_odd
 - cannot
   find MPD for the pcore 'opb_bram_if_cntlr_v1_00_a' in any of the
   repositories
   -


 /home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 461
 ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_even
 - cannot
   find MPD for the pcore -


 /home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 373
 ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_odd
 - cannot
   find MPD for the pcore -


 /home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 461
 ERROR:EDK - while loading XMP file

 XPS% Evaluating file run_xps.tcl
 ERROR:EDK - Load a MHS or XMP file first
 Error using == gen_xps_files at 686
 XPS failed.

 -

 Looks like something in the BRAM block is causing the hiccups.
 Thanks for looking into this.

 Best Regards
 Gopal


 On 05/09/2012 03:58 PM, Jack Hickish wrote:
  Hi all,
 
  After a fair bit of tutorial related pain on the mailist recently, I've
  just forked the tutorial-devel repo to
  https://github.com/jack-h/tutorials_devel and recompiled tutorials 1-3
  with Sysgen 11.5 and the libraries in the main casper github repo.
 
  The tutorials in the 2011 directory *should* work (along with their
  python counterparts).
 
  Feel free to give those a go and give me a shout if you still have
 problems.
 
  Cheers,
  Jack
 
  On 9 May 2012 20:49, John Ford jf...@nrao.edu mailto:jf...@nrao.edu
  wrote:
 
  Hi all.
 
  Rich Lacasse at NRAO in Charlottesville has the same problem.  I also
  tried it on our machine in Green Bank, with the same  bad results.
   That's
  three separate machines and users with the same problem.  Something's
  wrong with this tutorial, or it is incompatible with the latest
  mlib_devel.  Could someone have a look at it?
 
  Thanks!
 
  John
 
 
   Hey Gopal,
  
   One thing you can try is to start matlab without loading the yellow
   blocks,
   open the model file and add them in fresh from the library, save
 and
   return
   to normal usage.
  
   This will require you comment out the load xps_library portion of
 your
   matlab startup script.  Start matlab, and open the desired model
 file.
Doing this, you may be able to see the yellow blocks show up as
 bad
   links with red dashes around them.  From there you can delete
  them, and
   manually add them back in from the xps library.  You may need to
  consult
   the tutorial, or look at the original model .mdl file in a text
  editor, to
   make sure you set the parameters appropriately.  From there you
  should be
   able to save the .mdl file, close matlab, go back to the startup
  file and
   uncomment back to the regular usage.  Hopefully it opens up fine
 this
   time.
  
  
   If this solution works, perhaps I can write something more
  detailed to the
   wiki page for the Tutorials.  Would that be an appropriate edit
  for the
   wiki?  I think something stated on that page would help - we have
 seen
   several new roach users encounter this issue.
  
   Gopal, I was also strongly advised when I started out to use 11.5
  and the
   stable release of the tools.  This solution fixed the problem on
 that
   setup, hopefully it does on 13 as well.
  
   --Laura
  
   On 

Re: [casper] Matlab crashes with tutorial 3

2012-05-10 Thread Gopal Narayanan

Hi Jack,

Thanks to you and Danny Price for suggesting this. I copied over the
pcores in the zip file mentioned in the CASPER wiki to my 
mlib_devel/xps_lib/XPS_ROACH_base/pcores directory, then I deleted the 
previous r_spec_2048_r106 build directory, and then ran the compile again.


It fails with similar results. Here is the error message in the matlab 
window:


Format revision of project to EDK 13.3 completed
ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_even - 
cannot
   find MPD for the pcore 'opb_bram_if_cntlr_v1_00_a' in any of the 
repositories

   -

/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 373
ERROR:EDK - IPNAME: opb_v20, INSTANCE: opb0 - cannot find MPD for the pcore
   'opb_v20_v1_10_c' in any of the repositories -

/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 99
ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_even - 
cannot
   find MPD for the pcore 'opb_bram_if_cntlr_v1_00_a' in any of the 
repositories

   -

/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 373
ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_odd - 
cannot
   find MPD for the pcore 'opb_bram_if_cntlr_v1_00_a' in any of the 
repositories

   -

/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 461
ERROR:EDK - IPNAME: opb_v20, INSTANCE: opb0 - cannot find MPD for the 
pcore -


/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 99
ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_even - 
cannot

   find MPD for the pcore -

/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 373
ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_odd - 
cannot

   find MPD for the pcore -

/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 461
ERROR:EDK - while loading XMP file

XPS% Evaluating file run_xps.tcl
ERROR:EDK - Load a MHS or XMP file first
Error using == gen_xps_files at 686
XPS failed.


I am attaching the r_spec_2048_r106/XPS_ROACH_base/system.mhs file with 
this. Why is it not finding these pcores? There are some details 
described in


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

But I am not sure which of those is applicable to my case.

Also, which directory should I copy the pcores from the 
http://dl.dropbox.com/u/2832602/pcores_for_ise13.zip

zipfile:

  1) mlib_devel/xps_lib/XPS_ROACH_base/pcores
   or
  2) mlib_devel/xps-lib/pcores

I did (1)

Thanks!
Gopal

On 05/10/2012 10:27 AM, Jack Hickish wrote:

Well, you wouldn't want things to be too easy now, would you? :)

Your missing pcore problem occurs because you are compiling with ISE
13.3, which removed support for some of the cores that we still use. The
design should compile fine with 11.x (which is what I tested it on), but
you can fix the error relatively easily -- see
https://casper.berkeley.edu/wiki/CASPER_With_ISE_13.1

Hopefully that will be the only hurdle,
Jack

On 10 May 2012 15:05, Gopal Narayanan go...@astro.umass.edu
mailto:go...@astro.umass.edu wrote:

Compilation of the MDL file for tutorial 3 in Jack's git repository
failed. The last few lines in the Matlab window after the failure are:

-
Format revision of project to EDK 13.3 completed
ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_even
- cannot
   find MPD for the pcore 'opb_bram_if_cntlr_v1_00_a' in any of the
   repositories
   -


/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 373
WARNING:EDK - IPNAME: opb_v20, INSTANCE: opb0 - Superseded core for
architecture
'virtex5sx' -


/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 99
ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_even
- cannot
   find MPD for the pcore 'opb_bram_if_cntlr_v1_00_a' in any of the
   repositories
   -


/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 373
ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_odd
- cannot
   find MPD for the pcore 'opb_bram_if_cntlr_v1_00_a' in any of the
   repositories
   -


/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 461
ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_even
- cannot
   find MPD for the pcore -


/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 373
ERROR:EDK - IPNAME: opb_bram_if_cntlr, INSTANCE: r_spec_2048_r106_odd
- cannot
   find MPD for the pcore -


/home/gopal/engineering/roach/myroach/r_spec_2048_r106/XPS_ROACH_base/system.
   mhs line 461

Re: [casper] Matlab crashes with tutorial 3

2012-05-09 Thread John Ford
Hi all.

Rich Lacasse at NRAO in Charlottesville has the same problem.  I also
tried it on our machine in Green Bank, with the same  bad results.  That's
three separate machines and users with the same problem.  Something's
wrong with this tutorial, or it is incompatible with the latest
mlib_devel.  Could someone have a look at it?

Thanks!

John


 Hey Gopal,

 One thing you can try is to start matlab without loading the yellow
 blocks,
 open the model file and add them in fresh from the library, save and
 return
 to normal usage.

 This will require you comment out the load xps_library portion of your
 matlab startup script.  Start matlab, and open the desired model file.
  Doing this, you may be able to see the yellow blocks show up as bad
 links with red dashes around them.  From there you can delete them, and
 manually add them back in from the xps library.  You may need to consult
 the tutorial, or look at the original model .mdl file in a text editor, to
 make sure you set the parameters appropriately.  From there you should be
 able to save the .mdl file, close matlab, go back to the startup file and
 uncomment back to the regular usage.  Hopefully it opens up fine this
 time.


 If this solution works, perhaps I can write something more detailed to the
 wiki page for the Tutorials.  Would that be an appropriate edit for the
 wiki?  I think something stated on that page would help - we have seen
 several new roach users encounter this issue.

 Gopal, I was also strongly advised when I started out to use 11.5 and the
 stable release of the tools.  This solution fixed the problem on that
 setup, hopefully it does on 13 as well.

 --Laura

 On Mon, May 7, 2012 at 12:44 PM, Gopal Narayanan
 go...@astro.umass.eduwrote:

 Hello All,

 I am running Matlab R2011A on a 64-bit Debian Linux System. I also have
 tested this issue in two other machines, one running Ubuntu (64 bit as
 well), and the other running Windows XP-64 with similar results. The
 Xilinx System Generator version in all cases is 13.3.4175.

 I have successfully created, compiled and programmed our ROACH board
 with tutorials 1 and 2. I am able to download the tutorial model files
 from the CASPER website and open Tutorials 1 and 2, and compile/simulate
 them. However, when I download the r_spec_2048_103.mdl or the
 r_spec_2048_105.mdl (both are tutorial 3 files) from the CASPER git
 site, and open within simulink, immediately I get a segfault crash in
 matlab.

 I attach the crash dump for my ubuntu machine with this. I contacted
 Matlab technical support, but after looking at it, they blame Xilinx
 System Generator for this problem even indicating an url that apparently
 show memory leaks in sysgen:

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

 I thought I would write to you all to find if anyone has had issues like
 mine. And if you have some helpful tips to fix the issue. Alternatively,
 if someone could send me an updated saved version of the tutorial 3 file
 saved with a more recent system generator version, I would appreciate
 it! Maybe I could try with this updated version.

 Thanks a bunch.

 Gopal
 --
 Gopal Narayanan  Ph #: (413) 545 0925
 Department of Astronomy  e-mail: go...@astro.umass.edu
 University of Massachusetts  Amherst MA 01003







Re: [casper] Matlab crashes with tutorial 3

2012-05-09 Thread Jack Hickish
Hi all,

After a fair bit of tutorial related pain on the mailist recently, I've
just forked the tutorial-devel repo to
https://github.com/jack-h/tutorials_devel and recompiled tutorials 1-3 with
Sysgen 11.5 and the libraries in the main casper github repo.

The tutorials in the 2011 directory *should* work (along with their python
counterparts).

Feel free to give those a go and give me a shout if you still have problems.

Cheers,
Jack

On 9 May 2012 20:49, John Ford jf...@nrao.edu wrote:

 Hi all.

 Rich Lacasse at NRAO in Charlottesville has the same problem.  I also
 tried it on our machine in Green Bank, with the same  bad results.  That's
 three separate machines and users with the same problem.  Something's
 wrong with this tutorial, or it is incompatible with the latest
 mlib_devel.  Could someone have a look at it?

 Thanks!

 John


  Hey Gopal,
 
  One thing you can try is to start matlab without loading the yellow
  blocks,
  open the model file and add them in fresh from the library, save and
  return
  to normal usage.
 
  This will require you comment out the load xps_library portion of your
  matlab startup script.  Start matlab, and open the desired model file.
   Doing this, you may be able to see the yellow blocks show up as bad
  links with red dashes around them.  From there you can delete them, and
  manually add them back in from the xps library.  You may need to consult
  the tutorial, or look at the original model .mdl file in a text editor,
 to
  make sure you set the parameters appropriately.  From there you should be
  able to save the .mdl file, close matlab, go back to the startup file and
  uncomment back to the regular usage.  Hopefully it opens up fine this
  time.
 
 
  If this solution works, perhaps I can write something more detailed to
 the
  wiki page for the Tutorials.  Would that be an appropriate edit for the
  wiki?  I think something stated on that page would help - we have seen
  several new roach users encounter this issue.
 
  Gopal, I was also strongly advised when I started out to use 11.5 and the
  stable release of the tools.  This solution fixed the problem on that
  setup, hopefully it does on 13 as well.
 
  --Laura
 
  On Mon, May 7, 2012 at 12:44 PM, Gopal Narayanan
  go...@astro.umass.eduwrote:
 
  Hello All,
 
  I am running Matlab R2011A on a 64-bit Debian Linux System. I also have
  tested this issue in two other machines, one running Ubuntu (64 bit as
  well), and the other running Windows XP-64 with similar results. The
  Xilinx System Generator version in all cases is 13.3.4175.
 
  I have successfully created, compiled and programmed our ROACH board
  with tutorials 1 and 2. I am able to download the tutorial model files
  from the CASPER website and open Tutorials 1 and 2, and compile/simulate
  them. However, when I download the r_spec_2048_103.mdl or the
  r_spec_2048_105.mdl (both are tutorial 3 files) from the CASPER git
  site, and open within simulink, immediately I get a segfault crash in
  matlab.
 
  I attach the crash dump for my ubuntu machine with this. I contacted
  Matlab technical support, but after looking at it, they blame Xilinx
  System Generator for this problem even indicating an url that apparently
  show memory leaks in sysgen:
 
  http://www.xilinx.com/support/answers/34287.htm
 
  I thought I would write to you all to find if anyone has had issues like
  mine. And if you have some helpful tips to fix the issue. Alternatively,
  if someone could send me an updated saved version of the tutorial 3 file
  saved with a more recent system generator version, I would appreciate
  it! Maybe I could try with this updated version.
 
  Thanks a bunch.
 
  Gopal
  --
  Gopal Narayanan  Ph #: (413) 545 0925
  Department of Astronomy  e-mail: go...@astro.umass.edu
  University of Massachusetts  Amherst MA 01003
 
 






Re: [casper] Matlab crashes with tutorial 3

2012-05-09 Thread Gopal Narayanan
Hi Jack,

Indeed, I can open tutorial 3 from your forked github location
successfully without causing segfaults. I'll post if compilation of the
simulink model fails.

So where exactly is the problem? In mlib_devel or incompatible changes
in Xilinx System Generator?

Thanks!

Gopal


On 05/09/2012 03:58 PM, Jack Hickish wrote:
 Hi all,
 
 After a fair bit of tutorial related pain on the mailist recently, I've
 just forked the tutorial-devel repo to
 https://github.com/jack-h/tutorials_devel and recompiled tutorials 1-3
 with Sysgen 11.5 and the libraries in the main casper github repo.
 
 The tutorials in the 2011 directory *should* work (along with their
 python counterparts).
 
 Feel free to give those a go and give me a shout if you still have problems.
 
 Cheers,
 Jack
 
 On 9 May 2012 20:49, John Ford jf...@nrao.edu mailto:jf...@nrao.edu
 wrote:
 
 Hi all.
 
 Rich Lacasse at NRAO in Charlottesville has the same problem.  I also
 tried it on our machine in Green Bank, with the same  bad results.
  That's
 three separate machines and users with the same problem.  Something's
 wrong with this tutorial, or it is incompatible with the latest
 mlib_devel.  Could someone have a look at it?
 
 Thanks!
 
 John
 
 
  Hey Gopal,
 
  One thing you can try is to start matlab without loading the yellow
  blocks,
  open the model file and add them in fresh from the library, save and
  return
  to normal usage.
 
  This will require you comment out the load xps_library portion of your
  matlab startup script.  Start matlab, and open the desired model file.
   Doing this, you may be able to see the yellow blocks show up as bad
  links with red dashes around them.  From there you can delete
 them, and
  manually add them back in from the xps library.  You may need to
 consult
  the tutorial, or look at the original model .mdl file in a text
 editor, to
  make sure you set the parameters appropriately.  From there you
 should be
  able to save the .mdl file, close matlab, go back to the startup
 file and
  uncomment back to the regular usage.  Hopefully it opens up fine this
  time.
 
 
  If this solution works, perhaps I can write something more
 detailed to the
  wiki page for the Tutorials.  Would that be an appropriate edit
 for the
  wiki?  I think something stated on that page would help - we have seen
  several new roach users encounter this issue.
 
  Gopal, I was also strongly advised when I started out to use 11.5
 and the
  stable release of the tools.  This solution fixed the problem on that
  setup, hopefully it does on 13 as well.
 
  --Laura
 
  On Mon, May 7, 2012 at 12:44 PM, Gopal Narayanan
  go...@astro.umass.edu mailto:go...@astro.umass.eduwrote:
 
  Hello All,
 
  I am running Matlab R2011A on a 64-bit Debian Linux System. I
 also have
  tested this issue in two other machines, one running Ubuntu (64
 bit as
  well), and the other running Windows XP-64 with similar results. The
  Xilinx System Generator version in all cases is 13.3.4175.
 
  I have successfully created, compiled and programmed our ROACH board
  with tutorials 1 and 2. I am able to download the tutorial model
 files
  from the CASPER website and open Tutorials 1 and 2, and
 compile/simulate
  them. However, when I download the r_spec_2048_103.mdl or the
  r_spec_2048_105.mdl (both are tutorial 3 files) from the CASPER git
  site, and open within simulink, immediately I get a segfault crash in
  matlab.
 
  I attach the crash dump for my ubuntu machine with this. I contacted
  Matlab technical support, but after looking at it, they blame Xilinx
  System Generator for this problem even indicating an url that
 apparently
  show memory leaks in sysgen:
 
  http://www.xilinx.com/support/answers/34287.htm
 
  I thought I would write to you all to find if anyone has had
 issues like
  mine. And if you have some helpful tips to fix the issue.
 Alternatively,
  if someone could send me an updated saved version of the tutorial
 3 file
  saved with a more recent system generator version, I would appreciate
  it! Maybe I could try with this updated version.
 
  Thanks a bunch.
 
  Gopal
  --
  Gopal Narayanan  Ph #: (413) 545 0925
 tel:%28413%29%20545%200925
  Department of Astronomy  e-mail:
 go...@astro.umass.edu mailto:go...@astro.umass.edu
  University of Massachusetts  Amherst MA 01003
 
 
 
 
 
 

-- 
Gopal Narayanan  Ph #: (413) 545 0925
Department of Astronomy  e-mail: go...@astro.umass.edu
University of Massachusetts  Amherst MA 01003



Re: [casper] Matlab crashes with tutorial 3

2012-05-09 Thread John Ford
 Hi all,

 After a fair bit of tutorial related pain on the mailist recently, I've
 just forked the tutorial-devel repo to
 https://github.com/jack-h/tutorials_devel and recompiled tutorials 1-3
 with
 Sysgen 11.5 and the libraries in the main casper github repo.

 The tutorials in the 2011 directory *should* work (along with their python
 counterparts).

 Feel free to give those a go and give me a shout if you still have
 problems.

Very cool, Jack!  I'll try it out tomorrow on our GB installation.

John


 Cheers,
 Jack

 On 9 May 2012 20:49, John Ford jf...@nrao.edu wrote:

 Hi all.

 Rich Lacasse at NRAO in Charlottesville has the same problem.  I also
 tried it on our machine in Green Bank, with the same  bad results.
 That's
 three separate machines and users with the same problem.  Something's
 wrong with this tutorial, or it is incompatible with the latest
 mlib_devel.  Could someone have a look at it?

 Thanks!

 John


  Hey Gopal,
 
  One thing you can try is to start matlab without loading the yellow
  blocks,
  open the model file and add them in fresh from the library, save and
  return
  to normal usage.
 
  This will require you comment out the load xps_library portion of your
  matlab startup script.  Start matlab, and open the desired model file.
   Doing this, you may be able to see the yellow blocks show up as bad
  links with red dashes around them.  From there you can delete them,
 and
  manually add them back in from the xps library.  You may need to
 consult
  the tutorial, or look at the original model .mdl file in a text
 editor,
 to
  make sure you set the parameters appropriately.  From there you should
 be
  able to save the .mdl file, close matlab, go back to the startup file
 and
  uncomment back to the regular usage.  Hopefully it opens up fine this
  time.
 
 
  If this solution works, perhaps I can write something more detailed to
 the
  wiki page for the Tutorials.  Would that be an appropriate edit for
 the
  wiki?  I think something stated on that page would help - we have seen
  several new roach users encounter this issue.
 
  Gopal, I was also strongly advised when I started out to use 11.5 and
 the
  stable release of the tools.  This solution fixed the problem on that
  setup, hopefully it does on 13 as well.
 
  --Laura
 
  On Mon, May 7, 2012 at 12:44 PM, Gopal Narayanan
  go...@astro.umass.eduwrote:
 
  Hello All,
 
  I am running Matlab R2011A on a 64-bit Debian Linux System. I also
 have
  tested this issue in two other machines, one running Ubuntu (64 bit
 as
  well), and the other running Windows XP-64 with similar results. The
  Xilinx System Generator version in all cases is 13.3.4175.
 
  I have successfully created, compiled and programmed our ROACH board
  with tutorials 1 and 2. I am able to download the tutorial model
 files
  from the CASPER website and open Tutorials 1 and 2, and
 compile/simulate
  them. However, when I download the r_spec_2048_103.mdl or the
  r_spec_2048_105.mdl (both are tutorial 3 files) from the CASPER git
  site, and open within simulink, immediately I get a segfault crash in
  matlab.
 
  I attach the crash dump for my ubuntu machine with this. I contacted
  Matlab technical support, but after looking at it, they blame Xilinx
  System Generator for this problem even indicating an url that
 apparently
  show memory leaks in sysgen:
 
  http://www.xilinx.com/support/answers/34287.htm
 
  I thought I would write to you all to find if anyone has had issues
 like
  mine. And if you have some helpful tips to fix the issue.
 Alternatively,
  if someone could send me an updated saved version of the tutorial 3
 file
  saved with a more recent system generator version, I would appreciate
  it! Maybe I could try with this updated version.
 
  Thanks a bunch.
 
  Gopal
  --
  Gopal Narayanan  Ph #: (413) 545 0925
  Department of Astronomy  e-mail:
 go...@astro.umass.edu
  University of Massachusetts  Amherst MA 01003
 
 










Re: [casper] Matlab crashes with tutorial 3

2012-05-08 Thread Gopal Narayanan
Hi Laura,

Thank you for your suggestions. I made progress with your suggestions,
but there are still some problems.

I commented out the xps_library portion of my matlab startup script.
Indeed, now I am able to open the tutorial 3 model file without a
segfault. I see the yellow blocks show up as bad links. I can delete
them. I looked at the original .mdl file in a text editor and saw what
I need to add. I addpath the xps_library area to the matlab path. This
next step took me a while to figure out (maybe it is obvious to others).
Inside the simulink library browser I had to go to View-Refresh Tree
View (or F5) to have simulink catch the newly added xps_library. I add
appropriate yellow blocks. I can save this new model file.

But when I edit back the xps_library into the startup script and restart
sysgen, and open the newly saved tutorial 3 file, I segfault again!

So I decide it is a pain in the neck, but I can go through adding the
xps_library path by hand each time to be able to open this model. So I
commented out the xps_library in startup, manually addpath and refresh
tree view after opening model. The model is all there now. So I want to
compile the model, and I run bee_xps, and press the Run XPS button, it
fails with the following message:

 Detected Linux OS
Warning: The fourth output, VERSN, of FILEPARTS will be removed in a future
release.
 In fileparts at 35
  In gen_xps_files at 121
  In bee_xpsrun_Callback at 150
  In bee_xps at 82
#
##  System Update  ##
#

config =

source: @pipeline_init_xblock


config =

source: @pipeline_init_xblock


config =

source: @pipeline_init_xblock


config =

source: @pipeline_init_xblock


config =

source: @pipeline_init_xblock

Error using == gen_xps_files at 199
Error due to multiple causes.

Any ideas?

Gopal


On 05/07/2012 04:12 PM, Laura Vertatschitsch wrote:
 Hey Gopal,
 
 One thing you can try is to start matlab without loading the yellow
 blocks, open the model file and add them in fresh from the library, save
 and return to normal usage.  
 
 This will require you comment out the load xps_library portion of your
 matlab startup script.  Start matlab, and open the desired model file.
  Doing this, you may be able to see the yellow blocks show up as bad
 links with red dashes around them.  From there you can delete them, and
 manually add them back in from the xps library.  You may need to consult
 the tutorial, or look at the original model .mdl file in a text editor,
 to make sure you set the parameters appropriately.  From there you
 should be able to save the .mdl file, close matlab, go back to the
 startup file and uncomment back to the regular usage.  Hopefully it
 opens up fine this time.  
 
 If this solution works, perhaps I can write something more detailed to
 the wiki page for the Tutorials.  Would that be an appropriate edit for
 the wiki?  I think something stated on that page would help - we have
 seen several new roach users encounter this issue.
 
 Gopal, I was also strongly advised when I started out to use 11.5 and
 the stable release of the tools.  This solution fixed the problem on
 that setup, hopefully it does on 13 as well.
 
 --Laura
 
 On Mon, May 7, 2012 at 12:44 PM, Gopal Narayanan go...@astro.umass.edu
 mailto:go...@astro.umass.edu wrote:
 
 Hello All,
 
 I am running Matlab R2011A on a 64-bit Debian Linux System. I also have
 tested this issue in two other machines, one running Ubuntu (64 bit as
 well), and the other running Windows XP-64 with similar results. The
 Xilinx System Generator version in all cases is 13.3.4175.
 
 I have successfully created, compiled and programmed our ROACH board
 with tutorials 1 and 2. I am able to download the tutorial model files
 from the CASPER website and open Tutorials 1 and 2, and compile/simulate
 them. However, when I download the r_spec_2048_103.mdl or the
 r_spec_2048_105.mdl (both are tutorial 3 files) from the CASPER git
 site, and open within simulink, immediately I get a segfault crash in
 matlab.
 
 I attach the crash dump for my ubuntu machine with this. I contacted
 Matlab technical support, but after looking at it, they blame Xilinx
 System Generator for this problem even indicating an url that apparently
 show memory leaks in sysgen:
 
 http://www.xilinx.com/support/answers/34287.htm
 
 I thought I would write to you all to find if anyone has had issues like
 mine. And if you have some helpful tips to fix the issue. Alternatively,
 if someone could send me an updated saved version of the tutorial 3 file
 saved with a more recent system generator version, I would appreciate
 it! Maybe I could try with this updated version.
 
 Thanks a bunch.
 
 Gopal
 --
 Gopal Narayanan  Ph #: (413) 545 0925
 tel:%28413%29%20545%200925
 Department of Astronomy  

[casper] Matlab crashes with tutorial 3

2012-05-07 Thread Gopal Narayanan
Hello All,

I am running Matlab R2011A on a 64-bit Debian Linux System. I also have
tested this issue in two other machines, one running Ubuntu (64 bit as
well), and the other running Windows XP-64 with similar results. The
Xilinx System Generator version in all cases is 13.3.4175.

I have successfully created, compiled and programmed our ROACH board
with tutorials 1 and 2. I am able to download the tutorial model files
from the CASPER website and open Tutorials 1 and 2, and compile/simulate
them. However, when I download the r_spec_2048_103.mdl or the
r_spec_2048_105.mdl (both are tutorial 3 files) from the CASPER git
site, and open within simulink, immediately I get a segfault crash in
matlab.

I attach the crash dump for my ubuntu machine with this. I contacted
Matlab technical support, but after looking at it, they blame Xilinx
System Generator for this problem even indicating an url that apparently
show memory leaks in sysgen:

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

I thought I would write to you all to find if anyone has had issues like
mine. And if you have some helpful tips to fix the issue. Alternatively,
if someone could send me an updated saved version of the tutorial 3 file
saved with a more recent system generator version, I would appreciate
it! Maybe I could try with this updated version.

Thanks a bunch.

Gopal
-- 
Gopal Narayanan  Ph #: (413) 545 0925
Department of Astronomy  e-mail: go...@astro.umass.edu
University of Massachusetts  Amherst MA 01003


   Segmentation violation detected at Fri May  4 14:55:20 2012


Configuration:
  Crash Decoding  : Disabled
  Current Visual  : 0x21 (class 4, depth 24)
  Default Encoding: UTF-8
  GNU C Library   : 2.13 stable
  MATLAB License  : 59778
  MATLAB Root : /usr/local/MATLAB/R2011a
  MATLAB Version  : 7.12.0.635 (R2011a)
  Operating System: Linux 3.0.0-19-generic #33-Ubuntu SMP Thu Apr 19 19:05:14 
UTC 2012 x86_64
  Processor ID: x86 Family 6 Model 7 Stepping 10, GenuineIntel
  Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java 
HotSpot(TM) 64-Bit Server VM mixed mode
  Window System   : The X.Org Foundation (11004000), display :0

Fault Count: 1



Abnormal termination:
Segmentation violation

Register State (from fault):
  RAX = 7f77  RBX = 
  RCX = 7f77ba312f50  RDX = 0014
  RSP = 7f7808336e40  RBP = 7f7808336f50
  RSI = 7f77ba314520  RDI = 7f77ba313d78

   R8 =    R9 = 7f78166abd10
  R10 = 7f78166a7e90  R11 = 7f77ce46ea50
  R12 =   R13 = 7f77ba22a5a0
  R14 = 7f77ba3137b0  R15 = 0014

  RIP = 7f77e152152e  EFL = 00010246

   CS = 0033   FS =    GS = 


Stack Trace (from fault):
[  0] 0x7f7818da6f49 
/usr/local/MATLAB/R2011a/bin/glnxa64/../../bin/glnxa64/libmwfl.so+00474953 
fl::sysdep::linux::unwind_stack(void const**, unsigned long, unsigned long, 
fl::diag::thread_context const)+09
[  1] 0x7f7818d5cdc1 
/usr/local/MATLAB/R2011a/bin/glnxa64/../../bin/glnxa64/libmwfl.so+00171457 
fl::diag::stacktrace_base::capture(fl::diag::thread_context const, unsigned 
long)+000161
[  2] 0x7f7818d660dd 
/usr/local/MATLAB/R2011a/bin/glnxa64/../../bin/glnxa64/libmwfl.so+00209117
[  3] 0x7f7818d66364 
/usr/local/MATLAB/R2011a/bin/glnxa64/../../bin/glnxa64/libmwfl.so+00209764 
fl::diag::terminate_log(char const*, fl::diag::thread_context const, 
bool)+000100
[  4] 0x7f7817dd2be5 
/usr/local/MATLAB/R2011a/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00420837 
fl::diag::terminate_log(char const*, ucontext const*, bool)+85
[  5] 0x7f7817dcfb54 
/usr/local/MATLAB/R2011a/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00408404
[  6] 0x7f7817dd103d 
/usr/local/MATLAB/R2011a/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00413757
[  7] 0x7f7817dd1197 
/usr/local/MATLAB/R2011a/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00414103
[  8] 0x7f7817dd1b1d 
/usr/local/MATLAB/R2011a/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00416541
[  9] 0x7f7817dd2435 
/usr/local/MATLAB/R2011a/bin/glnxa64/../../bin/glnxa64/libmwmcr.so+00418869
[ 10] 0x7f781692a060  
/lib/x86_64-linux-gnu/libpthread.so.0+00065632
[ 11] 0x7f77e152152e 
/usr/local/MATLAB/R2011a/bin/glnxa64/libmwsimulink.so+16213294
[ 12] 0x7f77e0d1d115 
/usr/local/MATLAB/R2011a/bin/glnxa64/libmwsimulink.so+07807253
[ 13] 0x7f77e0d1d797 
/usr/local/MATLAB/R2011a/bin/glnxa64/libmwsimulink.so+07808919
[ 14] 0x7f77e0e86597 
/usr/local/MATLAB/R2011a/bin/glnxa64/libmwsimulink.so+09287063
[ 15] 0x7f77e1521438 
/usr/local/MATLAB/R2011a/bin/glnxa64/libmwsimulink.so+16213048
[ 16] 0x7f77e0d1d115 
/usr/local/MATLAB/R2011a/bin/glnxa64/libmwsimulink.so+07807253
[ 17] 0x7f77e0d1d797 

Re: [casper] Matlab crashes with tutorial 3

2012-05-07 Thread Laura Vertatschitsch
Hey Gopal,

One thing you can try is to start matlab without loading the yellow blocks,
open the model file and add them in fresh from the library, save and return
to normal usage.

This will require you comment out the load xps_library portion of your
matlab startup script.  Start matlab, and open the desired model file.
 Doing this, you may be able to see the yellow blocks show up as bad
links with red dashes around them.  From there you can delete them, and
manually add them back in from the xps library.  You may need to consult
the tutorial, or look at the original model .mdl file in a text editor, to
make sure you set the parameters appropriately.  From there you should be
able to save the .mdl file, close matlab, go back to the startup file and
uncomment back to the regular usage.  Hopefully it opens up fine this time.


If this solution works, perhaps I can write something more detailed to the
wiki page for the Tutorials.  Would that be an appropriate edit for the
wiki?  I think something stated on that page would help - we have seen
several new roach users encounter this issue.

Gopal, I was also strongly advised when I started out to use 11.5 and the
stable release of the tools.  This solution fixed the problem on that
setup, hopefully it does on 13 as well.

--Laura

On Mon, May 7, 2012 at 12:44 PM, Gopal Narayanan go...@astro.umass.eduwrote:

 Hello All,

 I am running Matlab R2011A on a 64-bit Debian Linux System. I also have
 tested this issue in two other machines, one running Ubuntu (64 bit as
 well), and the other running Windows XP-64 with similar results. The
 Xilinx System Generator version in all cases is 13.3.4175.

 I have successfully created, compiled and programmed our ROACH board
 with tutorials 1 and 2. I am able to download the tutorial model files
 from the CASPER website and open Tutorials 1 and 2, and compile/simulate
 them. However, when I download the r_spec_2048_103.mdl or the
 r_spec_2048_105.mdl (both are tutorial 3 files) from the CASPER git
 site, and open within simulink, immediately I get a segfault crash in
 matlab.

 I attach the crash dump for my ubuntu machine with this. I contacted
 Matlab technical support, but after looking at it, they blame Xilinx
 System Generator for this problem even indicating an url that apparently
 show memory leaks in sysgen:

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

 I thought I would write to you all to find if anyone has had issues like
 mine. And if you have some helpful tips to fix the issue. Alternatively,
 if someone could send me an updated saved version of the tutorial 3 file
 saved with a more recent system generator version, I would appreciate
 it! Maybe I could try with this updated version.

 Thanks a bunch.

 Gopal
 --
 Gopal Narayanan  Ph #: (413) 545 0925
 Department of Astronomy  e-mail: go...@astro.umass.edu
 University of Massachusetts  Amherst MA 01003