Vitis-Tutorials icon indicating copy to clipboard operation
Vitis-Tutorials copied to clipboard

hw acceleratate : future_tutorial, 02-mix c and rtl case Segmentation fault (core dumped)

Open chenguoping76 opened this issue 3 years ago • 4 comments

9AEKXOWCK8F(%`3T$NC6Y)0

and make xclbin command should be make xclbin DEVICE=<Platform> ?

chenguoping76 avatar Aug 07 '22 06:08 chenguoping76

Hello @chenguoping76, Can you clarify what you are looking for here? The make xclbin command can be used with make xclbin DEVICE=XXX if you are specifying a new platform.

As for the segmentation fault, as you are using a custom platform I don't know if I can help you with that.

randyh62 avatar Aug 10 '22 15:08 randyh62

yes @randyh62 I use custom platform for pynq z2 board, and test it with vadd hw accelator done. So I want to know how to use sw_emu/hw_emu evaluation for these zynq7000 embedded system. 3ks. By the way, does this sw_emu evaluation can be verified on zc706 platform?

chenguoping76 avatar Aug 11 '22 01:08 chenguoping76

Hello @chenguoping76, you could try the tutorial with the zc706 platform and see how it works out. You can specify the device in the make command: make run TARGET=sw_emu DEVICE=xilinx_zc706_base_202210_1

These are my results:

XCL_EMULATION_MODE=sw_emu ./host krnl_vadd.sw_emu.xilinx_zc706_base_202210_1.xclbin
Using FPGA binary file specfied through the command line: krnl_vadd.sw_emu.xilinx_zc706_base_202210_1.xclbin
Found Platform
Platform Name: Xilinx
Loading: 'krnl_vadd.sw_emu.xilinx_zc706_base_202210_1.xclbin'
Kernel Name: krnl_vadd_1, CU Number: 0, Thread creation status: success
TEST WITH ONE KERNEL PASSED
device process sw_emu_device done

randyh62 avatar Aug 11 '22 13:08 randyh62

I would suggest you work with a standard platform to understand the tutorial and the tools, and then work with your customized platform to see where it varies. You can get additional support on the user forum.

randyh62 avatar Aug 11 '22 13:08 randyh62

As this is an issue with the custom platform, and not the tutorial, I am closing this issue.

randyh62 avatar Aug 15 '22 15:08 randyh62

3ks

chenguoping76 avatar Aug 16 '22 09:08 chenguoping76