- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I implement the a soft-IP AXI master in FPGA and transmit the data to HPS side via FPGA2HPS bridge, I set ACP-port as "dynamic" mode. BUT how can I read the data via DS-5 program register? I know maybe need set the sideband signals and use the mirrored Main-Memory in the ACP window, but not to the location directly(e.g. I want to access 0x0030000 I need to access 0x80030000). Does it correctly?Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex,
Please refer to the Getting Started with Peripheral Register Visibility section of the SoC EDS User's Guide (http://www.altera.com/literature/ug/ug_soc_eds.pdf). I think that should answer your question. Regards, Sue- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Hi Alex, Please refer to the Getting Started with Peripheral Register Visibility section of the SoC EDS User's Guide (http://www.altera.com/literature/ug/ug_soc_eds.pdf). I think that should answer your question. Regards, Sue --- Quote End --- Hi Scozart, Thank you for your reply! But my question is that I cannot get data from fpga2hps bridge via Arm-Linux Application. In my design, the following steps I used in my project: 1. The FPGA master have been implemented in FPGA2HPS bridge, I used the signals (user sideband signal, write address signal, write address valid signal, write data signal, write data valid signal ) 2. In ARM side, I use the ACP ID Mapper Register. The dynrd and dynwr registers has been set the 5-bits user(according to user sideband signal) and 2-bits Page(I remap the 3rd 1GB memory). 3. I maped the address in Linux application , access to e.g. 0x80004000 (3rd page) address, but the data have not changed . Did I miss some steps? Or misunderstand something?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi scozart,
Thank you for your reply! But my question is that I cannot get data from fpga2hps bridge via Arm-Linux Application. In my design, the following steps I used in my project: 1. The FPGA master have been implemented in FPGA2HPS bridge, I used the signals (user sideband signal, write address signal, write address valid signal, write data signal, write data valid signal ) 2. In ARM side, I use the ACP ID Mapper Register. The dynrd and dynwr registers has been set the 5-bits user(according to user sideband signal) and 2-bits Page(I remap the 3rd 1GB memory). 3. I maped the address in Linux application , access to e.g. 0x80004000 (3rd page) address, but the data have not changed . Did I miss some steps? Or misunderstand something?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex,
Sorry for the delay in responding. It looks like you may be having a problem with cache coherency. Please check the follow items in your system:- The SMP bit in the ACTLR register in the ARM core must be set before enabling the MMU. This should be done by the OS, but it is good to check.
- The SCU must be on.
- The memory space should be marked as shared and the secure bit must be set the same for the FPGA master and the HPS.
- The cache properties must be the same for the FPGA master and the HPS and you should use write allocate for the cache.
- The ARUSER and AWUSER bits in the ACP ID Mapper registers should be set to 5'b11111.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Hi Alex, Sorry for the delay in responding. It looks like you may be having a problem with cache coherency. Please check the follow items in your system:
- The SMP bit in the ACTLR register in the ARM core must be set before enabling the MMU. This should be done by the OS, but it is good to check.
- The SCU must be on.
- The memory space should be marked as shared and the secure bit must be set the same for the FPGA master and the HPS.
- The cache properties must be the same for the FPGA master and the HPS and you should use write allocate for the cache.
- The ARUSER and AWUSER bits in the ACP ID Mapper registers should be set to 5'b11111.

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