Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,421 Views

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

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 I
171 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.

Altera_Forum
Honored Contributor I
171 Views

yes, answer seems to be 

 

$ sopc-create-header-files ghrd_5astfd5k3.sopcinfo 

 

thanks 

/j
FSarc
Beginner
171 Views

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

works right

144 Views

where to run this command? 

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