beautypg.com

Dimage3, Dimage4, Dimage5 – Altera Arria V Hard IP for PCI Express User Manual

Page 265: Dimage6, Dimage3 –43 dimage4 –43 dimage5 –43 dimage6 –43

background image

Chapter 17: Testbench and Design Example

17–43

BFM Procedures and Functions

December 2013

Altera Corporation

Arria V Hard IP for PCI Express

User Guide

dimage3

This function creates a three-digit decimal string representation of the input argument
that can be concatenated into a larger message string and passed to

ebfm_display

.

dimage4

This function creates a four-digit decimal string representation of the input argument
that can be concatenated into a larger message string and passed to

ebfm_display

.

dimage5

This function creates a five-digit decimal string representation of the input argument
that can be concatenated into a larger message string and passed to

ebfm_display.

dimage6

This function creates a six-digit decimal string representation of the input argument
that can be concatenated into a larger message string and passed to

ebfm_display

.

Table 17–50. dimage3

Location

altpcietb_bfm_driver_rp.v

syntax

string:= dimage(vec)

Argument range

vec

Input data type

reg

with a

range

of 31:0.

Return range

string

Returns a 3-digit decimal representation of the input argument that is padded with leading
0s if necessary. Return data is type

reg

with a

range

of 24:1.

Returns the letter U if the value cannot be represented.

Table 17–51. dimage4

Location

altpcietb_bfm_driver_rp.v

syntax

string:= dimage(vec)

Argument range

vec

Input data type

reg

with a

range

of 31:0.

Return range

string

Returns a 4-digit decimal representation of the input argument that is padded with
leading 0s if necessary. Return data is type

reg

with a

range

of 32:1.

Returns the letter U if the value cannot be represented.

Table 17–52. dimage5

Location

altpcietb_bfm_driver_rp.v

syntax

string:= dimage(vec)

Argument range

vec

Input data type

reg

with a

range

of 31:0.

Return range

string

Returns a 5-digit decimal representation of the input argument that is padded with leading
0s if necessary. Return data is type

reg

with a

range

of 40:1.

Returns the letter U if the value cannot be represented.

Table 17–53. dimage6

Location

altpcietb_bfm_log.v

syntax

string:= dimage(vec)