FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5980 Discussions

FPGA to HPS Peripheral address mapping

ivar_svendsen
Beginner
473 Views

Hello,

 

I am looking into the Cyclone 5 SoC.

The hard processor system (HPS) have a peripheral region from 0xFC000000 - 0xFFFFFFFF.

This region is accessible to the FPGA fabric through the FPGA-to-HPS (F2H) bridge.

 

On the FPGA side I am forced to use a NiosII processor with MMU for legacy reasons.
Also, I am restricted to Quartus 17.0 (SIL requirement)
Connecting the data master directly to the F2H bridge will not work, because any address in the peripheral region is in the bypass-MMU virtual range.

 

Adding an Avalon-MM bridge will not work either:

For example, trying to map the bridge at 0x04000000 - 0x04FFFFFF as seen by the NiosII processor.

First, the HPS cannot be mapped to address 0xFC000000, it is not a valid Avalon-MM slave address.

Second, the HPS must be mapped at address 0, because it is address space is 32-bit wide on the 32-bit bus. Trying another offset, QSys say the end address overflows.

 

Is there any other address-translation bridges that may be used?

 

Regards,

Ivar Svendsen

0 Kudos
4 Replies
EBERLAZARE_I_Intel
444 Views

Hi,


Are you trying to get access of the HPS peripherals from FPGA side?


0 Kudos
ivar_svendsen
Beginner
433 Views

Yes, I want to access HPS peripherals from the FPGA.

I have learned that the "Address Span Extender" component is doing what I want: To map multiple windows into the HPS address space from the FPGA.

 

I think this has solved the challenge.

0 Kudos
EBERLAZARE_I_Intel
395 Views

Hi,


Thanks for your update. Regarding the address span extender here are some document for your reference:

https://www.intel.com/content/www/us/en/docs/programmable/683364/18-1/address-span-extender.html

https://www.intel.com/content/www/us/en/docs/programmable/683364/18-1/using-the-address-span-extender.html


p/s: If you find any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4 or 5 if you ever received a survey.


0 Kudos
EBERLAZARE_I_Intel
384 Views

Hi,


I hope you have solved your issue, you may check on our previous reply that we have provided for your reference. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


0 Kudos
Reply