Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHow 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]4 Replies
- Altera_Forum
Honored Contributor
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
yes, answer seems to be
$ sopc-create-header-files ghrd_5astfd5k3.sopcinfo thanks /j- User1580871742356367
Occasional Contributor
where to run this command?
from Nios II command shell (gcc4)? Thank you.
- FSarc
New Contributor
Thanks , $sop-create-header-files xxxx.sopcinfo
works right