Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20639 Discussions

How to generate .h of all address/ranges in the Qsys "Address Map" Tab?

Altera_Forum
Honored Contributor II
2,186 Views

Hi - I'm working with the GHRD, adding my own designs as ARM Peripherals (and editing the Qsys "Address Map" tab to insert the new devices into the address spaces). It seems like there must be an easy way to make Qsys (or some Quartus tool) generate a .h file which contains all the address ranges in the "Address Map" tab. But I can't figure out how to do this. I tried 

 

sopc-create-header-files ghrd_5astfd5k3.sopcinfo --module hps_0 --single system.h.  

 

Which I found on another thread, and the resultant system.h mentions my peripherals, but doesn't list where they are in the ARM's H2F address space.  

 

Is there a magic command to generate a .h file from the Address Map tab? 

 

Thanks VERY Much! 

/j 

[ps - I'm using Arria V but I don't think this qn is board-specific]
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
936 Views

You know the base address of the H2F bridge so it's a simply a case of using the .h generated by sopc-create-header-files and adding an offset.

0 Kudos
Altera_Forum
Honored Contributor II
936 Views

yes, answer seems to be 

 

$ sopc-create-header-files ghrd_5astfd5k3.sopcinfo 

 

thanks 

/j
0 Kudos
User1580871742356367
909 Views

where to run this command? 

from Nios II command shell (gcc4)? Thank you.

0 Kudos
FSarc
Beginner
936 Views

Thanks , $sop-create-header-files xxxx.sopcinfo

works right

0 Kudos
Reply