FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5922 Discussions

For the driver of a Modular Scatter-Gather DMA I need the header file "modular_sgdma_dispatcher.h". How can I get it, or what is the correct way to use "alt_msgdma_open" ?

aurec2
Beginner
594 Views

For a driver for the Modular Scatter-Gather DMA, I need the function "alt_msgdma_open". According to the Embedded Peripherals IP User Guide 25-48 (2016.12.19) the above mentioned include file is necessary.

However, "modular_sgdma_dispatcher.h" is NOT part of the IP-Installation in:

"\intelFPGA_pro\16.1\ip\altera\altera_msgdma"

 

I would be very grateful for a tip on how to get the mentioned file. Or if I could be pointed to an example of a mSGDMA Driver for a bare metal application.

 

Many thanks

Andreas

 

I am using SoCEDS16.1, for Cyclone V.

0 Kudos
4 Replies
EBERLAZARE_I_Intel
520 Views

Hi Andreas,

 

Firstly, have you tried using latest Quartus version for Cyclone V which would be the Quartus std 18.1 and SoC EDS 18.1?

 

Did you see any changes using the latest version?

0 Kudos
aurec2
Beginner
520 Views

Hi el.ing,

many thanks for your reply. I have been using the entire toolchain (i.e. Quartus, bsp-editor, arm-ds5 builder, etc.) of generation 16.1, because I was led to believe that newer versions of the toolchain dont fully support cyclone V devices (notably in terms of the pre-loader and boot-loader generation ). I re-installed version16.1, but the header is still missing. According to the documentation the msgdma should be available on version 16.1.

 

Allow me to depict my goal using the msgdma (Memory-Mapped to Streaming)

An FPGA-Application is supposed to consume data from the msgdma-streaming source. Problem: On the HPS I cannot "dump" the data into the msgdma, since I cannot use the necessary functions (alt_msgdma_open,alt_msgdma_construct_standard_mm_to_st_descriptor, alt_msgdma_descriptor_sync_transfer) due the missing header file.

 

How can I use the msgdma for cyclone V devices? I would be very grateful for a further tip.

 

Thanks

Andreas

 

 

 

 

 

0 Kudos
EBERLAZARE_I_Intel
520 Views

Hi,

 

I advice that you try with latest version of Quartus to test out if the header will be installed.

 

You can refer to these examples designs on mSGDMA, unfortunately we do not have one for bare metal:

https://rocketboards.org/foswiki/Documentation/DatamoverDesignExample

https://forums.intel.com/s/createarticlepage?articleid=a3g0P0000005QubQAE&action=view&language=en_US

 

https://fpgacloud.intel.com/devstore/platform/?search=sgdma

0 Kudos
aurec2
Beginner
520 Views

Hi el.ign

many thanks for your answer and the links. I will give it a try.

 

Andreas

0 Kudos
Reply