HLS_designs
HLS_designs copied to clipboard
cann't find the command src_config
When I run the shell runit.csh
,there is a error says cann't find the the command src_config.How can I solve it.
Thank you for bringing it out. The src_config command was one of the tools in the Merlin compiler (now acquired by Xilinx). They rewrite the src_config in C++ here: https://github.com/Xilinx/merlin-compiler/tree/c96a18ed8a5a715679c4fb3e837128446d145a7d/trunk/legacy/tools/utils/src_cfg. I will try to find time to rewrite or integrate the src_config tool in the repo. It will take some time. Meanwhile, I suggest two workarounds:
- install the Merlin tool and you will get the src_config command
- play the code generator role yourself ;P
Let me show you how to get a 24x24 QR design from my repo: go to the design template, e.g., https://github.com/Sibylau/HLS_designs/tree/master/QR/qr_v1.1/template the files in the template folder are exactly HLS C code, except the lines that start with//;
. Those lines starting with//;
tells the src_config tool to generate the code using the given parameters. For example, the code block here https://github.com/Sibylau/HLS_designs/blob/master/QR/qr_v1.1/template/T_qr.cpp#L311-L314 will replicate Line 313$COL
times in the generated code.
Thanks for detail solution!that helps me a lot.
When I run the shell runit.csh , It seems to be an incorrect input for src_cfg ./runit.csh Usage: src_cfg src_p [-p defines] [-o src] [-q quote_style] Configure source file src_p by the definition perl file parameters: defines: a Perl file generated by cfg2def. quote_style [default|simple]: default uses ` to quote perl, and simple does not. chmod: cannot access ‘./gen.csh’: No such file or directory ./gen.csh: Command not found.