+ Post New Thread
Results 1 to 9 of 9
  1. #1
    Junior Member level 1
    Points: 111, Level: 1

    Join Date
    Jul 2019
    Posts
    18
    Helped
    0 / 0
    Points
    111
    Level
    1

    Transferring data from PS to PL

    Hello, I have created my own IP in Vivado which takes some data from a sensor using I2C protocol and stores them in the memory mapped registers in the processing system (PS) through SPI protocol.

    What I would like to do now is to send the data from the PS to the FPGA (PL, programmable logic). I have checked on internet and I found I have to use the AXI interface, but most posts were about transferring data from PL to PS. Can someone give me some references to send data from PS to PL, please? Thanks!
    Last edited by Roronoa137; 19th August 2019 at 09:56.

  2. #2
    Super Moderator
    Points: 259,307, Level: 100
    Awards:
    1st Helpful Member

    Join Date
    Jan 2008
    Location
    Bochum, Germany
    Posts
    45,273
    Helped
    13774 / 13774
    Points
    259,307
    Level
    100

    Re: Transferring data from PS to PL

    What is PL and PS?

    See forum rules, you shouldn't use
    Technical abbreviations unless they are universally understood, they will confuse members and make it hard for them to understand what you mean.



    •   AltAdvertisement

        
       

  3. #3
    Junior Member level 1
    Points: 111, Level: 1

    Join Date
    Jul 2019
    Posts
    18
    Helped
    0 / 0
    Points
    111
    Level
    1

    Re: Transferring data from PS to PL

    I'm sorry, I have edited the post.



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 4
    Points: 6,208, Level: 18

    Join Date
    Feb 2015
    Posts
    1,020
    Helped
    286 / 286
    Points
    6,208
    Level
    18

    Re: Transferring data from PS to PL

    IIRC PS-PL is mainly for control/status -- lower rate stuff. I think the normal flow is for the PL to take general commands from the PS, provide updates to the PS, and sometimes access PS memory.



    •   AltAdvertisement

        
       

  5. #5
    Advanced Member level 4
    Points: 8,501, Level: 22
    Achievements:
    7 years registered Created Blog entry
    dpaul's Avatar
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    1,272
    Helped
    275 / 275
    Points
    8,501
    Level
    22
    Blog Entries
    1

    Re: Transferring data from PS to PL

    I have checked on internet and I found I have to use the AXI interface, but most posts were about transferring data from PL to PS. Can someone give me some references to send data from PS to PL, please? Thanks!
    For PL to PS, you can also use the AXI i/f.
    The PS section can typically stay as the master and the PL section can stay as the AXI slave.

    What I would like to do now is to send the data from the PS to the FPGA (PL, programmable logic).
    The AXI master side (PS) needs to initiate a write transaction to the slave (PL).
    FPGA enthusiast!



  6. #6
    Junior Member level 1
    Points: 111, Level: 1

    Join Date
    Jul 2019
    Posts
    18
    Helped
    0 / 0
    Points
    111
    Level
    1

    Re: Transferring data from PS to PL

    Thank you for your replay! I'm sorry but I'm new with SDK. I know I should write some code to write something in the PL. Since I just need to store a value from the PS to the PL, I was reading I can use "Xil_io" library. Do you think is this a right way to proceed?



  7. #7
    Advanced Member level 4
    Points: 8,501, Level: 22
    Achievements:
    7 years registered Created Blog entry
    dpaul's Avatar
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    1,272
    Helped
    275 / 275
    Points
    8,501
    Level
    22
    Blog Entries
    1
    FPGA enthusiast!



    •   AltAdvertisement

        
       

  8. #8
    Junior Member level 1
    Points: 111, Level: 1

    Join Date
    Jul 2019
    Posts
    18
    Helped
    0 / 0
    Points
    111
    Level
    1

    Re: Transferring data from PS to PL

    I already went through these links, but thanks!



  9. #9
    Advanced Member level 4
    Points: 8,501, Level: 22
    Achievements:
    7 years registered Created Blog entry
    dpaul's Avatar
    Join Date
    Jan 2008
    Location
    Germany
    Posts
    1,272
    Helped
    275 / 275
    Points
    8,501
    Level
    22
    Blog Entries
    1

    Re: Transferring data from PS to PL

    I already went through these links, but thanks!
    If so, then your concepts should now be clear regarding data transfer....
    What I would like to do now is to send the data from the PS to the FPGA (PL, programmable logic). I have checked on internet and I found I have to use the AXI interface, but most posts were about transferring data from PL to PS. Can someone give me some references to send data from PS to PL, please? Thanks!

    In the end it is just an AXI bus, one side is master and the other side is slave.
    FPGA enthusiast!



--[[ ]]--