R-tile Avalon® Streaming Intel® FPGA IP for PCI Express* Design Example User Guide
                    
                        ID
                        683544
                    
                
                
                    Date
                    3/28/2022
                
                
                    Public
                
            A newer version of this document is available. Customers should click here to go to the newest version.
                
                    
                        1. About the R-tile Avalon® Streaming Intel® FPGA IP for PCI Express PIO Design Example
                    
                    
                
                    
                        2. Quick Start Guide
                    
                    
                
                    
                    
                        3. R-Tile Avalon® Streaming Intel® FPGA IP for PCI Express* Design Example User Guide Archives
                    
                
                    
                    
                        4. Document Revision History for the R-tile Avalon® Streaming Intel FPGA IP for PCI Express Design Example User Guide
                    
                
            
        
                                                
                                                
                                                    
                                                    
                                                        2.4.5.1. ebfm_barwr Procedure
                                                    
                                                    
                                                
                                                    
                                                    
                                                        2.4.5.2. ebfm_barwr_imm Procedure
                                                    
                                                    
                                                
                                                    
                                                    
                                                        2.4.5.3. ebfm_barrd_wait Procedure
                                                    
                                                    
                                                
                                                    
                                                    
                                                        2.4.5.4. ebfm_barrd_nowt Procedure
                                                    
                                                    
                                                
                                                    
                                                    
                                                        2.4.5.5. ebfm_cfgwr_imm_wait Procedure
                                                    
                                                    
                                                
                                                    
                                                    
                                                        2.4.5.6. ebfm_cfgwr_imm_nowt Procedure
                                                    
                                                    
                                                
                                                    
                                                    
                                                        2.4.5.7. ebfm_cfgrd_wait Procedure
                                                    
                                                    
                                                
                                                    
                                                    
                                                        2.4.5.8. ebfm_cfgrd_nowt Procedure
                                                    
                                                    
                                                
                                                    
                                                        2.4.5.9. BFM Configuration Procedures
                                                    
                                                    
                                                    
                                                
                                                    
                                                        2.4.5.10. BFM Shared Memory Access Procedures
                                                    
                                                    
                                                    
                                                
                                                    
                                                        2.4.5.11. BFM Log and Message Procedures
                                                    
                                                    
                                                    
                                                
                                                    
                                                        2.4.5.12. Verilog HDL Formatting Functions
                                                    
                                                    
                                                    
                                                
                                            
                                        
                                                            
                                                            
                                                                
                                                                
                                                                    2.4.5.11.1. ebfm_display Verilog HDL Function
                                                                
                                                                
                                                            
                                                                
                                                                
                                                                    2.4.5.11.2. ebfm_log_stop_sim Verilog HDL Function
                                                                
                                                                
                                                            
                                                                
                                                                
                                                                    2.4.5.11.3. ebfm_log_set_suppressed_msg_mask Task
                                                                
                                                                
                                                            
                                                                
                                                                
                                                                    2.4.5.11.4. ebfm_log_set_stop_on_msg_mask Verilog HDL Task
                                                                
                                                                
                                                            
                                                                
                                                                
                                                                    2.4.5.11.5. ebfm_log_open Verilog HDL Function
                                                                
                                                                
                                                            
                                                                
                                                                
                                                                    2.4.5.11.6. ebfm_log_close Verilog HDL Function
                                                                
                                                                
                                                            
                                                        
                                                    2.6. Installing the Linux Kernel Driver
    Note: The R-Tile Avalon Streaming Intel FGPA IP for PCIe design example has limited hardware testing support on the 22.1 release of  Intel® Quartus® Prime. The instructions below can be used for early testing and for the flow required to run the design example on the  Intel® Agilex™  I-Series FPGA Development Kit. 
   
 Before you can test the design example in hardware, you must install the Linux kernel driver. You can use this driver to perform the following tests: 
   - A PCIe* link test that performs 100 writes and reads
- Memory space DWORD1 reads and writes
- Configuration Space DWORD reads and writes
In addition, you can use the driver to change the value of the following parameters:
- The BAR being used
- The selected device (by specifying the bus, device and function (BDF) numbers for the device)
Complete the following steps to install the kernel driver:
- Navigate to ./software/kernel/linux under the example design generation directory.
-  Change the permissions on the install, load, and unload files: 
    $ chmod 777 install load unload
-  Install the driver: 
    $ sudo ./install
-  Verify the driver installation: 
    $ lsmod | grep intel_fpga_pcie_drvExpected result:intel_fpga_pcie_drv 17792 0 
-  Verify that Linux recognizes the  PCIe*  design example:  
    $ lspci -d 1172:000 -v | grep intel_fpga_pcie_drvNote: If you have changed the Vendor ID, substitute the new Vendor ID for Intel® 's Vendor ID in this command (1172).Expected result:Kernel driver in use: intel_fpga_pcie_drv 
  1 Throughout this user guide, the terms word, DWORD and QWORD have the same meaning that they have in the PCI Express Base Specification. A word is 16 bits, a DWORD is 32 bits, and a QWORD is 64 bits.