Dimage1, Dimage2, Dimage3 – Altera IP Compiler for PCI Express User Manual

Page 281

Advertising
background image

Chapter 15: Testbench and Design Example

15–49

BFM Procedures and Functions

August 2014

Altera Corporation

IP Compiler for PCI Express User Guide

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.

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.

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 15–52. himage16

Table 15–53. dimage1

Location

altpcietb_bfm_log.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 15–54. dimage2

Location

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

Table 15–55. dimage3

Location

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

Advertising