A while ago I wrote some programs that I use to verify that the instructions that I implemented in spinsim match the FPGA. Since I don't have a P2 yet, I was hoping that Chip, Peter or someone else that has a P2 could run the programs on their P2. The attached zipfile contains the program source in C along with P2 executable binary files and the text output from the FPGA. It also contains loadp2.exe, which is a Windows command-line program that loads binary files to the P2. I also include the loadp2_src directory that contains the source for loadp2 so it can be built for other platforms, such as Mac, Linux or Cygwin.
A program is loaded as follows:
loadp2 -t -f 80000000 -m ff -b 115200 testopsa.bin
The -t option causes the terminal emulator to run, -f sets the system clock frequency, -m sets the clock mode, and -b sets the baud rate. If the clock rate is changed from 80MHz the baud rate should be changed proportionately. For 160MHz the baud rate should be 230400.
Could someone please run the 5 binary files and save the outputs to text files, and then post the resulting output files. The output is saved by redirecting the output to a file. I watch the serial activity LED on the PropPlug to determine when the program is complete, and then hit the ESCAPE key to exit loadp2.