Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17054 Discussions

SOPC Builder - sopc_builder.dispatch_event: Error! - java.lang.NullPointerException

Altera_Forum
Honored Contributor II
2,917 Views

I use Ubuntu 64bit and the 10.1sp1 toolchain(full license). 

 

The sopc builder doenst generate the design. It just tells me(once) that the system generation was successfull. 

 

I think the problem starts at the ptf file elaboration due to java problems. 

 

Could somebody help me? 

 

PS: Got warnings: Custom Instructuion components can be edited through the Component Editor. uniphy_ddr2_dim: An average delay difference between address and command.... 

uniphy_ddr2_dim: 'Qucik simulation models are NOT timing accurate. Some simulation memory models may issue warnings or errors 

 

 

PPS: sopc tells me via Info, that it founds his stuff at [altera_dir]/10.1/quartus//[some more]. Why do I get // instead of /? 

 

 

--- Quote Start ---  

 

Info: Starting PTF file elaboration [some arguments] 

(:3697): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64 

(:3697): Gtk-WARNING **: Loading IM context type 'ibus' failed 

(:3697): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64 

(:3697): Gtk-WARNING **: Loading IM context type 'ibus' failed 

(:3697): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64 

(:3697): Gtk-WARNING **: Loading IM context type 'ibus' failed 

(:3697): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64 

(:3697): Gtk-WARNING **: Loading IM context type 'ibus' failed 

sopc_event_queue.dispatch_events: ERROR  

java.lang.NullPointerException 

at sopc_ptf.sopc_port.is_clock_pipelined(sopc_port.java:163) 

[some more at something stuff - cut it] 

 

 

 

 

Info: Finished elaborating PTF file. 

Executing: /opt/altera/10.1/quartus//sopc_builder/bin/sopc_builder --classic --generate /home/walther/git/canrouter/usr/sopc/router_ports/rps.ptf 

Info: Starting generation...[some arguments] 

(:3741): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64 

(:3741): Gtk-WARNING **: Loading IM context type 'ibus' failed 

(:3741): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64 

(:3741): Gtk-WARNING **: Loading IM context type 'ibus' failed 

(:3741): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64 

(:3741): Gtk-WARNING **: Loading IM context type 'ibus' failed 

(:3741): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64 

(:3741): Gtk-WARNING **: Loading IM context type 'ibus' failed 

sopc_event_queue.dispatch_events: ERROR  

java.lang.NullPointerException 

at sopc_ptf.sopc_port.is_clock_pipelined(sopc_port.java:163) 

at altera_avalon_adapter_slave_y.SlaveYAdapter.insert_adapters_between_interfaces(SlaveYAdapter.java:34) 

at sopc_ptf.sopc_default_adapter.insert_adapters(sopc_default_adapter.java:48) 

[some more at] 

 

 

 

Info: System generation was successful. 

 

--- Quote End ---  

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
1,726 Views

I solved the problem. 

 

I dont really know exactly what the problem was. But I think somehow I did something bad when I played a bit around with my system. 

 

How did I solve it: Dumped the old SOPC Builder design and started a new project.
0 Kudos
Altera_Forum
Honored Contributor II
1,726 Views

Just hit this same problem. I tried the "go make the SOPC from scratch" thing. I am still hitting the problem. This is with Q12.1SP1. 

 

Any thoughts / guidance on what to do to try and diagnose or work around? 

 

Thx, 

Dave
0 Kudos
Altera_Forum
Honored Contributor II
1,726 Views

In my case this was caused (but not justified by) me having updated the clock names that various clocks in my SOPC were known as. Now this seems like a perfectly reasonable thing to do and yet if I generate the version with the system assigned names it generates just fine but if I rename certain clocks to be something friendly the generation fails. 

 

Whatever. 

 

YMMV. 

Dave
0 Kudos
Reply