Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 3/28/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

2.6.6. The post_message Command

To print messages that are formatted like Intel® Quartus® Prime software messages, use the post_message command. Messages printed by the post_message command appear in the System tab of the Messages window in the Intel® Quartus® Prime GUI, and are written to standard output when scripts are run. Arguments for the post_message command include an optional message type and a required message string.

The message type can be one of the following:

  • info (default)
  • extra_info
  • warning
  • critical_warning
  • error

If you do not specify a type, Intel® Quartus® Prime software defaults to info.

With the Intel® Quartus® Prime software in Windows, you can color code messages displayed at the system command prompt with the post_message command. Add the following line to your quartus2.ini file:

DISPLAY_COMMAND_LINE_MESSAGES_IN_COLOR = on

The following example shows how to use the post_message command.

post_message -type warning "Design has gated clocks"