贴出测试程序
Xuint8* destination_location = (unsigned char *) XPAR_SDRAM_MPMC_BASEADDR;
print("-- Entering main() --\r\n");
*destination_location++ = 0x1;
*destination_location++ = 0x2;
*destination_location++ = 0x10;
*destination_location++ = 0xf5;
*destination_location++ = 0x1;
*destination_location++ = 0x2;
*destination_location++ = 0x10;
*destination_location++ = 0xf5;
*destination_location++ = 0x1;
*destination_location++ = 0x2;
*destination_location++ = 0x10;
*destination_location++ = 0xf5;
destination_location = (unsigned char *) XPAR_SDRAM_MPMC_BASEADDR;
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
xil_printf("0x%x\r\n",*destination_location++);
|