File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
hls4ml/templates/vitis_accelerator Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ PWD := $(shell pwd)
2525# Target (hw, hw_emu, sw_emu)
2626TARGET ?= hw
2727
28+ # Define emulation mode variable
29+ ifneq($(TARGET), hw)
30+ XCL_EMULATION_MODE =$(TARGET )
31+ endif
32+
2833# Accelerator card configuration file
2934CARD_CFG ?= accelerator_card.cfg
3035
@@ -121,7 +126,9 @@ host: $(KERNEL_NAME)_host_cl.cpp libs/xcl2.cpp
121126# Execute program #############################################################
122127
123128run : ./host $(BUILD_DIR ) /$(WRAPPER_NAME ) .xclbin
129+ cd firmware
124130 ./host $(BUILD_DIR)/$(WRAPPER_NAME).xclbin
131+ cd ..
125132
126133# Cleanup #####################################################################
127134
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ int main(int argc, char **argv) {
3535 fpga.allocateHostMemory (NUM_CHANNEL);
3636
3737 std::cout << " Loading input data from tb_data/tb_input_features.dat" << std::endl;
38- std::ifstream fin (" tb_data/tb_input_features.dat" );
38+ std::ifstream fin (" ../ tb_data/tb_input_features.dat" );
3939 if (!fin.is_open ()) {
4040 std::cerr << " Error: Could not open tb_input_features.dat" << std::endl;
4141 }
You can’t perform that action at this time.
0 commit comments