R-Tile Avalon® Streaming Intel® FPGA IP for PCI Express* Design Example User Guide
A newer version of this document is available. Customers should click here to go to the newest version.
2.4.5.5. ebfm_cfgwr_imm_wait Procedure
The ebfm_cfgwr_imm_wait procedure writes up to four bytes of data to the specified configuration register. This procedure waits until the write completion has been returned.
| Location |
altpcietb_g3bfm_rdwr.v |
|
|---|---|---|
| Syntax |
ebfm_cfgwr_imm_wait(bus_num, dev_num, fnc_num, imm_regb_ad, regb_ln, imm_data, compl_status |
|
| 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 and the regb_ad arguments cannot cross a DWORD boundary. |
|
| imm_data | Data to be written. This argument is reg [31:0]. The bits written depend on the length:
|
|
| compl_status | This argument is reg [2:0]. This argument is the completion status as specified in the PCI Express specification. The following encodings are defined:
|
|