[feat] Add xilinx_emulation rule
@@ -22,6 +22,14 @@ ptx:
offline:
./bin/compile.sh jdk-8 $(BACKEND) OFFLINE
+# Variable passed for the preparation of the Xilinx FPGA emulated target device. The default device is `xilinx_u50_gen3x16_xdma_201920_3`.
+# make xilinx_emulation FPGA_PLATFORM=<platform_name> NUM_OF_FPGA_DEVICES=<number_of_devices>
+FPGA_PLATFORM?=xilinx_u50_gen3x16_xdma_201920_3
+NUM_OF_FPGA_DEVICES?=1
+
+xilinx_emulation:
+ emconfigutil --platform $(FPGA_PLATFORM) --nd $(NUM_OF_FPGA_DEVICES) --od $(JAVA_HOME)/bin
+
clean:
mvn -Popencl-backend,ptx-backend clean
