Himage1, Himage2, Himage4 – Altera Arria V Hard IP for PCI Express User Manual
Page 263: Himage8, Himage1 –41 himage2 –41 himage4 –41 himage8 –41
Chapter 17: Testbench and Design Example
17–41
BFM Procedures and Functions
December 2013
Altera Corporation
Arria V Hard IP for PCI Express
User Guide
himage1
This function creates a one-digit hexadecimal string representation of the input
argument that can be concatenated into a larger message string and passed to
ebfm_display
.
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
.
Table 17–43. himage1
Location
altpcietb_bfm_driver_rp.v
syntax
string:= himage(vec)
Argument
vec
Input data type
reg
with a
range
of 3:0.
Return range
string
Returns a 1-digit hexadecimal representation of the input argument. Return data is type
reg
with a
range
of 8:1
Table 17–44. himage2
Location
altpcietb_bfm_driver_rp.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 17–45. himage4
Location
altpcietb_bfm_driver_rp.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 17–46. himage8
Location
altpcietb_bfm_driver_rp.v
syntax
string:= himage(vec)