Forum Discussion

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

create interface to user logic

Hello,

Is there any tutorial to make a new SOPC component (interface to user logic)... I would like to create one and add it to Nios 2 reference design... And write the device driver to be used with the Nios IDE.

Regards

Christian

4 Replies

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

    try an333 in the documents folder of the Nios II install.

    I don't know if it tells you how to make it work in the IDE though. But if you get that far, hopefully one of us or another forum member can help you through that.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Also the interface hasn't changed from Nios I to NIOS II so if you get old info it should be fine (but it will not help you with the driver thing).

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

    right, the UDI is actually shipped with sopc builder, so Nios is not really involved. Until you want to use the IDE that is :-s

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

    One thing to remember though using it: Don't declare you're addresses on that bus as volatile if you are using the full NIOS II core. You're data will get cached. Use the IOWR, IORD commands to talk to the interface. The other cores don't have data cache so you're fine there not using those functions.