3.6.3.2 Message Format
(Ask a Question)Each SmartHLS message consists of a severity level, a unique message ID, and a detailed description, it appears as
<SEVERITY LEVEL>: (<MESSAGE ID>) <MESSAGE DESCRIPTION>
SEVERITY LEVELwill be one of the following, listed top to bottom in ascending order of severity:Severity Level Info Information message. Warning Potential problem that users should be aware of, but synthesis can still proceed. Error Critical problem that blocks synthesis from being completed, most likely due to input design problem. Fatal Error Unexpected problem that blocks synthesis from being completed. MESSAGE IDuniquely identifies a message within SmartHLS™, and it is prefixed with 'SHLS-'.MESSAGE DESCRIPTIONprovides additional detailed information, such as the associated source code location.
When specifying MESSAGE DESCRIPTION, variable placeholders enclosed in curly
braces, such as {location}, are used to denote message-specific information.
The table below provides a list of symbols that are frequently used in message descriptions
throughout this section.
| Symbol | Description | Example |
{location}
| Source code location | line 6 of test.cpp |
{function} {variable} | Source symbol name |
foo
|
{loop}
| Loop identifier |
for.loop:test.cpp:6:5
|
As we transition from the previous messaging system, SmartHLS in this release currently displays a combination of messages in both the old and new formats. Messages annotated with a 'SHLS-' ID indicate that they are in the new format, and a selection of these messages is documented in this section. As we continue migrating to the new messaging system, we will also enhance this section to provide improved support for users.
Each message documented in this section begins with its format, followed by an example code that generates the message. Where applicable, we also offer advice to help users avoid encountering the message. Please note that this section is intended to help users understand the cause of the messages and does not provide design advice.
To execute the example code, users may import it into SmartHLS and run the 'Compile Software
to Hardware' (shls hw) command, unless a different command is specified in
the header of the example code, such as 'SW/HW Co-Simulation' (shls cosim),
as indicated in SHLS-89 and SHLS-99. All examples are device-independent
unless otherwise specified. For example, on Linux, users can:
- Copy the example code into a file named
test.cppand place this file in a new folder. - Generate
Makefileby> shls init - Execute the code by
> shls hw
