Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- Since you are trying to set aside a large region of memory for the FPGA to access it might be more manageable to allocate a large continous memory, map it over to physical memory, and access it used DMAs in the FPGA and cacheable accesses from the processor. I have no clue how to do that but the sofltware folks in this forum probably do. --- Quote End --- Have a look at this example for a starting point: http://rocketboards.org/foswiki/view/projects/myfirstmodule It is a driver (loadable kernel module) that you need to load using "insmod" in the terminal. The module allocates an area of memory using kmalloc(). The key difference with kmalloc() is that it always allocates physically contigious memory. You can read the physical address that is allocated at "/sys/bus/platform/drivers/mydriver/buffer_base_phys" Then the FPGA can access this area using the FPGA2HPS SDRAM port starting at the address found above.