Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 7/08/2024
Public
Document Table of Contents

2.6.6. The post_message Command

To print messages that are formatted like 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 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, Quartus® Prime software defaults to info.

With the 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"