Forum Discussion

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

Help with my NIOS2 i2C interface

Hi all,

as part of my finalproject in my electronic engineering studys, i am supposed to have a NIOS2with multymaster, multyslave I2C components.

On the SPOC i sawthere is no such interface. Does anyone have a verilog/vhdl code for such aninterface? Can someone give me help with what direction should i carry on myresearc regarding this issue?

6 Replies

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

    Thanks for your help. I saw this page but to my best understanding, it works with wishbone, and I think i need for the NIOS Avalon.

    Am I right? if i use a code from opencore do i need to publish my code?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks. Do i get there the design verilog/vhdl code?

    I did not quite understand what does this I2C Controller Reference Design mean. Is it a board? Is it a SW tool? Can I play around with the code?

    Many thanks in advance.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    a reference design is a vhdl/verilog design you can use in your application for free.

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

    --- Quote Start ---

    Thanks for your help. I saw this page but to my best understanding, it works with wishbone, and I think i need for the NIOS Avalon.

    Am I right? if i use a code from opencore do i need to publish my code?

    --- Quote End ---

    Someone has ported the opencores i2c masteer to Avalon bus.You can use it directely. http://www.alterawiki.com/wiki/i2c_(opencores)