Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Initiate SOPC Generate from TCL or Command Line

For nightly regression builds we would like to use either TCL or a command line to kick off the generate process from SOPC Builder. Does anyone have a quick reference to do this and if so what are the minimum files needed to make it happen.

Thanks!

7 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    i believe there are some Nios II example designs, maybe targeting the NEEK kit, that generate the SOPC Builder system before running a QII compile. try taking a look on the NiosWiki, if you can't find them i can take a look

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Same question. I need to migrate FPGA image builds from an engineer's laptop to the build server. I'd like to build it automatically.

    nioswiki is down :( any other pointers?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks for the info. What I was wondering if how do you add a new component to the SOPC system via command line? Is this possible? Maybe by hacking the system.sopc file? but that file contains some stuff which is kind of puzzling. For example :

    
       element sra_0
       {
          datum _sortIndex
          {
             value = "9";
             type = "int";
          }
       }
    

    What does the value 9 indicate in this case?

    Is there any better ways of doing this than editing the .sopc file?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    To build SOPC Builder projects from the command line you simply need to run the command "sopc_builder --generate" in the folder containing the .sopc and .sopcinfo files. These are the only files you need, except from any custom IP of cause, you need to generate the Nios SoC.

    One thing you need to be aware of is that sopc_builder expect X to be present, so if you run it in a terminal on a Linux server you have to run something like Xvnc in order to make it work. If you use Jenkins to run you regression tests there is an option to enable X during builds, but otherwise you must ask the Internet Oracle aka Google for help.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    the .sopcinfo file is an output from the generation, all you need is the .sopc

    --- Quote Start ---

    Internet Oracle aka Google

    --- Quote End ---

    sounds like a trademark lawsuit waiting to happen :)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I'm using Quartus v11.1sp2. "sopc_builder --generate" launches the SOPC Builder GUI and opens the project but does not run the generate step. I'm using a makefile in Cygwin.

    Shouldn't it be able to run in a regression scenario without requiring me to click the generate button?