Chapter 16: Testbench and Design Example
16–41
BFM Procedures and Functions
November 2012
Altera Corporation
Arria V GZ Hard IP for PCI Express
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 16–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 16–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 16–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 16–46. himage8
Location
altpcietb_bfm_driver_rp.v
syntax
string:= himage(vec)