Visible to Intel only — GUID: hmx1520633365982
Ixiasoft
Visible to Intel only — GUID: hmx1520633365982
Ixiasoft
C.11. BFM Log and Message Procedures
The following procedures and functions are available in the Verilog HDL include file altpcietb_bfm_log.v
These procedures provide support for displaying messages in a common format, suppressing informational messages, and stopping simulation on specific message types.
The following constants define the type of message and their values determine whether a message is displayed or simulation is stopped after a specific message. Each displayed message has a specific prefix, based on the message type in the following table.
Certain message types stop the simulation after the message is displayed. The following table shows the default value determining whether a message type stops the simulation. You can specify whether the simulation stops for particular messages with the procedure ebfm_log_set_stop_on_msg_mask. You can also suppress the display of certain message types. The following table also shows the default values determining whether a message type is displayed. To change the default message display, modify the display default value with a procedure call to ebfm_log_set_suppressed_msg_mask.
All of these log message constants type integer.
Constant (Message Type) |
Description |
Mask Bit No |
Display by Default |
Simulation Stops by Default |
Message Prefix |
---|---|---|---|---|---|
EBFM_MSG_DEBUG | Specifies debug messages. |
0 |
No |
No |
DEBUG: |
EBFM_MSG_INFO | Specifies informational messages, such as configuration register values, starting and ending of tests. |
1 |
Yes |
No |
INFO: |
EBFM_MSG_WARNING | Specifies warning messages, such as tests being skipped due to the specific configuration. |
2 |
Yes |
No |
WARNING: |
EBFM_MSG_ERROR_INFO | Specifies additional information for an error. Use this message to display preliminary information before an error message that stops simulation. |
3 |
Yes |
No |
ERROR: |
EBFM_MSG_ERROR_CONTINUE | Specifies a recoverable error that allows simulation to continue. Use this error for data comparison failures. |
4 |
Yes |
No |
ERROR: |
EBFM_MSG_ERROR_FATAL | Specifies an error that stops simulation because the error leaves the testbench in a state where further simulation is not possible. |
N/A |
Yes Cannot suppress |
Yes Cannot suppress |
FATAL: |
EBFM_MSG_ERROR_FATAL_TB_ERR | Used for BFM test driver or Root Port BFM fatal errors. Specifies an error that stops simulation because the error leaves the testbench in a state where further simulation is not possible. Use this error message for errors that occur due to a problem in the BFM test driver module or the Root Port BFM, that are not caused by the Endpoint Application Layer being tested. |
N/A |
Y Cannot suppress |
Y Cannot suppress |
FATAL: |