UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
4,262 Views
Registered: ‎02-13-2009

Error with System generator

Jump to solution

I have never used Systgem Generator.

 

ISE/DSP tools 11.4 and Matlab 2009b on Ubuntu 9.10 x86_64.

 

I'm just trying to do a simple execution of the sample programs, when I try to generate a bitstream (or anything else for HW generation) I get the following error:

 

 This is a simple copy of the lab2.mdl from the examples in system generator

 

<snip>  p, li { white-space: pre-wrap; }

standard exception: XNetlistEngine:
An exception was raised:
com.xilinx.sysgen.netlist.NetlistInternal: couldn't open first pass text file at /store/home/rob/src/fpga/SystemGeneratorExamples/lab2/netlist/sysgen/masterScript3952952072241003825.pl line 477

</snip>
Reported by:
Unspecified

 

 

0 Kudos
1 Solution

Accepted Solutions
Visitor dang2327
Visitor
4,447 Views
Registered: ‎04-28-2010

Re: Error with System generator

Jump to solution

The problem in this case is because of the script "saferun" in System Generator binary folder. This script governs the execution of Xilinx Coregen to create the necessary cores for your project. However, there are two "export" lines in "saferun" that could not be executed by the OS somehow.

 

Thus, modify the "saferun" script in your XILINX System Generator installation folder at /opt/Xilinx/11.1/DSP_Tools/lin64/sysgen/bin/saferun:

    - Replace

                     'export LD_LIBRARY_PATH=$dir'

       with

                    'LD_LIBRARY_PATH=$dir

                     export LD_LIBRARY_PATH'

 

    - Do this for every occurence of 'export' statement

 

My "saferun" script now looks like this:

 

dhn24@Danh-ubuntu:/opt/Xilinx/11.1/DSP_Tools/lin64/sysgen/bin$ cat saferun
#!/bin/sh
#
# This wrapper sets the LD_LIBRARY_PATH environment before running the
# associated executable.
#

prependldpath() {
    dir=`readlink -f $1`
    if [ "$LD_LIBRARY_PATH" == "" ] ; then
        LD_LIBRARY_PATH=$dir
        export LD_LIBRARY_PATH
    else
        LD_LIBRARY_PATH=$dir:$LD_LIBRARY_PATH
        export LD_LIBRARY_PATH
    fi
}

binpath=`dirname $0`
libpath=$binpath/../lib

if [ -e $libpath ] ; then
    prependldpath $libpath;
fi
prependldpath $binpath
# Now run the executable
cmd=`readlink -f $0`
$cmd.bin "$@"

-- This should solve all the internal errors of System Generator and generate your hardware model.

 

Hope this helps,

Danh.

 

 

View solution in original post

3 Replies
Visitor dang2327
Visitor
4,448 Views
Registered: ‎04-28-2010

Re: Error with System generator

Jump to solution

The problem in this case is because of the script "saferun" in System Generator binary folder. This script governs the execution of Xilinx Coregen to create the necessary cores for your project. However, there are two "export" lines in "saferun" that could not be executed by the OS somehow.

 

Thus, modify the "saferun" script in your XILINX System Generator installation folder at /opt/Xilinx/11.1/DSP_Tools/lin64/sysgen/bin/saferun:

    - Replace

                     'export LD_LIBRARY_PATH=$dir'

       with

                    'LD_LIBRARY_PATH=$dir

                     export LD_LIBRARY_PATH'

 

    - Do this for every occurence of 'export' statement

 

My "saferun" script now looks like this:

 

dhn24@Danh-ubuntu:/opt/Xilinx/11.1/DSP_Tools/lin64/sysgen/bin$ cat saferun
#!/bin/sh
#
# This wrapper sets the LD_LIBRARY_PATH environment before running the
# associated executable.
#

prependldpath() {
    dir=`readlink -f $1`
    if [ "$LD_LIBRARY_PATH" == "" ] ; then
        LD_LIBRARY_PATH=$dir
        export LD_LIBRARY_PATH
    else
        LD_LIBRARY_PATH=$dir:$LD_LIBRARY_PATH
        export LD_LIBRARY_PATH
    fi
}

binpath=`dirname $0`
libpath=$binpath/../lib

if [ -e $libpath ] ; then
    prependldpath $libpath;
fi
prependldpath $binpath
# Now run the executable
cmd=`readlink -f $0`
$cmd.bin "$@"

-- This should solve all the internal errors of System Generator and generate your hardware model.

 

Hope this helps,

Danh.

 

 

View solution in original post

Visitor dang2327
Visitor
4,011 Views
Registered: ‎04-28-2010

Re: Error with System generator

Jump to solution

Actually, I retested this solution, and found that unless you comment out EVERYTHING in the "saferun" script but the last two lines, the problem will persist.

 

So, here is my updated "saferun" script:

 

# Now run the executable
cmd=`readlink -f $0`
$cmd.bin "$@"

 

... and all problems are solved.

 

 

Regards,

Danh.

Newbie nexaya
Newbie
2,781 Views
Registered: ‎03-11-2013

Re: Error with System generator

Jump to solution

Thanks dang2327, commenting all lines except those 2 did the trick !

0 Kudos