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

feita há 3 anos204 visualizações
1 Resposta
0

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

respondido há 3 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas