Forum Discussion

ZhiqiangLiang's avatar
ZhiqiangLiang
Icon for Occasional Contributor rankOccasional Contributor
6 months ago

Avalon-MM Clock Crossing Bridge parameters setting

Hi,

My FPGA model is Cyclone 10 LP 10CL120YF484.

on Platform Designer, NIOS frequency is 80MHz, and my IP is 160MHz.

In NIOS C code, I would like to read/write registers of my IP.

In my design, I would like to add a Avalon-MM Clock Crossing Bridge between NIOS and my IP.

The questions are:

1) what do those parameters mean in Avalon-MM Clock Crossing Bridge setting?

2) in my design(NIOS 80MHz, IP 160MHz), how to set those parameters?

3) If no parameters can make my design work, what NIOS frequency should I set?

2 Replies

  • FOZDEMIR's avatar
    FOZDEMIR
    Icon for New Contributor rankNew Contributor

    Hi ZhiqiangLiang,

    I have never used this IP but it looks familiar. You can find more details on Cyclone 10 IP document.

    1) As far as I know, those parameters are Avalon MM Transfer parameters. They depend on your design. Data/Address/Symbol widths are your Avalon MM Transfer widths. You should choose those parameters according to your slave structure. FIFOs are for CDC purposes, so you should fill those according to your Avalon Traffic frequency. You should choose the clock domain synchronizer depth as you want (3 and above is extremely robust)

    2) You will not set the parameters, but you will connect them. m0 stands for master and s0 stands for slave. Your master is NIOS and your slave is your own IP. Thus, you should connect m0 ports to related NIOS ports and s0 ports to related IP ports. (Clock, reset and Avalon MM) I think IP will do the rest, clock frequencies are not needed.

    3) This IP should do the trick but you can find the min/max frequency specs of NIOS or CDC IP on Cyclone 10 IP document too.

    Best regards,

    FOZDEMIR

  • ShengN_altera's avatar
    ShengN_altera
    Icon for Super Contributor rankSuper Contributor

    Hi,


    what do those parameters mean in Avalon-MM Clock Crossing Bridge setting?

    You may check this https://www.intel.com/content/www/us/en/docs/programmable/683609/21-3/memory-mapped-clock-crossing-bridge-71915.html for definition

    I think FOZDEMIR had explained most of them


    in my design(NIOS 80MHz, IP 160MHz), how to set those parameters?

    If you mean the frequecy parameter? As mentioned, just connect in between master and slave then it'll auto adapt the CDC


    If no parameters can make my design work, what NIOS frequency should I set?

    For this you may need to open a thread in Embedded forum for further confirmation.


    Thanks,

    Regards,

    Sheng