print "\t enablecfg\t enable or disable access to configuration flash, options: 1/0\n";
print "\t dumpcfg \t Dump content of configuration flash. Pipe output to file\n";
print "\t writecfg \t Write content of configuration flash. options: \$filename\n";
-
+ print "\t fifo \t\t Read a byte from the test fifo (if present, no options\n";
exit;
}
my $board, my $value, my $mask;
if($ARGV[2] eq "resettemp") {
sendcmd(0x10800001);
usleep(100000);
- sendcmd(0x10800001);
+ sendcmd(0x10800000);
}
$p++;
printf(STDERR "\r%d / 5760",$p) if(!($p%10));
}
- }
\ No newline at end of file
+ }
+
+if($ARGV[2] eq "fifo" || $ARGV[2] eq "ffarr") {
+ my $b = sendcmd(0x200a0000);
+ foreach my $e (sort keys %$b) {
+ printf("0x%04x\t%d\t0x%04x\n",$e,$chain,$b->{$e}&0xffff);
+ }
+ }
+