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

gefragt vor 3 Jahren204 Aufrufe
1 Antwort
0

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

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen