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

qsys-script error "invalid command name" command name is empty string

timeportal
Beginner
384 Views

Hi All,

 

When I run qsys-script it doesn't appear to work correctly even for a very simple TCL script?

 

$ qsys-script --script=test.tcl --quartus-project=test
***************************************************************
Quartus is a registered trademark of Intel Corporation in the
US and other countries. Portions of the Quartus Prime software
code, and other portions of the code included in this download
or on this DVD, are licensed to Intel Corporation and are the
copyrighted property of third parties. For license details,
refer to the End User License Agreement at
http://fpgasoftware.intel.com/eula.
***************************************************************

2025.03.05.11:50:01 Info: Doing: qsys-script --script=test.tcl --quartus-project=test
2025.03.05.11:50:05 Info: send_message Info 1
2025.03.05.11:50:05 Info: Info: 1
2025.03.05.11:50:05 Error: invalid command name ""


$ cat test.tcl
package require -exact qsys 22.1
[ send_message "INFO" "1" ]
[ puts "ERROR 1" ]
[ puts "ERROR 2" ]
[ send_message "INFO" "3" ]

 

$ cat test.qpf test.qsf
# -------------------------------------------------------------------------- #
#
# Copyright (C) 2022 Intel Corporation. All rights reserved.
# Your use of Intel Corporation's design tools, logic functions
# and other software and tools, and any partner logic
# functions, and any output files from any of the foregoing
# (including device programming or simulation files), and any
# associated documentation or information are expressly subject
# to the terms and conditions of the Intel Program License
# Subscription Agreement, the Intel Quartus Prime License Agreement,
# the Intel FPGA IP License Agreement, or other applicable license
# agreement, including, without limitation, that your use is for
# the sole purpose of programming logic devices manufactured by
# Intel and sold by Intel or its authorized distributors. Please
# refer to the applicable agreement for further details, at
# https://fpgasoftware.intel.com/eula.
#
# -------------------------------------------------------------------------- #
#
# Quartus Prime
# Version 22.4.0 Build 94 12/07/2022 SC Pro Edition
# Date created = 11:48:21 March 05, 2025
#
# -------------------------------------------------------------------------- #

QUARTUS_VERSION = "22.4"
DATE = "11:48:21 March 05, 2025"

# Revisions

PROJECT_REVISION = "test"
set_global_assignment -name TOP_LEVEL_ENTITY test
set_global_assignment -name ORIGINAL_QUARTUS_VERSION 22.4.0
set_global_assignment -name PROJECT_CREATION_TIME_DATE "11:48:21 MARCH 05, 2025"
set_global_assignment -name LAST_QUARTUS_VERSION "22.4.0 Pro Edition"
set_global_assignment -name FAMILY "Arria 10"
set_global_assignment -name DEVICE 10AS016C3U19E2LG

 

 

Labels (1)
0 Kudos
1 Solution
sstrell
Honored Contributor III
314 Views

Why do the commands in your script have square brackets [ ]?  That could be the problem.

View solution in original post

0 Kudos
6 Replies
sstrell
Honored Contributor III
336 Views

Your script is looking for Quartus 22.1 but your project is at 22.4.  Try changing the version in one or the other to match

0 Kudos
timeportal
Beginner
331 Views

I tried your suggestion, but it doesn't help.

 

$ qsys-script --script=test.tcl --quartus-project=test
***************************************************************
Quartus is a registered trademark of Intel Corporation in the
US and other countries. Portions of the Quartus Prime software
code, and other portions of the code included in this download
or on this DVD, are licensed to Intel Corporation and are the
copyrighted property of third parties. For license details,
refer to the End User License Agreement at
http://fpgasoftware.intel.com/eula.
***************************************************************

2025.03.05.13:08:50 Info: Doing: qsys-script --script=test.tcl --quartus-project=test
1
2025.03.05.13:08:55 Error: invalid command name ""


@[hill@r650a O.quar.prod]$ cat test.tcl
package require qsys "22.4"
[ puts "1" ]
[ puts "2" ]
[ puts "3" ]
[ send_message "INFO" "1" ]
[ send_message "INFO" "2" ]
[ send_message "INFO" "3" ]

0 Kudos
sstrell
Honored Contributor III
315 Views

Why do the commands in your script have square brackets [ ]?  That could be the problem.

0 Kudos
timeportal
Beginner
236 Views

Thanks, thats a good suggestion apparently TCL is running the result of the square brackets command result substitution as another command.

0 Kudos
RichardTanSY_Intel
291 Views

sstrell seem to nail the square bracket, if remove the square bracket, it runs successfully.


2025.03.06.14:49:21 Info: Doing: <b>qsys-script --script=script_test.tcl --system-file=fifo.qsys</b>

2025.03.06.14:49:30 Info: send_message Info 1

2025.03.06.14:49:30 Info: Info: 1

ERROR 1

ERROR 2

2025.03.06.14:49:30 Info: send_message Info 3

2025.03.06.14:49:30 Info: Info: 3


Regards,

Richard Tan


0 Kudos
RichardTanSY_Intel
166 Views

I'm pleased to know that your question has been addressed. 


Now, I will transitioning this thread to community support. If you have any further questions or concerns, please don't hesitate to reach out. Please login to https://supporttickets.intel.com/s/?language=en_US , view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support.

The community users will be able to help you on your follow-up questions.


Thank you and have a great day!


Best Regards,

Richard Tan


0 Kudos
Reply