Himage2, Himage4, Himage8 – Altera IP Compiler for PCI Express User Manual

Page 280: Himage16

Advertising
background image

15–48

Chapter 15: Testbench and Design Example

BFM Procedures and Functions

IP Compiler for PCI Express User Guide

August 2014

Altera Corporation

himage2

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

.

himage4

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

.

himage8

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

.

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

.

Table 15–49. himage2

Location

altpcietb_bfm_log.v

syntax

string:= himage(vec)

Argument range

vec

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

Return range

string

Returns a 2-digit hexadecimal presentation of the input argument, padded with leading
0s, if they are needed. Return data is type reg with a range of 16:1

Table 15–50. himage4

Location

altpcietb_bfm_log.v

syntax

string:= himage(vec)

Argument range

vec

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

Return range

Returns a four-digit hexadecimal representation of the input argument, padded with leading
0s, if they are needed. Return data is type reg with a range of 32:1.

Table 15–51. himage8

Location

altpcietb_bfm_log.v

syntax

string:= himage(vec)

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

Location

altpcietb_bfm_log.v

syntax

string:= himage(vec)

Advertising