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

질문됨 3년 전204회 조회
1개 답변
0

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

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠