beautypg.com

Table 17–36 – Altera Arria V Hard IP for PCI Express User Manual

Page 260

background image

17–38

Chapter 17: Testbench and Design Example

BFM Procedures and Functions

Arria V Hard IP for PCI Express

December 2013

Altera Corporation

User Guide

You can suppress the display of certain message types. The default values
determining whether a message type is displayed are defined in

Table 17–36

. To

change the default message display, modify the display default value with a
procedure call to

ebfm_log_set_suppressed_msg_mask

.

Certain message types also stop simulation after the message is displayed.

Table 17–36

shows the default value determining whether a message type stops

simulation. You can specify whether simulation stops for particular messages with the
procedure

ebfm_log_set_stop_on_msg_mask

.

All of these log message constants type

integer

.

Table 17–36. Log Messages

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 miscompares.

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: