Ebfm_log_open verilog hdl function, Ebfm_log_close verilog hdl function, Verilog hdl formatting functions – Altera Arria V Avalon-ST User Manual
Page 217: Himage1, Himage2
Related Information
BFM Log and Message Procedures
on page 16-43
ebfm_log_open Verilog HDL Function
The
ebfm_log_open
procedure opens a log file of the specified name. All displayed messages are called by
ebfm_display
and are written to this log file as simulator standard output.
Location
altpcietb_bfm_driver_rp.v
Syntax
ebfm_log_open (fn)
Argument
fn
This argument is type
string
and provides the file name of log
file to be opened.
ebfm_log_close Verilog HDL Function
The
ebfm_log_close
procedure closes the log file opened by a previous call to
ebfm_log_open
.
Location
altpcietb_bfm_driver_rp.v
Syntax
ebfm_log_close
Argument
NONE
Verilog HDL Formatting Functions
The Verilog HDL Formatting procedures and functions are available in the altpcietb_bfm_driver_rp.v.
The formatting functions are only used by Verilog HDL. All these functions take one argument of a
specified length and return a vector of a specified length.
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
.
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
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
.
2014.12.15
ebfm_log_open Verilog HDL Function
16-47
Testbench and Design Example
Altera Corporation