#!/bin/sh jtag -q <<EOF | sed '/REG\[32\]=/s///p;d' cable milkymist detect instruction CFG_OUT 000100 BYPASS instruction CFG_IN 000101 BYPASS pld readreg 0x20 EOF