@#cat $(PROJECT).drc
@#cat $(PROJECT).bgn
-mcs:
- promgen -intstyle $(INTSTYLE) -w -p mcs -u 0 $(PROJECT) -o pci1 pci2 -x xcf02s xcf04s
+$(PROJECT)-xcf02s.mcs $(PROJECT)-xcf04s.mcs: $(PROJECT).bit
+ promgen -intstyle $(INTSTYLE) -w -p mcs -u 0 $(PROJECT) -o $(PROJECT)-xcf02s $(PROJECT)-xcf04s -x xcf02s xcf04s
final:
-@grep -A 8 -B 1 ^Selected\ Device $(PROJECT).syr
-@grep -A 8 -B 1 ^Timing\ Summary $(PROJECT).syr
-@grep -A 21 -B 1 ^Design\ Summary $(PROJECT)_map.map
-burn:
+burn: $(PROJECT).bit
xc3sprog $(PROJECT).bit
-load:
+load: $(PROJECT).bit
impact -batch xc3s1500.batch
-flash: mcs
+flash: $(PROJECT)-xcf02s.mcs $(PROJECT)-xcf04s.mcs
impact -batch xcf.batch
clean:
_ngo xst \
build.log \
$(PROJECT).unroutes *.xml
+
+.PHONY: all final burn load flash clean xst ngdbuild log