Author Topic: Visualize the PCIe communication protocol  (Read 1585 times)

0 Members and 1 Guest are viewing this topic.

Offline TheGreatNedTopic starter

  • Contributor
  • Posts: 20
  • Country: us
Visualize the PCIe communication protocol
« on: August 28, 2020, 05:11:29 pm »
Hello,

I was wondering what the best way to visualize the PCIe protocol is. I know both Intel and Xilinx provide soft and hard ip for pcie drivers. However, these are closed source and I can only simulate their output -- not what goes on inside.

I would love to be able to see what a packet looks like before it enters the PHY and how it looks coming out of the PHY. Does anyone have any advice on using the pcie opencores or ip to achieve this?

Thank you :)
 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 4917
  • Country: au
    • send complaints here
Re: Visualize the PCIe communication protocol
« Reply #1 on: August 28, 2020, 11:06:58 pm »
You can see those specific details in the simulations provided by Altera, Xilinx claim to have similar but I haven't looked too deeply at their example.
 

Online asmi

  • Super Contributor
  • ***
  • Posts: 2794
  • Country: ca
Re: Visualize the PCIe communication protocol
« Reply #2 on: August 29, 2020, 02:01:51 am »
Find a PCI Express specification - it describes what signal looks like on a line, what packet looks like as it passes through the stack. It's conceptually very similar to how Ethernet works and it's OSI stack, except that PCIE has less layers because it's much more simple.

Offline KE5FX

  • Super Contributor
  • ***
  • Posts: 1999
  • Country: us
    • KE5FX.COM
Re: Visualize the PCIe communication protocol
« Reply #3 on: August 29, 2020, 02:31:15 am »
Take a look at https://github.com/enjoy-digital/litepcie and see if that helps.  Also http://www.xillybus.com/doc/xilinx-pcie-principle-of-operation is worth looking at.  Even though it's a commercial product its inner workings are well-described.
 
The following users thanked this post: ebclr

Offline tmbinc

  • Frequent Contributor
  • **
  • Posts: 253
Re: Visualize the PCIe communication protocol
« Reply #4 on: September 10, 2020, 03:23:56 pm »
Not sure which layer you're mostly interested - if it's above PHY, then another way is to install a PCIe analyzer software (I like the Teledyne/Lecroy Summit one a lot, but there are different ones). They usually come with sample captures that work without hardware. It allows you to look at data on various levels, typically down to the bit level, and allows you to browse through TLPs.

PCIe is surprisingly sane.

The PHY "doesn't do a lot" from this perspective though - it's a SERDES with clock recovery. Perspective changes a lot of course once you look into the details.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf