61 lines
1.1 KiB
Makefile
61 lines
1.1 KiB
Makefile
|
|
ASE_BUILD_DIR=build_ase
|
|
FPGA_BUILD_DIR=build_fpga
|
|
|
|
all: ase
|
|
|
|
ase: setup-ase
|
|
make -C $(ASE_BUILD_DIR)
|
|
|
|
setup-ase: $(ASE_BUILD_DIR)/Makefile
|
|
|
|
$(ASE_BUILD_DIR)/Makefile:
|
|
afu_sim_setup -s sources.txt $(ASE_BUILD_DIR)
|
|
|
|
ase-1c: setup-ase-1c
|
|
make -C $(ASE_BUILD_DIR)_1c
|
|
|
|
setup-ase-1c: $(ASE_BUILD_DIR)_1c/Makefile
|
|
|
|
$(ASE_BUILD_DIR)_1c/Makefile:
|
|
afu_sim_setup -s sources_1c.txt $(ASE_BUILD_DIR)_1c
|
|
|
|
fpga: setup-fpga
|
|
cd $(FPGA_BUILD_DIR) && qsub-synth
|
|
|
|
setup-fpga: $(FPGA_BUILD_DIR)/build/dcp.qpf
|
|
|
|
$(FPGA_BUILD_DIR)/build/dcp.qpf:
|
|
afu_synth_setup -s sources.txt $(FPGA_BUILD_DIR)
|
|
|
|
fpga-1c: setup-fpga-1c
|
|
cd $(FPGA_BUILD_DIR)_1c && qsub-synth
|
|
|
|
setup-fpga-1c: $(FPGA_BUILD_DIR)_1c/build/dcp.qpf
|
|
|
|
$(FPGA_BUILD_DIR)_1c/build/dcp.qpf:
|
|
afu_synth_setup -s sources_1c.txt $(FPGA_BUILD_DIR)_1c
|
|
|
|
run-ase:
|
|
cd $(ASE_BUILD_DIR) && make sim
|
|
|
|
run-ase-1c:
|
|
cd $(ASE_BUILD_DIR)_1c && make sim
|
|
|
|
wave:
|
|
vsim -view $(ASE_BUILD_DIR)/work/vsim.wlf -do wave.do
|
|
|
|
run-fpga:
|
|
# TODO
|
|
|
|
clean-ase:
|
|
rm -rf $(ASE_BUILD_DIR)
|
|
|
|
clean-ase-1c:
|
|
rm -rf $(ASE_BUILD_DIR)_1c
|
|
|
|
clean-fpga:
|
|
rm -rf $(FPGA_BUILD_DIR)
|
|
|
|
clean-fpga-1c:
|
|
rm -rf $(FPGA_BUILD_DIR)_1c
|