]> git.zerfleddert.de Git - raggedstone/blob - heartbeat/Makefile
8b3363628c2585c06d3be0958b732aeb8b10a0f5
[raggedstone] / heartbeat / Makefile
1 PWD := $(shell pwd)
2
3 INTSTYLE := silent
4
5 PROJECT := raggedstone
6
7 all: xst ngdbuild map par trace prom final
8
9 log:
10 time make all &>build.log
11
12 xst: $(PROJECT).ngc
13
14 ngdbuild: $(PROJECT).ngd
15
16 $(PROJECT).ngc:
17 @# echo synclib > $(PROJECT).lso # hmm. things are different in ise 9.1
18 echo work > $(PROJECT).lso
19 xst -intstyle $(INTSTYLE) -ifn $(PROJECT).xst -ofn $(PROJECT).syr
20 @#cat $(PROJECT).syr
21
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
24
25 map:
26 map -intstyle $(INTSTYLE) -p xc3s1500-fg456-4 -cm area -pr b -k 4 -c 100 -o $(PROJECT)_map.ncd $(PROJECT).ngd $(PROJECT).pcf
27
28 par:
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
31
32 trace:
33 trce -intstyle $(INTSTYLE) -e 3 -l 3 -s 4 -xml $(PROJECT) $(PROJECT).ncd -o $(PROJECT).twr $(PROJECT).pcf
34 @#cat $(PROJECT).twr
35
36 prom:
37 bitgen -intstyle $(INTSTYLE) -f $(PROJECT).ut $(PROJECT).ncd
38 @# cp $(PROJECT).bit ../jcarr_last.bit
39 @#cat $(PROJECT).drc
40 @#cat $(PROJECT).bgn
41
42 mcs:
43 promgen -intstyle $(INTSTYLE) -w -p mcs -u 0 $(PROJECT) -o pci1 pci2 -x xcf02s xcf04s
44
45 final:
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
49
50 burn:
51 xc3sprog $(PROJECT).bit
52
53 load:
54 impact -batch xc3s1500.batch
55
56 flash: mcs
57 impact -batch xcf.batch
58
59 clean:
60 @rm -rf *.bit *.bgn *.mcs *.prm *.bld *.drc *.mcs *.ncd *.ngc *.ngd \
61 *.ngr *.pad *.par *.pcf *.prm *.syr *.twr *.twx *.xpi *.lso *.prm *.mcs _impact* \
62 $(PROJECT)_map.* $(PROJECT)_pad.* \
63 _ngo xst \
64 build.log \
65 $(PROJECT).unroutes *.xml
Impressum, Datenschutz