Forum Discussion
Altera_Forum
Honored Contributor
8 years agoAt first, you can try use the static design examples for simulation that are available in Quartus installation directory.
<install_dir>/ip/altera/altera_pcie/altera_pcie_a10_ed/example_design/a10 The driver is altpcietb_bfm_rp_gen3_x8.sv try the ebfm_barwr_imm procedure which writes up to four bytes of data to an offset from the specified Endpoint BAR. ebfm_barwr_imm(bar_table, bar_num, pcie_offset, imm_data, byte_len, tclass) The ebfm_barrd_wait procedure reads a block of data from the offset of the specified Endpoint BAR and stores it in BFM shared memory. ebfm_barrd_wait(bar_table, bar_num, pcie_offset, lcladdr, byte_len, tclass)