CL_DRAM_DMA example with C++ compiler

0

Hey guys,

I want to add DDR to my FPGA project and as a first step I'm trying to run the CL_DRAM_DMA "test_dram_dma_hwsw_cosim" simulation example with C++ instead of C compiler.

First I had the problem that init_ddr() was not defined but after I added C++ guards in the 'sh_dpi_tasks.h' file around the function declarations, the DDR initialization went through.

However, now I get an error for the sv_fpga_start_buffer_to_cl() function, see below:

...
Done DDR init...
filling buffer with random data...
Now performing the DMA transactions...
FATAL_ERROR: Vivado Simulator kernel has encounted an exception from DPI C function: test_main(). Please correct.
Time: 40592 ns Iteration: 0 Process: /tb/sv_fpga_start_buffer_to_cl
File: /home/centos/src/project_data/aws-fpga/hdk/common/verif/include/sh_dpi_tasks.svh
...

Do you have any advice for what I have to change to make this work? I'm relatively new to the platform...

Thanks!


Has been resolved. There was a memory allocation error...

Edited by: kaja1992 on May 6, 2021 7:23 PM

demandé il y a 3 ans204 vues
1 réponse
0

This has been resolved. There was a memory allocation error.

répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions