Forum Discussion

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

PCIe "Enumeration" SW on NIOS II ?

Hi All,

Does anyone know where I can get PCIe Enumeration program (written in 'C') to run on NIOS II ?

I have the Stratix IV dev. board, configured as RooPort, plugged into a chassis with a number of other PCIe boards

with a PLX PCIe switch. So, before I can transfer any data I need to run enumeration.

Thanks,

Shvitzer

12 Replies

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

    Thank you for the reply and the suggested book.

    Is your hw design based on the Altera Wiki "Modular PCIe SOPC Builder Bridge Example"?

    I would have asked with a PM but it's not yet permitted.

    Thanks,

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

    I actually inherited a PCIe design based on a MegaWizard generated PCIe core, to which I added the NIOS II. As you may know, there are two ways to generate the PCIe system i.e. one with QSYS as in AN431 or using the Megawizard, it depends

    on your application. I now have a RootPort and an EndPoint design based on the MegaWizard way. The QSYS way is somewhat simpler to design but it has a DMA for the EndPoint which I did not want.

    I am not familiar with the Wiki version, it also depends on the board that you are targeting the design for. I would start by searching for PCIe reference designed for your choice of dev. board.

    Cheers,

    Shvitzer