UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer mrpetep1
Observer
766 Views
Registered: ‎03-13-2018

SCL Frequency AXI IIC Bus Interface v2.0

Jump to solution

Using Vivado v2018.1_AR70325 (64-bit), AXI IIC Bus Interface v2.0

ZYNQ-7 ZC706 Evaluation Board (xc7z045ffg900-2)

 

Configuring the IIC Parameters in the GUI for a “block design”, "AXI Clock Frequency (in MHz) (Auto) displays 100.0, it has a grey background and can't be changed. Is it “auto”, 100MHz or something else?

The actual AXI clock frequency is 125MHz.

The SCL Clock Frequency (in KHz) defaults to 100, that’s what I want.

When I try the I2C logic, according to the ILA, the SCL is 977,517 Hz, almost 10 times faster than it should be.

I tried decreasing the SCL clock frequency in the GUI so THIGH and TLOW could be increased. The SCL frequency could be reduced but it didn’t affect the width of the start, so that didn’t work.

A block design didn’t work, so I tried an RTL design. Configuring the IIC Parameters in the GUI for a RTL design, "AXI Clock Frequency (in MHz)” can be changed to 125.

When I try the I2C logic, according to the ILA, the SCL is 785,545.95 Hz instead of 100KHz.

An SCL of 785,545.95 Hz is not what I expected. It is not acceptable. Please advise.

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
693 Views
Registered: ‎11-09-2015

Re: SCL Frequency AXI IIC Bus Interface v2.0

Jump to solution

Hi @mrpetep1,

 

In RLT, the configuration GUI should be different and should allow a change of the frequency. A generic or parameter should then be used under the hood


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
8 Replies
705 Views
Registered: ‎01-12-2018

Re: SCL Frequency AXI IIC Bus Interface v2.0

Jump to solution

Hi, 

How did you fix it? I met the same problem. But the grey frequency is 25, I actually use 50MHz.

 

 

 

0 Kudos
702 Views
Registered: ‎01-12-2018

Re: SCL Frequency AXI IIC Bus Interface v2.0

Jump to solution

Hi ,

 

Never mind. I found it will update automatically after you run synthesis. 

 

Cheers.

0 Kudos
Observer mrpetep1
Observer
630 Views
Registered: ‎03-13-2018

Re: SCL Frequency AXI IIC Bus Interface v2.0

Jump to solution

It didn't update for me, I couldn't figure out how to fix it. I gave up trying to use the IP.

Hope your project is a success!

 

Regards,

mrpetep1

0 Kudos
Moderator
Moderator
607 Views
Registered: ‎11-09-2015

Re: SCL Frequency AXI IIC Bus Interface v2.0

Jump to solution

Hi @mrpetep1,

 

The AXI clock can be changed when you input a clock with a different frequency and update the Block Design.

 

The SCL should be expected to be set to the correct frequency if the AXI clock has the correct frequency.

 

How are you checking the frequency. Could you ouput the SCL clock and check outside the device?


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Observer mrpetep1
Observer
599 Views
Registered: ‎03-13-2018

Re: SCL Frequency AXI IIC Bus Interface v2.0

Jump to solution

Florent,

It didn't allow the AXI clock frequency to be changed even after saving, generating output products, running synthesis, etc.

 

I was checking the frequency with the ILA.

 

See first (‎06-07-2018 08:22 AM) post.

 

I assumed the marker position is displayed in ns. Is that correct?

 

Thank you,

mrpetep1

0 Kudos
Highlighted
Moderator
Moderator
594 Views
Registered: ‎11-09-2015

Re: SCL Frequency AXI IIC Bus Interface v2.0

Jump to solution

HI @mrpetep1,

 

To change the AXI clock frequency you need to change the settings of your clock at the system level. If you clock is external to the BD you need to change the clock settings on the Block Design port settings and then validate the BD to propagate the setting to the AXI IIC (this is not set directly in the IP).

 

I assumed the marker position is displayed in ns. Is that correct?

No. In an ILA, the marker corresponds to 1 clock edge of your input clock. You do not have any notion of time unit in the ILA. So it will depends on your input clock. If the clock driving the ILA is 100MHz, then the scale will be 10 ns which might be what you expect

 

Hope that clarifies,


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Observer mrpetep1
Observer
586 Views
Registered: ‎03-13-2018

Re: SCL Frequency AXI IIC Bus Interface v2.0

Jump to solution

Florent,

The clock frequency is in (also) the BD port properties and the IP gets the frequency from there, it's displayed but not entered into the GUI. I understand, thanks.

 

I tried it in an RTL design, in that case would the frequency be in a generic integer or something? I don't recall.

 

In the ILA, the marker displays the number of clock domain clock cycles instead of time. I understand, thanks.

 

Regards,

mrpetep1

0 Kudos
Moderator
Moderator
694 Views
Registered: ‎11-09-2015

Re: SCL Frequency AXI IIC Bus Interface v2.0

Jump to solution

Hi @mrpetep1,

 

In RLT, the configuration GUI should be different and should allow a change of the frequency. A generic or parameter should then be used under the hood


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos