Closed jasvinderkhurana closed 2 years ago
@jasvinderkhurana, colcon acceleration hls simple_adder --run
is either not running it, or dumping an error, which is why you see things as Not Run
. Review logs files under build-kv260
to understand the cause, or use the --verbose
flag to get it in stdout.
jasvinder@jasvinder-ubuntu:~/krs_ws$ colcon acceleration hls simple_adder --synthesis-report Project: project_simpleadder1 Path: /home/jasvinder/krs_ws/build-kv260/simple_adder/project_simpleadder1 - Solution: solution_4ns - C Simulation: Not Run - C Synthesis: Not Run - C/RTL Co-simulation: Not Run - Export: - IP Catalog: Not Run - System Generator: Not Run - Export Evaluation: Not Run - Synthesis report: /home/jasvinder/krs_ws/build-kv260/simple_adder/project_simpleadder1/solution_4ns/syn/report/simple_adder_csynth.rpt [0.537s] ERROR:colcon:colcon acceleration: [Errno 2] No such file or directory: '/home/jasvinder/krs_ws/build-kv260/simple_adder/project_simpleadder1/solution_4ns/syn/report/simple_adder_csynth.rpt' Traceback (most recent call last): File "/usr/lib/python3/dist-packages/colcon_core/command.py", line 528, in verb_main rc = context.args.main(context=context) File "/home/jasvinder/krs_ws/install/lib/python3.8/site-packages/colcon_acceleration/subverb/hls.py", line 495, in main self.print_status_solution(s, configuration, context) File "/home/jasvinder/krs_ws/install/lib/python3.8/site-packages/colcon_acceleration/subverb/hls.py", line 273, in print_status_solution with open(csyn_path,'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '/home/jasvinder/krs_ws/build-kv260/simple_adder/project_simpleadder1/solution_4ns/syn/report/simple_adder_csynth.rpt'
These errors appear because you're asking for the report (--synthesis-report
) when it has not run successfully just yet (there's no report to open). We should probably consider this and manage exception differently.
I reproduced it and it works perfectly fine for me. Here's my output. Note I'm using the --verbose
to inspect the build process:
Try the --verbose
flag or review the logs. We need to know what's wrong in your system to diagnose why HLS is not running CSIM.
@vmayoral , thanks for the guidance, Yes the it seems it is throwing error of some part not found
ERROR: [HLS 200-1023] Part 'xck26-sfvc784-2lv-c' is not installed.
So, seems you have this part number installed in your environment, can you please tell the steps to get this part number?
Right, you don't have KV260's part installed:
ERROR: [HLS 200-1023] Part 'xck26-sfvc784-2lv-c' is not installed.
I left some comments about this in the HowTo section of the documentation. Shortly, follow https://forums.xilinx.com/t5/Kria-SOMs/Vitis-IDE-ERROR-v-60-602-Source-file-does-not-exist/m-p/1264669/highlight/true. For more context, see https://gitlab.com/xilinxrobotics/docs/-/issues/41#note_638989108. This is one of the missing bits in Vitis release 2020.2(.2). It's pretty awful but I don't have any solution (rather than asking the Vitis team to re-do the release but this time, with it).
Need to be manually installed. Since you're doing it @jasvinderkhurana, I believe this is good material to document in the Install section of the docs.
@jasvinderkhurana see https://github.com/ros-acceleration/colcon-acceleration/commit/c022475981c83aee87f29da8fbab8fa6c948816b for patch. That should avoid the ugly error you were experiencing.
@jasvinderkhurana what's the status of this ticket?
Closing since there're not further responses or comments.
I am trying to get synthesis report for simple_adder accelerator, but it is not executing C Simulation. Please see logs below
Please guide for possible issue.