请大家帮忙看看】
哪里有错误吗?
int qq;
unsigned char sdram_table[0x800010];
int xx,yy,kk;
for(qq=0;qq<0x7f;qq++)
{
sdram_table[qq]=0xff;
printf("222\n");
}
for(xx=0;xx<0x3f;xx++)
{
WriteFpgaSdram(00+xx,sdram_table[xx],1);
MxDelay(100);
ReadFpgaSdram(0+xx,kk,1);
if(kk==sdram_table[xx])
{printf("11111111\n");}
else
{printf("err=======%x\n",0x00+xx);
yy+1;
printf("err shuliang=======%d\n",yy);
}
}
WriteFpgaSdram(addr, pid_table[channel], 0x2000);
ReadFpgaSdram(addr, temp, 0x2000);
printf( "Read PID from FPGA %x\n", addr);
for(i = 0; i < 0x2000; i++)
{
printf( "%4d PID: 0x%4x ", i, temp[i]);
j++;
if(j==8)
{
j=0;
printf("\n");
}
}
printf("\n");