AMX DESIGN XPRESS V 1.5 - PROGRAMMER GUIDE User's Guide Page 254

  • Download
  • Add to my manuals
  • Print
  • Page
    / 288
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 253
17–32 Chapter 17: Testbench and Design Example
BFM Procedures and Functions
Cyclone V Hard IP for PCI Express December 2013 Altera Corporation
User Guide
ebfm_cfgwr_imm_nowt Procedure
The
ebfm_cfgwr_imm_nowt
procedure writes up to four bytes of data to the specified
configuration register. This procedure returns as soon as the VC interface module
accepts the transaction, allowing other writes to be issued in the interim. Use this
procedure only when successful completion status is expected.
Table 17–25. ebfm_cfgwr_imm_nowt Procedure
Location altpcietb_bfm_driver_rp.v
Syntax
ebfm_cfgwr_imm_nowt(bus_num, dev_num, fnc_num, imm_regb_adr, regb_len, imm_data)
Arguments
bus_num
PCI Express bus number of the target device.
dev_num
PCI Express device number of the target device.
fnc_num
Function number in the target device to be accessed.
regb_ad
Byte-specific address of the register to be written.
regb_ln
Length, in bytes, of the data written. Maximum length is four bytes, The
regb_ln
the
regb_ad
arguments cannot cross a DWORD boundary.
imm_data
Data to be written
This argument is
reg [31:0]
.
In both languages, the bits written depend on the length:
Length Bits Written
4 [31:0]
3 [23:0]
2 [15:0]
1 [7:0]
Page view 253
1 ... 253 254 255 ... 288

Comments to this Manuals

No comments