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

SOPC builder command line

Altera_Forum
Honored Contributor II
1,419 Views

Hello, 

 

I'm trying to create a makefile for my project. This makefile should also regenerate the SOPC system. However when I try the following command (windows xp, cygwin): 

"sopc_builder --generate --classic avalon_if.ptf" 

the "avalon_if.vhd" and the "sdram_0.vhd" files are generated but not the other components (PCI bridge, irq controller...). 

 

There is a big difference is the output of the SOPC builder gui and the command line output: 

The command line output starts with: "mk_custom_sdk starting" 

The GUI starts with: "info: pci_compiler_0: Instantiating pci_mt32 MegaCore function." 

 

The gui must be doing something before the actual system generation but what and how can I do this via the command line? 

 

thanks, 

Jo
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
602 Views

Quartus behaviour is different on a linux system then on a windows (cygwin) system. The same command produces different results: 

From the Makefile: 

sopc_args = --no_splash --generate=1 -s $(sopc_system).sopc 

$(sopc_system).vhd: $(sopc_system).ptf 

sopc_builder $(sopc_args); if [ $? = 4 ]; then exit 0; else exit 1; fi 

 

In linux all files are generated ok, in windows only the $(sopc_system).vhd is generated.
0 Kudos
Altera_Forum
Honored Contributor II
602 Views

The ultimate goal is to have a script(makefile) that download my project from a versioning sytem (svn) and then builds the complete project including all code generation. 

 

My findings for Q10.1: 

 

There is some progress: when issuing the command : 

sopc_builder --generate --nosplash 

It will build your system both in windows(cygwin) and linux (ubuntu). However... apparently there are still components that need a display to connect to. This means you can still not generate everything on a headless system. The pcie generator throws a 'headless exeption' because it relies on some java awt libraries. I hope this will get cleaned up in one of the next versions.  

In the mean time you could start a (virtual) x server: 

export display=:1 

xvfb :1& 

 

Does anyone have a better solution?
0 Kudos
Reply