#!/bin/sh
jtag -q <<EOF
cable milkymist
detect
instruction CFG_OUT  000100 BYPASS
instruction CFG_IN   000101 BYPASS
pld load fjmem.bit
initbus fjmem opcode=000010
frequency 6000000
detectflash 0
poke 0x10 0x40 0x10 0 0 0xff
EOF