Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

PCIe loopack in cyclone IV GX

hello ,

I want to test the PCIe protocol on a Cyclone IV GX with loopack.

is that it is possible to do on the same card (serial loopack ) ??

thks,

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    how do you expect to loopback the PCIE? in PCIe requests expect completions for non-posted requests. Or are you just expecting to see the same packets you sent out in the first place?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    i am just expecting to see the same packets that i sent it first, but i want to do this in the same device.

    I saw that there are 3 three types of loopack, and the type used in the Cyclone IV GX is reversal parallel loopack , that is why I need another PCIe device.

    so i just want to test on a single card , I want to just do a SERIAL loopack.

    is it possible on the Cyclone IV GX?!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I generated the IP compiler using MegaWizard plug-in manager , and I need help interfacing the IP at top level to do a transaction memory via PCI Express, is it explained somewhere ?

    Thanks
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    yes I have already seen, I understood a the PCI express protocol (layers,trasaction types ...) but I need to interface PCIe IP I have already generated with the MegaWizard Plug-In Manager in order to guarantee successful data transfer, through PCI Express.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    well you will know then that you need to build an application that can handle the tlps that come put of the avalon-st bus and act on them, putting the completions back in.

    its not a quick job as you will need some kind of state machine. o also recommend putting fifos on the st bus.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    thank you,

    is there an example to explain the procedure that I can follow to build this kind of application ?