Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
15803 Discussions

PCIe hard IP BAR to On-chip memory addressing

Markgel
Novice
444 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
369 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
418 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
412 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.

JohnT_Intel
Employee
407 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-re... for the design example.


Markgel
Novice
377 Views

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

Markgel_0-1615213460010.png

 

JohnT_Intel
Employee
370 Views

Hi,


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


Markgel
Novice
338 Views

Hi

 

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

 

BR,

Mark.

JohnT_Intel
Employee
304 Views

Hi,


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


Markgel
Novice
294 Views

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

JohnT_Intel
Employee
283 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.


Reply