#Select correct cable. Change to suit your 
cable parallel 0x378 WIGGLER
frequency 0
detect
detectflash
#Enable flash write.
#jtag doesn't support a write to the Xilinx directly, because
#it only supports writes to bank 0. Simulate that by jamming
#the chip-select to bank 2 to a high state and write to bank 0.
#That way the write goes to both the flash (which ignores it) and
#the Xilinx.
#We write 0xff, so the backlight'll go on, too.
instruction SAMPLE/PRELOAD
shift ir
shift dr
set signal GPIO[78] out 0
poke 0x2000000 0xffffffff
set signal GPIO[78] out 1
poke 0x2000000 0xffffffff
set signal GPIO[78] out 0

