Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
Need Forum Guidance? Click here

Search our FPGA Knowledge Articles here.
18989 Discussions

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

Altera_Forum
Honored Contributor II
1,664 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
414 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 II
414 Views

yes, answer seems to be 

 

$ sopc-create-header-files ghrd_5astfd5k3.sopcinfo 

 

thanks 

/j
User1580871742356367
387 Views

where to run this command? 

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

FSarc
Beginner
414 Views

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

works right

Reply