4.3.4 Running BAR2 Memory Read/Write Commands

In the demo, the Root port can initiate BAR2 memory read/write commands for reading/writing to Endpoint LSRAM/DDR3/DDR4.

The PCIe Read/Write tab on the GUI is used to initiate these commands. The Endpoint LSRAM/DDR3/DDR4 memory is first read, and then a value can be entered in a specific location to initiate the write command.

To run BAR2 read/write, perform the following steps:

  1. Select BAR2-LSRAM option and click Read button, as shown in the following figure.
    Figure 4-11. BAR2—LSRAM Read Option
  2. Select any memory location and edit the value of that location. For example, see the following figure.
    Figure 4-12. BAR2—LSRAM Write
  3. The edited memory location turns green and the value entered is written to the Endpoint LSRAM memory location, as shown in the following figure.
    Figure 4-13. BAR2—LSRAM Write Successful
  4. Similarly change any other memory location also.
  5. Click Read button to check whether the memory locations contain the latest values or not.
  6. Similarly, run the BAR2-DDR3 and BAR2-DDR4 memory read/write.