+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Full Member level 3
    Points: 1,499, Level: 8

    Join Date
    Jul 2014
    Posts
    186
    Helped
    13 / 13
    Points
    1,499
    Level
    8

    Booting linux in sd card::how to pass the values to linux program from fpga

    hi,

    i wanted to pass the values from a design which is running in fpga.. to hps through Linux loaded on sd card.
    right now i am doing it using jtag cable+nios2. but i wanted to do it through linux running on the sd card. i got a helloworld demo program which runs using linux(from an sd card)..
    but my problem is how will i pass the values to the c program from the fpga.....how to connect both...
    in previously i done it with jtag bridge from qsys(iord and iowr instructions).. but here how can i do it...if anybody got any demo or any tips will be very usefull for me..
    i dont have any idea how to do it...any help is really appreciated

    thanks and regards

    •   Alt25th November 2017, 16:15

      advertising

        
       

  2. #2
    Advanced Member level 5
    Points: 12,132, Level: 26

    Join Date
    Aug 2011
    Posts
    2,469
    Helped
    285 / 285
    Points
    12,132
    Level
    26

    Re: Booting linux in sd card::how to pass the values to linux program from fpga

    The Cyclone V SOC has dedicated interconnect between the FPGA and HPS.
    These are:

    1. H2F Bridge
    2. F2H Bridge
    3. LW Bridge

    All of the above are AXI 3 base memory mapped and can be accessed from the OS running on the HPS.

    Perhaps you'll find this interesting:
    https://www.youtube.com/watch?v=RTmDgNXIwKQ


    1 members found this post helpful.

    •   Alt26th November 2017, 00:33

      advertising

        
       

  3. #3
    Full Member level 3
    Points: 1,499, Level: 8

    Join Date
    Jul 2014
    Posts
    186
    Helped
    13 / 13
    Points
    1,499
    Level
    8

    Re: Booting linux in sd card::how to pass the values to linux program from fpga

    hi,
    after some reading i think i need H2F bridge to take the data to the pc . but along with the hps what all are components i should use, i am not able to find a reference design .
    i got 2 32 bit output register which should i store in a pc. some suggestion are like (other forms) , usage is similar witth nios 2 processor. but with nios 2 , i am using a on chip ram and jtag uart. but with hps shall i need to use both ?
    any help is really appreciated :)

    thanks and regards



    •   Alt28th November 2017, 15:41

      advertising

        
       

  4. #4
    Advanced Member level 5
    Points: 12,132, Level: 26

    Join Date
    Aug 2011
    Posts
    2,469
    Helped
    285 / 285
    Points
    12,132
    Level
    26

    Re: Booting linux in sd card::how to pass the values to linux program from fpga

    I advice you to start with a working example and work your way from there...

    Try this:
    https://rocketboards.org/foswiki/Documentation/GSRD


    1 members found this post helpful.

  5. #5
    Full Member level 3
    Points: 1,499, Level: 8

    Join Date
    Jul 2014
    Posts
    186
    Helped
    13 / 13
    Points
    1,499
    Level
    8

    Re: Booting linux in sd card::how to pass the values to linux program from fpga

    HI,

    i had completed the qsys system and sending the bits from fpga to hps using light-weight-hps to fpga bridge. but my problem is how can i access the number
    in c code. which is the part of the hps. how will i get the numbers in c code from the bridge. can anybody give some suggestion(. in lightweight bridge and htof axi bridge )

    any help will be really appreciated.

    thanks and regards



--[[ ]]--