Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20704 Discussions

Help with my NIOS2 i2C interface

Altera_Forum
Honored Contributor II
1,317 Views

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?
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
323 Views

You can find it from alterawiki.

0 Kudos
Altera_Forum
Honored Contributor II
323 Views

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?
0 Kudos
Altera_Forum
Honored Contributor II
323 Views

Hi, 

does this reference design not fit your needs? 

 

http://www.altera.com/support/refdesigns/sys-sol/indust_mil/ref-i2c.html 

 

Greets
0 Kudos
Altera_Forum
Honored Contributor II
323 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
323 Views

Hi, 

 

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

 

Greets
0 Kudos
Altera_Forum
Honored Contributor II
323 Views

 

--- 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)
0 Kudos
Reply