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

asked 3 years ago199 views
1 Answer
0

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

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions