FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5878 Discussions

PCIe IP Compiler addressing

Altera_Forum
Honored Contributor II
1,042 Views

Hi All, 

 

We had several successful designs with PCIe IP Compiler on Cyclone IV GX using SOPC Builder and Qsys. Now we decided to make our own designs with the same core in Verilog. 

 

I am examining the user's manual of this core and have a lot of questions about it. Maybe these are basics but are not clear for me. 

I understand the basic core has Avalon ST interface which transfers the PCIe header also. So a stream interface should be built up which decodes it. But it contains several field. Where can I get information about these fields in the system during runtime? The IDs? 

How is the addressing done during runtime? Do this interface give physical addresses? How should I know if my internal modules are addressed or not? 

The appendix of the manual does not give any information about these questions. 

Where are the control registers of this core? In SOPC Builder/Qsys they are available through the CRA port but here how are they mapped? 

Are these information included in the manual? I did not find. I do not know where to start and need for help. 

 

Regards, 

Istvan
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
98 Views

I suggest reading the PCI and PCIe Specs from the PCI-SIG. Those clearly state what to do in reaction to a received TLP and how to construct transmit TLPs. The Altera PCI Express User Guide just tells you how you interface these TLPs with the Avalon-ST interface. 

 

You might get a first impression looking at this article (http://billauer.co.il/blog/2011/03/pci-express-tlp-pcie-primer-tutorial-guide-1/), continued here (http://billauer.co.il/blog/2011/03/pci-express-tlp-pcie-primer-tutorial-guide-2/). That is a very brief introduction to the topic, alongside with a lot of advertisment for the author’s solution (Xillybus) which I can neither recommend nor discourage to use because I don’t know it. At least it might be hard to make it work on Altera because it seems to be written solely for Xilinx FPGAs. 

 

– Matthias
Altera_Forum
Honored Contributor II
98 Views

I recommend you get a copy of the mindshare PCIe system architecture. You can buy the ebook version for $32 

 

http://www.mindshare.com/learn/?section=11e3067e0ba2
Altera_Forum
Honored Contributor II
98 Views

Hello Matthias and Tricky, 

 

Thanks for the responses! Now I am reading the PCIe specs and many things turned to be clear. 

We will buy books also for better understanding. 

 

Best regards, 

Istvan
Reply