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

Page 310: Description, Example, Post_message –180

Advertising
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 <file name>] [-line <file line number>] [-type
<info|extra_info|warning|critical_warning|error>] <string>

Options

-file <file name>: File name associated with the message

-line <file line number>: Line number used when locating the specified <file name>
through the Quartus II software

-type <info|extra_info|warning|critical_warning|error>: Type of message to display

<string>: 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"

Advertising