Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

How to organize data stream through AMBA bus between FPGA and HPS (with Linux)?

Hi everybody,

I'm currently looking into how to transfer data between HPS and FPGA via AMBA AXI-interface. HPS is supposed to run Linux. Is it possible to do it using board support package provided by Altera (Golden System Reference Design, corresponding Linux device drivers, device-tree, etc.) or I need to write my own device driver to interact with AXI-interface?

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    First read Cyclone V SoC device handbook especially on HPS-FPGA bridges.

    Then examine a simpler Examples in the installed EDS_SOC (\embedded\examples). Use LW_HPS-FPGA bridge and GPIO Linux example.

    A more complex design is the VipDemo for Arrow SoCKit (run linux, and use bridges between FPGA-HPS portions).

    http://rocketboards.org/foswiki/projects/sockitvideoipvipreferencedesign

    There are full descriptions about functions under your installed EDS_SOC directory:

    SoCAL: as abstraction layer for SoC (similar to Nios's HAL)

    HWLib: Hardware Libraries

    Altera HWLib and SOCAL API pages:

    <altera_installation_directory>/embedded/ip/altera/hps/altera_hps/doc/hwmgr/html/index.html

    <altera_installation_directory>/embedded/ip/altera/hps/altera_hps/doc/socal/html/index.html

    I hope these helps to start your work.

    best regards

    ZS.V.