]>
Commit | Line | Data |
---|---|---|
95764a11 | 1 | PWD := $(shell pwd) |
2 | ||
f8d46fe4 | 3 | INTSTYLE := silent |
95764a11 | 4 | |
ad16d1e3 | 5 | PROJECT := raggedstone |
95764a11 | 6 | |
82cc0f36 | 7 | all: xst ngdbuild map par trace prom final |
95764a11 | 8 | |
9 | log: | |
10 | time make all &>build.log | |
11 | ||
12 | xst: $(PROJECT).ngc | |
13 | ||
f8d46fe4 | 14 | ngdbuild: $(PROJECT).ngd |
95764a11 | 15 | |
16 | $(PROJECT).ngc: | |
17 | @# echo synclib > $(PROJECT).lso # hmm. things are different in ise 9.1 | |
18 | echo work > $(PROJECT).lso | |
f8d46fe4 | 19 | xst -intstyle $(INTSTYLE) -ifn $(PROJECT).xst -ofn $(PROJECT).syr |
20 | @#cat $(PROJECT).syr | |
95764a11 | 21 | |
f8d46fe4 | 22 | $(PROJECT).ngd: $(PROJECT).ngc |
23 | ngdbuild -intstyle $(INTSTYLE) -dd "$(PWD)/_ngo" -nt timestamp -uc $(PROJECT).ucf -p xc3s1500-fg456-4 $(PROJECT).ngc $(PROJECT).ngd | |
95764a11 | 24 | |
25 | map: | |
f8d46fe4 | 26 | map -intstyle $(INTSTYLE) -p xc3s1500-fg456-4 -cm area -pr b -k 4 -c 100 -o $(PROJECT)_map.ncd $(PROJECT).ngd $(PROJECT).pcf |
95764a11 | 27 | |
28 | par: | |
f8d46fe4 | 29 | @#par -w -intstyle $(INTSTYLE) -ol std -n 4 -t 1 $(PROJECT)_map.ncd $(PROJECT).dir $(PROJECT).pcf |
30 | par -w -intstyle $(INTSTYLE) -ol std -t 1 $(PROJECT)_map.ncd $(PROJECT).ncd $(PROJECT).pcf | |
95764a11 | 31 | |
32 | trace: | |
f8d46fe4 | 33 | trce -intstyle $(INTSTYLE) -e 3 -l 3 -s 4 -xml $(PROJECT) $(PROJECT).ncd -o $(PROJECT).twr $(PROJECT).pcf |
34 | @#cat $(PROJECT).twr | |
95764a11 | 35 | |
36 | prom: | |
f8d46fe4 | 37 | bitgen -intstyle $(INTSTYLE) -f $(PROJECT).ut $(PROJECT).ncd |
38 | @# cp $(PROJECT).bit ../jcarr_last.bit | |
39 | @#cat $(PROJECT).drc | |
40 | @#cat $(PROJECT).bgn | |
95764a11 | 41 | |
42 | mcs: | |
f8d46fe4 | 43 | promgen -intstyle $(INTSTYLE) -w -p mcs -u 0 $(PROJECT) -o pci1 pci2 -x xcf02s xcf04s |
95764a11 | 44 | |
45 | final: | |
f8d46fe4 | 46 | -@grep -A 8 -B 1 ^Selected\ Device $(PROJECT).syr |
47 | -@grep -A 8 -B 1 ^Timing\ Summary $(PROJECT).syr | |
48 | -@grep -A 21 -B 1 ^Design\ Summary $(PROJECT)_map.map | |
95764a11 | 49 | |
50 | burn: | |
51 | xc3sprog $(PROJECT).bit | |
52 | ||
f8d46fe4 | 53 | load: |
54 | impact -batch xc3s1500.batch | |
55 | ||
56 | flash: mcs | |
57 | impact -batch xcf.batch | |
58 | ||
95764a11 | 59 | clean: |
95764a11 | 60 | rm -rf *.bit *.bgn *.mcs *.prm *.bld *.drc *.mcs *.ncd *.ngc *.ngd |
e8e63794 | 61 | rm -rf *.ngr *.pad *.par *.pcf *.prm *.syr *.twr *.twx *.xpi *.lso *.prm *.mcs _impact* |
95764a11 | 62 | rm -rf $(PROJECT)_map.* $(PROJECT)_pad.* |
63 | rm -rf _ngo xst | |
64 | rm -rf build.log | |
65 | rm -rf $(PROJECT).unroutes *.xml |