Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16886 Discussions

PCIe hard IP BAR to On-chip memory addressing

Markgel
Novice
1,548 Views

using Cyclone IV hard ip and On-chip memory 32B mapped to 0x-0x1F 

BAR0 mapped to 0xA1200000-0xA0001F

Reading BAR0 at offset 0 should have access first byte of On-chip memory? Reading 0xff instead of memory content.

 

 

 

 

0 Kudos
1 Solution
JohnT_Intel
Employee
1,473 Views

Hi,


May I know if you enable the PCIe BAR0? Have you try to performed SignalTap?


View solution in original post

9 Replies
JohnT_Intel
Employee
1,522 Views

Hi,


Could you share with me your Quartus design? How do you confirm that you are reading the correct addressing? Have you try to use SignalTap to tap the on chip memory IP interface?


Markgel
Novice
1,516 Views

Attached the design.  Regarding the addressing - trying to read and write to BAR0, but can't catch any activity for On chip memory signals using the SignalTap.

0 Kudos
JohnT_Intel
Employee
1,511 Views

Hi,


From your design, I observed that you are not using the correct clock on the on chip memory. The clock should be from the PCIe Clock output so that the clock is sync between Bar 0 and On Chip Memory.


Please refer to https://fpgacloud.intel.com/devstore/platform/14.0.0/Standard/an-456-pci-express-high-performance-reference-design-for-cyclone-iv-gx-fpga/ for the design example.


Markgel
Novice
1,481 Views

tried to implement design suggested (attached), but still reading 0xFF from the BARs memory:

Markgel_0-1615213460010.png

 

0 Kudos
JohnT_Intel
Employee
1,474 Views

Hi,


May I know if you enable the PCIe BAR0? Have you try to performed SignalTap?


Markgel
Novice
1,442 Views

Hi

 

  Yes, indeed was a problem that win driver blocked the BAR0. Thanks for support.

 

BR,

Mark.

0 Kudos
JohnT_Intel
Employee
1,408 Views

Hi,


May I know if the issue is resolved after you unblock the BAR0?


0 Kudos
Markgel
Novice
1,398 Views

Yes, it does - can access to the BARs memory.

0 Kudos
JohnT_Intel
Employee
1,387 Views

I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.


0 Kudos
Reply