3 XST
:= $(shell which xst
)
10 all: xst ngdbuild map par trace prom final
13 time make
all &>build.log
17 ngdbuild
: $(PROJECT
).ngc
$(PROJECT
).ngd
20 @
# echo synclib > $(PROJECT).lso # hmm. things are different in ise 9.1
21 echo work
> $(PROJECT
).lso
22 xst
-intstyle ise
-ifn
$(PROJECT
).xst
-ofn
$(PROJECT
).syr
24 mv
$(PROJECT
).syr
$(TMP
)
25 mv
$(PROJECT
).ngr
$(PROJECT
).lso
$(TMP
)
29 ngdbuild
-intstyle ise
-dd
"$(PWD)/_ngo" -nt timestamp
-uc
$(PROJECT
).ucf
-p xc3s1500-fg456-4
$(PROJECT
).ngc
$(PROJECT
).ngd
&> tmp
/build.ngdbuild.log
30 mv
$(PROJECT
).bld
$(TMP
)
34 map
-intstyle ise
-p xc3s1500-fg456-4
-cm area
-pr b
-k
4 -c
100 -o
$(PROJECT
)_map.ncd
$(PROJECT
).ngd
$(PROJECT
).pcf
&> tmp
/build.map.log
35 mv
$(PROJECT
)_map.mrp
$(PROJECT
)_map.ngm
$(PROJECT
).ngc
$(TMP
)
38 @
#par -w -intstyle ise -ol std -n 4 -t 1 $(PROJECT)_map.ncd $(PROJECT).dir $(PROJECT).pcf &> tmp/build.par.log
39 par
-w
-intstyle ise
-ol std
-t
1 $(PROJECT
)_map.ncd
$(PROJECT
).ncd
$(PROJECT
).pcf
&> tmp
/build.par.log
40 mv
$(PROJECT
).xpi
$(PROJECT
).par
$(PROJECT
).pad
$(TMP
)
41 mv
$(PROJECT
)_pad.csv
$(PROJECT
)_pad.txt
$(TMP
)
44 trce
-intstyle ise
-e
3 -l
3 -s
4 -xml
$(PROJECT
) $(PROJECT
).ncd
-o
$(PROJECT
).twr
$(PROJECT
).pcf
&> tmp
/build.trce.log
46 mv
$(PROJECT
).twr
$(TMP
)
47 mv
$(PROJECT
).twx
$(TMP
)
48 mv
$(PROJECT
)_map.ncd
$(PROJECT
).ngd
$(PROJECT
).pcf
$(TMP
)
51 bitgen
-intstyle ise
-f
$(PROJECT
).ut
$(PROJECT
).ncd
&> tmp
/build.bitgen.log
52 # cp $(PROJECT).bit ../jcarr_last.bit
54 mv
$(PROJECT
).drc
$(TMP
)
56 mv
$(PROJECT
).bgn
$(TMP
)
59 promgen
-w
-p mcs
-u
0 $(PROJECT
) -o pci1 pci2
-x xcf02s xcf04s
62 -mv
$(PROJECT
).unroutes
*.xml
$(TMP
)
63 -mv
$(PROJECT
)*.map
$(TMP
)
64 -mv
$(PROJECT
).ncd
$(TMP
)
65 -grep
-A
8 -B
1 ^Selected\ Device tmp
/build.xst.log
66 -grep
-A
8 -B
1 ^Timing\ Summary tmp
/build.xst.log
67 -grep
-A
21 -B
1 ^Design\ Summary tmp
/build.map.log
70 xc3sprog
$(PROJECT
).bit
74 rm -rf
*.bit
*.bgn
*.mcs
*.prm
*.bld
*.drc
*.mcs
*.ncd
*.ngc
*.ngd
75 rm -rf
*.ngr
*.pad
*.par
*.pcf
*.prm
*.syr
*.twr
*.twx
*.xpi
*.lso
*.prm
*.mcs _impact
*
76 rm -rf
$(PROJECT
)_map.
* $(PROJECT
)_pad.
*
79 rm -rf
$(PROJECT
).unroutes
*.xml
82 impact
-batch xc3s1500.batch
85 impact
-batch xcf.batch