beautypg.com

Post_message, Usage, Options – Altera Quartus II Scripting User Manual

Page 310: Description, Example, Post_message –180

background image

3–180

Chapter 3: Tcl Packages & Commands

misc

Quartus II Scripting Reference Manual

© July 2013

Altera Corporation

post_message

Usage

post_message [-file ] [-line ] [-type
]

Options

-file : File name associated with the message

-line : Line number used when locating the specified
through the Quartus II software

-type : Type of message to display

: Message to be displayed

Description

Displays the message of the specified type.

The message type can be "info", "extra_info", "warning", "critical_warning", or "error". If you do not use the
"-type" option, the default message type is "info".

Example

# Display an error message
post_message -type error "Can't open file test.tcl"

# Display an info message
post_message "Generated output file: test.out"
# OR
post_message -type info "Generated output file: test.out"

# Display a warning message
post_message -type warning "Defaulting fmax to 155.55mhz"

# Display a extra info message
post_message -type extra_info "Input file test.in had 100 lines"

# Display a critical warning message
post_message -type critical_warning "Invalid fmax was specified - \
defaulting to 155.55mhz"