Some FPGA code for the Papilio Pro Spartan 6 development board