Altera_Forum
Honored Contributor
15 years agoCalling sopc_builder from the Quartus Tcl console
Hi,
I'm having trouble figuring out a method for calling sopc_builder from within the Quartus Tcl console. There's several issues, so I'll try to summarize. objective: Build a project consisting of HDL source, timing constraints (.SDC), and an SOPC system (sopc_system.sopc) from a Tcl script that can be called from the Quartus Tcl console. The source files and script will be checked into a version control system. build environment:- Windows XP or Windows 7
- Quartus 10.1 or Quartus 11
- Standard Cygwin shell also installed.
- If I start Quartus from the start menu, go to the Tcl console, and type 'exec mount', the output indicates that the standard Cygwin shell is being used. Given that Quartus installs with a version of Cygwin, you'd think the tool would use its own installed version by default!
- To get Quartus to point to its own copy of Cygwin, start the NIOS shell, and then execute 'quartus', then in the Tcl console 'exec mount' shows that the Quartus version of Cygwin is being used.
- In the Tcl console 'exec sopc_builder -h' can't find sopc_builder.
- 'exec $env(QUARTUS_ROOTDIR)/sopc_builder/bin/sopc_builder -h' also can't find the tool, although this path is correct, since 'exec ls $env(QUARTUS_ROOTDIR)/sopc_builder/bin/', shows the file! So perhaps this is an executable flag issue?
- To investigate further, I tried a standard Cygwin shell and executed '$QUARTUS_ROOTDIR/sopc_builder/bin/sopc_builder --generate=1 --no_splash -s' The sopc_builder_log.txt file shows me that the application can't find my component definitions. If I remove the --no_splash and -s options, the GUI starts up, and I get the equivalent messages about library components not being found. So sopc_builder called from the Cygwin shell is not getting the same path (project?) information as the NIOS shell.