machine can be used to program devices and to reduce probing times)
Examples:
export CABLE='auto' (default)
probes for cable on local machine
export CABLE='lpt1'
uses cable on lpt1
export CABLE='auto -server marvin:2000'
probes for cable on remotehost marvin running CableServer on port 2000
export CABLE='usb21 -server marvin:2000'
uses usb cable on remotehost marvin running CableServer on port 2000
see Makefile for possible cabletypes and
doc/usenglish/help/iseguide/mergedProjects/plugin_imp/html/pim_batch_command_definitions_s.htm
With this it is even possible to avoid compiling windrvr:
http://sourceforge.net/projects/xilprg
setmode -bscan
-setcable -p auto
+setcable -p %CABLE%
identify
assignFile -p 3 -file raggedstone.bit
program -p 3
setmode -bscan
-setcable -p auto
+setcable -p %CABLE%
identify
assignFile -p 1 -file raggedstone-xcf02s.mcs
assignFile -p 2 -file raggedstone-xcf04s.mcs
PROJECT := raggedstone
+#auto|lpt1|lpt2|lpt3|com1|com2|com3|com4|usb0|usb1|usb2|usb21|ttya|ttyb|tty00|tty01
+CABLE ?= auto
+
INTSTYLE := silent
SOURCES = $(wildcard sources/*.v source/*.vhd)
xc3sprog $(PROJECT).bit
load: $(PROJECT).bit
- impact -batch xc3s1500.batch
+ @sed -e "s|%CABLE%|$(CABLE)|g" xc3s1500.batch >xc3s1500.batch.tmp.$$
+ impact -batch xc3s1500.batch.tmp.$$
+ @rm xc3s1500.batch.tmp.$$
flash: $(PROJECT)-xcf02s.mcs $(PROJECT)-xcf04s.mcs
- impact -batch xcf.batch
+ @sed -e "s|%CABLE%|$(CABLE)|g" xcf.batch >xcf.batch.tmp.$$
+ impact -batch xcf.batch.tmp.$$
+ @rm xcf.batch.tmp.$$
clean:
@rm -rf *.bit *.bgn *.mcs *.prm *.bld *.drc *.mcs *.ncd *.ngc *.ngd \