Forum Discussion

Sudhirkv1's avatar
Sudhirkv1
Icon for New Contributor rankNew Contributor
5 years ago

MSI generation in PCIe

Hi,

We have been trying to generate MSI interrupt through the RXM_irq input port by making it external on the platform designer. We do not have a DMA engine connected to PCIe, but if look at the testbench system created, specifically at altpcietb_bfm_driver_avmm.v, The MSI interrupt generation is only in dma_mem_test and not on the target_mem_test. We have connected bar0 to the CRA port in our design and hence we are using target_mem_test_lite in this driver BFM. I have modified the testcase similar for this at target_mem_test_lite from dma_mem_test for MSI interrupt generation (Please refer to the attached file).

After writing register 0x50 to 0x00010000 (Bit 16 is used for MSI enable) (cra_msi_enable.png), When we try to read Interrupt Status Register (0x0040), the value we read is 0x0 (Refer to attached snapshot (cra_read_rxm_irq.png).

Could anyone please guide us on how to properly generate MSI interrupts with these configurations.

We are also attaching the Archived Quartus project for reference.

Regards,

Sudhansh Garg

5 Replies

    • Sudhirkv's avatar
      Sudhirkv
      Icon for New Contributor rankNew Contributor

      Hi Rahul,

      Thanks for your time.

      Yes we have set the msi_enable bit set to 1.

      We have also attached the testbench file in the earlier post.

      Regards,

      Sudhir

      • Rahul_S_Intel1's avatar
        Rahul_S_Intel1
        Icon for Frequent Contributor rankFrequent Contributor

        Can you please help to give your number in private message , so that I can call you.