Altera_Forum
Honored Contributor
13 years agoModular SGDMA - Doubt on Target Address
I am using the "ALT_PCIE_QSYS_SIMPLE" sample application. The code is executed successfully. It had leaded me to the following doubts:
--------- Doubt 1 --------- By default, the target address specified 0x07000000, however, if I tried to change to other value, it caused the entire PC hang. I couldn't further trace the problem. How do I find out what is the correct target address to right? --------- Doubt 2 --------- The example had shown that the maximum data to be written from PC to FPGA which is 1MB, as the following is the code extracted from the main.cpp:// DMA read example
printf("\nDMA read example\n");
DMA_Read(hDev, target_address, 4096);
DMA_Read(hDev, target_address, 16384);
DMA_Read(hDev, target_address, 65536);
DMA_Read(hDev, target_address, 262144); My board has 1GB RAM, and the current example show that I am only can write 1MB. How do I write more data, say (10MB or 100MB) ?