cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
8,574 Views
Registered: ‎05-06-2009

Hardware co-simulation: java.lang.NullPointerException

Jump to solution

Hi,

 

when I try to generate a hardware co-simulation target (ML402 Ethernet P2P) from the example code in

 

Xilinx/12/ISE_DS/ISE/sysgen/examples/shared_memory/hardware_cosim/conv5x5_video/

 

I get the following error:

 

Begin generation
Checking model status
Checking simulation times
Performing compilation and generation
Compilation and generation completed in 875.1302 seconds

*** ERROR ***

An error was encountered while compiling the design for hardware co-simulation. Please refer to hwcosim_compile_error.log for details.

 

 

Checking the contents of hwcosim_compile_error.log does not reveal much:

 

Java exception occurred:
com.xilinx.sysgen.netlist.NetlistInternal:
    at com.xilinx.sysgen.netlist.PerlScripter.quickCall(Unknown Source)
    at com.xilinx.sysgen.netlist.PerlScripter.quickCall(Unknown Source)
    at com.xilinx.sysgen.netlister.m.a(Unknown Source)
    at com.xilinx.sysgen.netlister.m.if(Unknown Source)
    at com.xilinx.sysgen.netlister.m.do(Unknown Source)
    at com.xilinx.sysgen.netlister.HwcosimWrapperBuilder.a(Unknown Source)
    at com.xilinx.sysgen.netlister.HwcosimWrapperBuilder.buildHwcosimFiles(Unknown Source)

 

I get this with both MATLAB 2009a and 2009b (ISE 12.1). Any help tracking down the source of this problem is much appreciated!

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Explorer
Explorer
9,352 Views
Registered: ‎09-28-2007

This is due to an issue with generating Shared Memory or FIFO core in hardware co-sim flow, which requires write permission to the SysGen directories.

 

A workaround is to make the SysGen directories writable, e.g. on Linux,

 

chmod -R a+w <sysgen install directory>

 

This issue will be fixed in future releases of SysGen.

View solution in original post

11 Replies
Highlighted
Explorer
Explorer
8,550 Views
Registered: ‎08-14-2007

Normally ": java.lang.NullPointerException" is caused by the windows language settings

"

0 Kudos
Highlighted
Observer
Observer
8,548 Views
Registered: ‎05-06-2009
Afraid not .. I'm running this on Centos 5.4 (RHEL 5.4 Clone). Other compilation targets such as "HDL Files" and "Bitstream Generation" work just fine. I get the error only with the Hardware co-sim targets.
0 Kudos
Highlighted
Explorer
Explorer
8,546 Views
Registered: ‎08-14-2007

How did you run HWCosim? It occurs if you run it in command line. If you run HW-Cosim in GUI, it should be fine.

0 Kudos
Highlighted
Observer
Observer
8,541 Views
Registered: ‎05-06-2009
I run it via the System Generator token (by clicking 'Generate') in my design. So, via the GUI.
0 Kudos
Highlighted
Observer
Observer
8,483 Views
Registered: ‎05-06-2009

I've gone back to ISE 11.5 and narrowed down the problem to the following blocks: "Shared Memory" and "To/From FIFO".  Interestingly, the "To/From Register" block works fine and does not lead to the error.

 

Any ideas?

0 Kudos
Highlighted
Explorer
Explorer
8,481 Views
Registered: ‎08-14-2007

so you use "To/From Regiter" to replace "To/From FIFO", it fixes errors? If so, you can build a fresh design which only includes To/From FIFO to see whether it works.

0 Kudos
Highlighted
Observer
Observer
8,478 Views
Registered: ‎05-06-2009

Hi,

 

even a fresh design with a "To/From FIFO block" comes back with the same errors. As an illustration, please look at the attached examples.

 

Example1: compiles fine!

Shared register design

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example2: same design, but the register is replaced by a FIFO -- errors as above.

Shared FIFO design

0 Kudos
Highlighted
Explorer
Explorer
9,353 Views
Registered: ‎09-28-2007

This is due to an issue with generating Shared Memory or FIFO core in hardware co-sim flow, which requires write permission to the SysGen directories.

 

A workaround is to make the SysGen directories writable, e.g. on Linux,

 

chmod -R a+w <sysgen install directory>

 

This issue will be fixed in future releases of SysGen.

View solution in original post

Highlighted
Observer
Observer
8,273 Views
Registered: ‎05-06-2009

That did it! Thanks !

0 Kudos
Highlighted
Explorer
Explorer
2,146 Views
Registered: ‎04-28-2010

Dear sir,

                 I am also getting the same problem error

 

I get the following error:  " An unknown error has occured while compiling the design for hardware cosimulation. "

 

Begin generation 
Checking model status 
Checking simulation times 
Performing compilation and generation 
Compilation and generation completed in 875.1302 seconds

 

but I am using ISE 14.4 and Matlab 2012b..and windows xp operating system...

so how to solve the error???

Best Regards
Chandrajit
0 Kudos
Highlighted
Adventurer
Adventurer
1,784 Views
Registered: ‎02-18-2014

Hi,

 

 I am also receiving the error message, which is similar to the one in this post

" An unknown error was encountered while compiling the design for hardware co-simulation "

 

 Is the solution mentioned in the post specific to using shared memories ?

 

I am just trying to add two numbers, and display it on the leds! But, after creating the NMM ports, I am not able to do the "Generate" !

 

 

please help.

 

Thanks,
Basil.

0 Kudos