]>
Commit | Line | Data |
---|---|---|
e73e7172 | 1 | include ../common/Makefile.common |
2 | ||
7cc204bf | 3 | all: fpga_lf.bit fpga_hf.bit |
e73e7172 | 4 | clean: |
7cc204bf | 5 | $(DELETE) *.bgn *.drc *.ncd *.ngd *_par.xrpt *-placed.* *-placed_pad.* *_usage.xml xst_hf.srp xst_lf.srp |
6 | $(DELETE) *.map *.ngc *.xrpt *.pcf *.rbt *_auto_* *.bld *.mrp *.ngm *.unroutes *_summary.xml netlist.lst xst | |
e73e7172 | 7 | |
afa86e5c | 8 | fpga_hf.ngc: fpga_hf.v fpga.ucf xst_hf.scr util.v hi_simulate.v hi_read_tx.v hi_read_rx_xcorr.v hi_iso14443a.v hi_sniffer.v |
7cc204bf | 9 | $(DELETE) $@ |
10 | $(XILINX_TOOLS_PREFIX)xst -ifn xst_hf.scr | |
e73e7172 | 11 | |
afa86e5c | 12 | fpga_lf.ngc: fpga_lf.v fpga.ucf xst_lf.scr util.v clk_divider.v lo_edge_detect.v lo_read.v lo_passthru.v lp20khz_1MSa_iir_filter.v min_max_tracker.v lf_edge_detect.v |
7cc204bf | 13 | $(DELETE) $@ |
14 | $(XILINX_TOOLS_PREFIX)xst -ifn xst_lf.scr | |
e73e7172 | 15 | |
7cc204bf | 16 | %.ngd: %.ngc |
17 | $(DELETE) $@ | |
18 | $(XILINX_TOOLS_PREFIX)ngdbuild -aul -p xc2s30-5-vq100 -nt timestamp -uc fpga.ucf $< $@ | |
e73e7172 | 19 | |
7cc204bf | 20 | %.ncd: %.ngd |
21 | $(DELETE) $@ | |
22 | $(XILINX_TOOLS_PREFIX)map -p xc2s30-5-vq100 $< | |
e73e7172 | 23 | |
7cc204bf | 24 | %-placed.ncd: %.ncd |
25 | $(DELETE) $@ | |
26 | $(XILINX_TOOLS_PREFIX)par $< $@ | |
e73e7172 | 27 | |
7cc204bf | 28 | %.bit: %-placed.ncd |
29 | $(DELETE) $@ $*.drc $*.rbt | |
30 | $(XILINX_TOOLS_PREFIX)bitgen $< $@ | |
e73e7172 | 31 | |
32 | .PHONY: all clean help | |
33 | help: | |
34 | @echo Multi-OS Makefile, you are running on $(DETECTED_OS) | |
35 | @echo Possible targets: | |
db335b3d | 36 | @echo + all - Make fpga.bit, the FPGA bitstream |
37 | @echo + clean - Clean intermediate files, does not clean fpga.bit | |
38 |