[refactor]: Methods that compose the compilation and linking command for Xilinx FPGAs
@@ -271,13 +271,13 @@ public class OCLCodeCache {
}
private String[] composeXilinxHLSCompileCommand(String inputFile, String kernelName) {
- StringJoiner bufferCommand = new StringJoiner(" ");
+ StringJoiner bufferCommand = new StringJoiner(" ", "xocc ", "" );
- bufferCommand.add("xocc");
- if(Tornado.FPGA_EMULATION)
+ if(Tornado.FPGA_EMULATION) {
bufferCommand.add("-t " + "sw_emu");
- else
+ } else {
bufferCommand.add("-t " + "hw");
+ }
bufferCommand.add("--platform " + "xilinx_kcu1500_dynamic_5_0 " + "-c " +"-k " +kernelName);
bufferCommand.add("-g " + "-I./" + DIRECTORY_BITSTREAM);
bufferCommand.add("--xp " + "misc:solution_name=lookupBufferAddress");
@@ -289,13 +289,13 @@ public class OCLCodeCache {
}
private String[] composeXilinxHLSLinkCommand(String kernelName) {
- StringJoiner bufferCommand = new StringJoiner(" ");
+ StringJoiner bufferCommand = new StringJoiner(" ", "xocc ", "" );
- bufferCommand.add("xocc");
- if(Tornado.FPGA_EMULATION)
+ if(Tornado.FPGA_EMULATION) {
bufferCommand.add("-t " + "sw_emu");
- else
+ } else {
bufferCommand.add("-t " + "hw");
+ }
bufferCommand.add("--platform " + "xilinx_kcu1500_dynamic_5_0 " + "-l " +"-g");
bufferCommand.add("--xp " + "misc:solution_name=link");
bufferCommand.add("--report_dir " + DIRECTORY_BITSTREAM + "reports");
