Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21602 ディスカッション

Integrating I2C slave to Avalon MM Master bridge

fedecive
新規コントリビューター I
4,919件の閲覧回数

Hi,

I am integrating the I2C slave to Avalon MM Master bridge IP inside my project for Cyclone 10 LP but it is still unclear how this IP works.

Here you can find the SignalTap attached to both I2C lanes and Avalon MM Master signals. From the host side I am sending the device address (0x55 selected in the qsys parameter of the IP), 4 byte address (0x0000000A) and one byte of data (0x01). Also considering 4 byte of data (0x00000001) the behavior is the same.

Screenshot from 2021-12-10 18-20-20.png

As you can see, the IP correctly acknowledges the master communication but the Avalon MM address and data are not correctly set, as well as the write signal.

In the following image, you can see the qsys settings for the I2C slave to Avalon MM Master bridge IP:

Screenshot from 2021-12-10 18-25-30.png

 

Which is the correct data that I have to send via I2C? I have to write the following data into the Avalon MM via I2C:

Avalon MM address: 0x0000000A

Avalon MM data to write: 0x00000001

Thank you.

0 件の賞賛
1 解決策
fedecive
新規コントリビューター I
4,829件の閲覧回数

Hi Sheng,

yes, I was able to resolve the issue. We can close the thread.

Thank you.

元の投稿で解決策を見る

4 返答(返信)
sstrell
名誉コントリビューター III
4,901件の閲覧回数

I'm not an I2C expert, but shouldn't the address you want to put on the Avalon bus (0xA) be in the second byte from I2C, not 4 bytes later?  I'm presuming the first byte is the control byte.  Are you following the Embedded Peripherals IP user guide (page 202 of the pdf)?:

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/ug/ug_embedded_ip.pdf

abdul_ali
ビギナー
3,641件の閲覧回数

Hi there I have been reading that page on the guide but still confused on how the final packet of data will look like. I am trying to send the packet from the system console and confused on how to define the address.

ShengN_Intel
従業員
4,834件の閲覧回数

Hi fedecive,

 

Any update on this thread?

 

Best regards,
Sheng


fedecive
新規コントリビューター I
4,830件の閲覧回数

Hi Sheng,

yes, I was able to resolve the issue. We can close the thread.

Thank you.

返信