Re: [casper] Sysgen compilation error
I should probably mention - clone casperfpga from the "devel" branch, not "master". On Mon, Feb 15, 2016 at 9:13 AM, James Smithwrote: > Mugundhan, > > The fpg file is intended for ROACH2 and tcpborphserver3 - you can safely > ignore it, but it's useful for some extra features. > > If you use the casperfpga library (https://github.com/ska-sa/casperfpga) > instead of the old corr library, then you can successfully program the > ROACH. > > The procedure for using it is not 100% the same - you'd use the following > commands: > > import casperfpga > fpga = casperfpga.katcp_fpga.KatcpFpga('roachname') > fpga.system_info['program_filename'] = '%s.bof' % gateware #bof needs to > be on the roachfs for this to work > fpga.program() > fpga.get_system_information('%s.fpg' % gateware) % fpg file needs to be in > the current directory > > There are some more cool things that you can do with the new casperfpga > library, I can try to summarize them a bit later if you need, but you can > learn a lot by playing around with it. > > Regards, > James > > > On Mon, Feb 15, 2016 at 8:56 AM, Mugundhan vijayaraghavan < > v.vaishnav151...@gmail.com> wrote: > >> Hello again, >> >> I have the latest ska-sa mlib devel installed. With this, I'm able to >> compile the model file and the bof files are created. There is also a new >> file with the format .fpg created. During my previous compilation cycle, >> with older mlib-devel, (probably june 2015 version) the .fpg file is not >> created. Secondly, if I burn the bof file created with the new mlib-devel >> using progdev() function, the roach 1 is not getting programmed. Can >> someone guide me as to what am I missing here ? and also, what is the .fpg >> file ? what is it used for ? >> >> Thank you, >> >> Mugundhan >> >> On Thu, Feb 11, 2016 at 8:06 PM, Mugundhan vijayaraghavan < >> v.vaishnav151...@gmail.com> wrote: >> >>> Hello Wesley, James, >>> >>> It was an issue with the shell scripting in ubuntu only. once I changed >>> dash to bash, things started working ! >>> >>> Thanks to you guys :) >>> >>> On Thu, Feb 11, 2016 at 4:35 PM, Wesley New wrote: >>> This is an issue with dash in ubuntu, if you change your shell from dash to bash it interprets the perl scripts properly. Have you followed these steps when setting up your tools flow? https://casper.berkeley.edu/wiki/MSSGE_Setup_with_Xilinx_14.x_and_Matlab_2012b Particularly this step: The syntax in the Xilinx Perl scripts is not supported under the Ubuntu default shell Dash. Change the symbolic link sh -> dash to sh -> bash: - cd /bin/ - sudo rm sh - sudo ln -s bash sh Wesley New South African SKA Project +2721 506 7300 www.ska.ac.za On Thu, Feb 11, 2016 at 12:58 PM, James Smith wrote: > Haven't encountered that specific issue before but I see a capital > letter in your path. That may be an issue. > On 11 Feb 2016 12:44, "Mugundhan vijayaraghavan" < > v.vaishnav151...@gmail.com> wrote: > >> Hello guys, >> >> I'm running matlab/xilinx and mssge tools on a ubuntu 14.04 system. >> When I do casper_xps and start compiling, I get this strange error. >> >> standard exception: XNetlistEngine: >> Exception message could not be parsed: >> com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first pass >> text file at >> /home/mugundhan/casper_designs/tut1/sysgen/sysgen/masterScript3888976111602024584.pl >> line 559' >> >> >> Reported by: >> Unspecified >> >> Has anyone got this before ? >> >> Is there any workaround ? >> >> >> -- >> the giver of moksha >> > >>> >>> >>> -- >>> the giver of moksha >>> >> >> >> >
Re: [casper] Sysgen compilation error
Mugundhan, The fpg file is intended for ROACH2 and tcpborphserver3 - you can safely ignore it, but it's useful for some extra features. If you use the casperfpga library (https://github.com/ska-sa/casperfpga) instead of the old corr library, then you can successfully program the ROACH. The procedure for using it is not 100% the same - you'd use the following commands: import casperfpga fpga = casperfpga.katcp_fpga.KatcpFpga('roachname') fpga.system_info['program_filename'] = '%s.bof' % gateware #bof needs to be on the roachfs for this to work fpga.program() fpga.get_system_information('%s.fpg' % gateware) % fpg file needs to be in the current directory There are some more cool things that you can do with the new casperfpga library, I can try to summarize them a bit later if you need, but you can learn a lot by playing around with it. Regards, James On Mon, Feb 15, 2016 at 8:56 AM, Mugundhan vijayaraghavan < v.vaishnav151...@gmail.com> wrote: > Hello again, > > I have the latest ska-sa mlib devel installed. With this, I'm able to > compile the model file and the bof files are created. There is also a new > file with the format .fpg created. During my previous compilation cycle, > with older mlib-devel, (probably june 2015 version) the .fpg file is not > created. Secondly, if I burn the bof file created with the new mlib-devel > using progdev() function, the roach 1 is not getting programmed. Can > someone guide me as to what am I missing here ? and also, what is the .fpg > file ? what is it used for ? > > Thank you, > > Mugundhan > > On Thu, Feb 11, 2016 at 8:06 PM, Mugundhan vijayaraghavan < > v.vaishnav151...@gmail.com> wrote: > >> Hello Wesley, James, >> >> It was an issue with the shell scripting in ubuntu only. once I changed >> dash to bash, things started working ! >> >> Thanks to you guys :) >> >> On Thu, Feb 11, 2016 at 4:35 PM, Wesley Newwrote: >> >>> This is an issue with dash in ubuntu, if you change your shell from dash >>> to bash it interprets the perl scripts properly. >>> >>> Have you followed these steps when setting up your tools flow? >>> https://casper.berkeley.edu/wiki/MSSGE_Setup_with_Xilinx_14.x_and_Matlab_2012b >>> >>> Particularly this step: >>> >>> The syntax in the Xilinx Perl scripts is not supported under the Ubuntu >>> default shell Dash. Change the symbolic link sh -> dash to sh -> bash: >>> >>>- cd /bin/ >>>- sudo rm sh >>>- sudo ln -s bash sh >>> >>> >>> Wesley New >>> South African SKA Project >>> +2721 506 7300 >>> www.ska.ac.za >>> >>> >>> >>> On Thu, Feb 11, 2016 at 12:58 PM, James Smith wrote: >>> Haven't encountered that specific issue before but I see a capital letter in your path. That may be an issue. On 11 Feb 2016 12:44, "Mugundhan vijayaraghavan" < v.vaishnav151...@gmail.com> wrote: > Hello guys, > > I'm running matlab/xilinx and mssge tools on a ubuntu 14.04 system. > When I do casper_xps and start compiling, I get this strange error. > > standard exception: XNetlistEngine: > Exception message could not be parsed: > com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first pass > text file at > /home/mugundhan/casper_designs/tut1/sysgen/sysgen/masterScript3888976111602024584.pl > line 559' > > > Reported by: > Unspecified > > Has anyone got this before ? > > Is there any workaround ? > > > -- > the giver of moksha > >>> >> >> >> -- >> the giver of moksha >> > > >
Re: [casper] Sysgen compilation error
Hello again, I have the latest ska-sa mlib devel installed. With this, I'm able to compile the model file and the bof files are created. There is also a new file with the format .fpg created. During my previous compilation cycle, with older mlib-devel, (probably june 2015 version) the .fpg file is not created. Secondly, if I burn the bof file created with the new mlib-devel using progdev() function, the roach 1 is not getting programmed. Can someone guide me as to what am I missing here ? and also, what is the .fpg file ? what is it used for ? Thank you, Mugundhan On Thu, Feb 11, 2016 at 8:06 PM, Mugundhan vijayaraghavan < v.vaishnav151...@gmail.com> wrote: > Hello Wesley, James, > > It was an issue with the shell scripting in ubuntu only. once I changed > dash to bash, things started working ! > > Thanks to you guys :) > > On Thu, Feb 11, 2016 at 4:35 PM, Wesley Newwrote: > >> This is an issue with dash in ubuntu, if you change your shell from dash >> to bash it interprets the perl scripts properly. >> >> Have you followed these steps when setting up your tools flow? >> https://casper.berkeley.edu/wiki/MSSGE_Setup_with_Xilinx_14.x_and_Matlab_2012b >> >> Particularly this step: >> >> The syntax in the Xilinx Perl scripts is not supported under the Ubuntu >> default shell Dash. Change the symbolic link sh -> dash to sh -> bash: >> >>- cd /bin/ >>- sudo rm sh >>- sudo ln -s bash sh >> >> >> Wesley New >> South African SKA Project >> +2721 506 7300 >> www.ska.ac.za >> >> >> >> On Thu, Feb 11, 2016 at 12:58 PM, James Smith wrote: >> >>> Haven't encountered that specific issue before but I see a capital >>> letter in your path. That may be an issue. >>> On 11 Feb 2016 12:44, "Mugundhan vijayaraghavan" < >>> v.vaishnav151...@gmail.com> wrote: >>> Hello guys, I'm running matlab/xilinx and mssge tools on a ubuntu 14.04 system. When I do casper_xps and start compiling, I get this strange error. standard exception: XNetlistEngine: Exception message could not be parsed: com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first pass text file at /home/mugundhan/casper_designs/tut1/sysgen/sysgen/masterScript3888976111602024584.pl line 559' Reported by: Unspecified Has anyone got this before ? Is there any workaround ? -- the giver of moksha >>> >> > > > -- > the giver of moksha >
Re: [casper] Sysgen compilation error
This is an issue with dash in ubuntu, if you change your shell from dash to bash it interprets the perl scripts properly. Have you followed these steps when setting up your tools flow? https://casper.berkeley.edu/wiki/MSSGE_Setup_with_Xilinx_14.x_and_Matlab_2012b Particularly this step: The syntax in the Xilinx Perl scripts is not supported under the Ubuntu default shell Dash. Change the symbolic link sh -> dash to sh -> bash: - cd /bin/ - sudo rm sh - sudo ln -s bash sh Wesley New South African SKA Project +2721 506 7300 www.ska.ac.za On Thu, Feb 11, 2016 at 12:58 PM, James Smithwrote: > Haven't encountered that specific issue before but I see a capital letter > in your path. That may be an issue. > On 11 Feb 2016 12:44, "Mugundhan vijayaraghavan" < > v.vaishnav151...@gmail.com> wrote: > >> Hello guys, >> >> I'm running matlab/xilinx and mssge tools on a ubuntu 14.04 system. When >> I do casper_xps and start compiling, I get this strange error. >> >> standard exception: XNetlistEngine: >> Exception message could not be parsed: >> com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first pass text >> file at >> /home/mugundhan/casper_designs/tut1/sysgen/sysgen/masterScript3888976111602024584.pl >> line 559' >> >> >> Reported by: >> Unspecified >> >> Has anyone got this before ? >> >> Is there any workaround ? >> >> >> -- >> the giver of moksha >> >
Re: [casper] Sysgen compilation error
Hello Wesley, James, It was an issue with the shell scripting in ubuntu only. once I changed dash to bash, things started working ! Thanks to you guys :) On Thu, Feb 11, 2016 at 4:35 PM, Wesley Newwrote: > This is an issue with dash in ubuntu, if you change your shell from dash > to bash it interprets the perl scripts properly. > > Have you followed these steps when setting up your tools flow? > https://casper.berkeley.edu/wiki/MSSGE_Setup_with_Xilinx_14.x_and_Matlab_2012b > > Particularly this step: > > The syntax in the Xilinx Perl scripts is not supported under the Ubuntu > default shell Dash. Change the symbolic link sh -> dash to sh -> bash: > >- cd /bin/ >- sudo rm sh >- sudo ln -s bash sh > > > Wesley New > South African SKA Project > +2721 506 7300 > www.ska.ac.za > > > > On Thu, Feb 11, 2016 at 12:58 PM, James Smith wrote: > >> Haven't encountered that specific issue before but I see a capital letter >> in your path. That may be an issue. >> On 11 Feb 2016 12:44, "Mugundhan vijayaraghavan" < >> v.vaishnav151...@gmail.com> wrote: >> >>> Hello guys, >>> >>> I'm running matlab/xilinx and mssge tools on a ubuntu 14.04 system. When >>> I do casper_xps and start compiling, I get this strange error. >>> >>> standard exception: XNetlistEngine: >>> Exception message could not be parsed: >>> com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first pass text >>> file at >>> /home/mugundhan/casper_designs/tut1/sysgen/sysgen/masterScript3888976111602024584.pl >>> line 559' >>> >>> >>> Reported by: >>> Unspecified >>> >>> Has anyone got this before ? >>> >>> Is there any workaround ? >>> >>> >>> -- >>> the giver of moksha >>> >> > -- the giver of moksha
Re: [casper] Sysgen compilation error
Haven't encountered that specific issue before but I see a capital letter in your path. That may be an issue. On 11 Feb 2016 12:44, "Mugundhan vijayaraghavan"wrote: > Hello guys, > > I'm running matlab/xilinx and mssge tools on a ubuntu 14.04 system. When I > do casper_xps and start compiling, I get this strange error. > > standard exception: XNetlistEngine: > Exception message could not be parsed: > com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first pass text > file at > /home/mugundhan/casper_designs/tut1/sysgen/sysgen/masterScript3888976111602024584.pl > line 559' > > > Reported by: > Unspecified > > Has anyone got this before ? > > Is there any workaround ? > > > -- > the giver of moksha >