+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Newbie level 2
    Points: 102, Level: 1

    Join Date
    Jan 2018
    Posts
    2
    Helped
    0 / 0
    Points
    102
    Level
    1

    Programming Silicon Labs IC Si5347 for SPI interfacing

    I have to use this IC as Jitter attenuator for cleaning the clock....SPI protocol would be used....input and output frequency would be 200 Mhz...... So, to test the simulations in Modelsim i have to write the code in VHDL......So anyone know the approach to program the given IC for SPI protocol in VHDL...
    Please share your thoughts !

    •   Alt3rd January 2018, 07:48

      advertising

        
       

  2. #2
    Advanced Member level 4
    Points: 7,451, Level: 20
    Achievements:
    7 years registered Created Blog entry
    dpaul's Avatar
    Join Date
    Jan 2008
    Location
    Germay
    Posts
    1,094
    Helped
    244 / 244
    Points
    7,451
    Level
    20
    Blog Entries
    1

    Re: Programming Silicon Labs IC Si5347 for SPI interfacing

    The problem is not very clear.
    Do you want to model the complete IC Si5347 or just the SPI part of IC Si5347?

    As for writing the VHDL code for a SPI master (assuming your FPGA is SPI master and IC Si5347 is the slave) there are 100s of working codes available via Google search.
    .....yes, I do this for fun!



    •   Alt3rd January 2018, 10:18

      advertising

        
       

  3. #3
    Super Moderator
    Points: 60,546, Level: 60
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    12,360
    Helped
    2864 / 2864
    Points
    60,546
    Level
    60

    Re: Programming Silicon Labs IC Si5347 for SPI interfacing

    Hi,

    Sometimes when I read threads about communication via SPI or similar interfaces ...it seems that the posters think that one needs specisl SPI interfaces (or code, or IP) for different SPI ICs.
    Usually you can use the same SPI VHDL code for ADCs, DACs, memories, PLLs...

    Usually the PLD manufacturer or the software manufacturer provide this code. They usually come with a good description..
    I don't recommend "unreliable" code you find by a random search in the internet.

    Use a reliable code, then ...
    * You just need to use the correct setup (SPI clock frequency, SPI mode..)
    * and you need to send/receive the correct data.

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   Alt3rd January 2018, 10:58

      advertising

        
       

  4. #4
    Newbie level 2
    Points: 102, Level: 1

    Join Date
    Jan 2018
    Posts
    2
    Helped
    0 / 0
    Points
    102
    Level
    1

    Re: Programming Silicon Labs IC Si5347 for SPI interfacing

    okay....let me explore my task....
    i have to make a testbench for testing the given IC...the purpose of using this is to clean the frequency i.e. to attenuate the jitters present in the original frequency.....now manufacturer provides a software tool to program the registers present in the IC....so according to my needs i have created the register file in which all the registers are feed by some value.....so now i have .h file (register file) but how to test it that it would work and how to make interface it using that register file.....so should i switch to EDK i.e. microblaze based as from there i can directly put spi protocol.....i have never used microblaze... so please share your thoughts regarding this ????



  5. #5
    Super Moderator
    Points: 60,546, Level: 60
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    12,360
    Helped
    2864 / 2864
    Points
    60,546
    Level
    60

    Re: Programming Silicon Labs IC Si5347 for SPI interfacing

    Hi,

    May I ask why you want to use a PLD for the SPI communication.
    It is the hard way...unless there is no other benefit we don't know.

    It's easier to use SPI with a microcontroller...or with a USB_to_SPI interface directely with the PC.

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   Alt3rd January 2018, 23:53

      advertising

        
       

  6. #6
    Advanced Member level 4
    Points: 7,451, Level: 20
    Achievements:
    7 years registered Created Blog entry
    dpaul's Avatar
    Join Date
    Jan 2008
    Location
    Germay
    Posts
    1,094
    Helped
    244 / 244
    Points
    7,451
    Level
    20
    Blog Entries
    1

    Re: Programming Silicon Labs IC Si5347 for SPI interfacing

    i have to make a testbench for testing the given IC.
    That means all your TB should do is to 1st configure the registers of the IC, then by some means feed in jittery signal and then look out for stable signal coming out.

    I think (have not looked into the IC datasheet) that the registers of the IC can also be configure via SPI communication (prior to cleaning your jittery signal).

    so should i switch to EDK i.e. microblaze based as from there i can directly put spi protocol.....i have never used microblaze... so please share your thoughts regarding this ????
    A SPI core in FPGA should be able to communicate with the IC. microblaze will only help you in the fact that you can write some s/w code and the uB can execute it.

    Now the Silicon Labs IC Si5347 is a pre-verified, proven in silicon device, which is supposed to be working as per its datasheet. I do not understand why you are putting so much additional effort to test it.
    I am in agreement with post #5,
    It's easier to use SPI with a microcontroller...or with a USB_to_SPI interface directely with the PC.
    .....yes, I do this for fun!



--[[ ]]--