2.3.2 LISA+ message C++ prototype

The C++ style prototype has two parameters.

message(const std::string &msg, MessageType type);
msg
is the message to display.
type

characterizes the purpose or nature of the message.

Pass one of these LISA+ symbols as the type parameter:

MSG_FATAL_ERROR:

signals a fatal error. The error message is printed in the output window preceded with the text FATAL ERROR.

If the simulation is running, this stops it in the same way as the simHalt() function. Note that the simulation does not stop immediately.

If the simulation is in the init() or reset() phase, the simulation is prevented from running.

In SystemC systems, this maps to SC_REPORT_FATAL().

MSG_ERROR

indicates an error in the simulation. The message is displayed in the output window preceded by the text ERROR.

In SystemC systems, this maps to SC_REPORT_ERROR().

MSG_WARNING

indicates that the message is a warning. The message string is printed in the output window preceded by the text WARNING.

In SystemC systems, this maps to SC_REPORT_WARNING().

MSG_INFO

indicates that the message string is printed in the output window.

In SystemC systems, this maps to SC_REPORT_INFO().

MSG_DEBUG

indicates a debug message, which is only printed if the debug version of build is used. The message is preceded with the text DEBUG.

In SystemC systems, this maps to SC_REPORT_INFO_VERB(SC_DEBUG, ...).

Non-ConfidentialPDF file icon PDF version101092_0100_04_en
Copyright © 2014–2018 Arm Limited or its affiliates. All rights reserved.