- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm trying to write some data from HPS to an on-chip memory and to rewrite them in a memory in HPS (from the on-chip memory). I'm using a SoCKit board. As a first step, in both cases, I'm using a mSGDMA (in memory-mapped to memory-mapped mode) for each direction, in order to read data from HPS and to write them to FPGA, and to read data from FPGA and to write them to HPS. In addiction, I'm not considering the use of any further processor (as Nios II). Unfortunately, I didn't find any C code to use as a reference. To understand the flow and how I should write the related C code, I started by the code provided at this link (https://github.com/dwesterg/soc-workshop/blob/master/sw_src/msgdma_user_space/memtest.c), where a streaming to memory-mapped mode (and vice versa) is considered for the mSGDMA. But I didn't understand which addresses I should consider to read/write the CSR and descriptor register (some address is missed). Could you suggest to me any reference code to read/write using mSGDMA or what addresses should be : ALT_LWFPGASLVS_OFST, READ_MSGDMA_DISP_CSR_BASE, WRITE_MSGDMA_DISP_CSR_BASE, MEMTEST_MEMTEST_CONTROLLER_BASE? Thank you in advance!Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would take a look at the baremetal code with this design example: https://www.altera.com/support/support-resources/design-examples/soc/fpga-to-hps-bridges-design-example.html

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page