Forum Discussion

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

how to conect external hardware to the nios ii

hello everyone!!

well i need some help, im trying to conect some test hardware to my nios, but i m not sure how to do it. I have the program in c and i have to put some externals interruptions and depend on the interruptions, load some data from some externals register and i try to know how to do this. I did some kind of simulations using pushes and it works but i really need to put this hardware because i m going to conect this hardware.

i hope someone can help me

thak you

6 Replies

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

    Get aquainted with this webpage and bookmark it:

    http://www.altera.com/literature/lit-nio2.jsp

    Basically there are a few ways to interact with with external hardware:

    1 - Use PIO ports. These are just regular I/O ports that connect to your NIOS processor and go to the outside world. You can write to them, read from them ,get interrupts from them, etc.

    2 - Export part of the avalon bus from the SoPC system so your logic can be accessed from the processor.

    3 - Create your own custom component to interface between the NIOS and your hardware.

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

    thanks a lot, i will try to do and if i have more doubs i ask thank you very much

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

    hi,

    i need a help

    how to connect CAN opencore to nios Avalon bus?

    i want to integrated CAN opencore as a new component on SOPC builder Altera Cyclone II.