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

Vitis_HLS/Feature_Tutorials/02-Beamformer_Analysis

Open qingqins opened this issue 1 year ago • 1 comments

Csim failed with below error. Add '#include <cstdlib>' in file beamformer_tb.cpp can fix the issue.

INFO: [SIM 211-2] *************** CSIM start *************** INFO: [SIM 211-4] CSIM will launch CLANG as the compiler. INFO: [HLS 200-2036] Building debug C Simulation binaries Compiling ../../../../reference_files/beamformer_tb.cpp in debug mode ../../../../reference_files/beamformer_tb.cpp:5056:11: error: use of undeclared identifier 'system' retval = system("diff --brief -w result.dat result.golden_float.dat"); ^ 1 error generated.

qingqins avatar Jun 03 '24 08:06 qingqins

Thanks for reporting the issue, the owner has been notified and currently working on that.

allyzhou avatar Jun 27 '24 08:06 allyzhou

@qingqins I've tried on both Vitis Unified IDE 2023.2 and 2024.1. without adding '#include ' in file beamformer_tb.cpp , C-Sim can complete successfully without any error.

-225.000000 1865.000000 -300.000000 1970.000000 beamso_i beamso_q -75.000000 1745.000000 -150.000000 1790.000000 -225.000000 1865.000000 Test passed ! INFO: [SIM 211-1] CSim done with 0 errors. INFO: [SIM 211-3] *************** CSIM finish *************** INFO: [HLS 200-111] Finished Command csim_design CPU user time: 0.4 seconds. CPU system time: 0.35 seconds. Elapsed time: 0.82 seconds; current allocated memory: 0.000 MB. INFO: [HLS 200-1510] Running: close_project INFO: [HLS 200-112] Total CPU user time: 41.43 seconds. Total CPU system time: 1.17 seconds. Total elapsed time: 44.28 seconds; peak allocated memory: 483.523 MB. INFO: [Common 17-206] Exiting vitis_hls at Wed Aug 14 00:49:07 2024... INFO: [vitis-run 60-791] Total elapsed time: 0h 0m 49s C-simulation finished successfully

allyzhou avatar Aug 14 '24 06:08 allyzhou

Hi @allyzhou , Thanks for checking. The issue is fixed in latest code. I close this issue. Previous only include one file: #include "beamformer.h"

Latest: #include <stdio.h> #include <math.h> #include "beamformer.h"

qingqins avatar Aug 14 '24 07:08 qingqins