Forum Discussion

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

how to find the APIs of the ip in nios?

hi everyone

if i add an ip from the library in Qsys, how should i use it in Eclipse?

is there an pdf or reference design to teach me how to use it?(like read/write, setup interrupt)

and how can i find the APIs of the ip?

2 Replies

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

    Hi,

    it depends which IP you use. Try google the name of the ip or try the documentation button inside the opened qsys-ip...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Almost every IP core comes with some documentation, which can be more or less complete.

    If it's an IP from Altera or if the IP has been designed as a Qsys component, usually you have the HAL driver or, at least a register map to access it through IOWR/IORD.

    If you need to integrate a generic IP (i.e. from opencores.org) you may need to add a wrapper to interface it to Avalon bus, create a new custom device in Qsys and write the APIs yourself.