Himage16, Dimage1, Dimage2 – Altera Arria V Hard IP for PCI Express User Manual

Page 264: Himage16 –42 dimage1 –42 dimage2 –42

Advertising
background image

17–42

Chapter 17: Testbench and Design Example

BFM Procedures and Functions

Arria V Hard IP for PCI Express

December 2013

Altera Corporation

User Guide

himage16

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

ebfm_display

.

dimage1

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

ebfm_display

.

dimage2

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

ebfm_display

.

Argument range

vec

Input data type reg with a range of 31:0.

Return range

string

Returns an 8-digit hexadecimal representation of the input argument, padded with leading
0s, if they are needed. Return data is type

reg

with a

range

of 64:1.

Table 17–46. himage8

Table 17–47. himage16

Location

altpcietb_bfm_driver_rp.v

syntax

string:= himage(vec)

Argument range

vec

Input data type reg with a range of 63:0.

Return range

string

Returns a 16-digit hexadecimal representation of the input argument, padded with leading
0s, if they are needed. Return data is type

reg

with a

range

of 128:1.

Table 17–48. dimage1

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 1-digit decimal representation of the input argument that is padded with leading
0s if necessary. Return data is type

reg

with a

range

of 8:1.

Returns the letter U if the value cannot be represented.

Table 17–49. dimage2

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 2-digit decimal representation of the input argument that is padded with leading
0s if necessary. Return data is type

reg

with a

range

of 16:1.

Returns the letter U if the value cannot be represented.

Advertising