Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17247 토론

SOPC Start Adress Extraction from each Component

Altera_Forum
명예로운 기여자 II
1,285 조회수

Hello, 

 

i need to extract the start adresses of each component in my SOPC system. 

 

Is there any easy way? Or must i write a perl script or something similar? 

 

I would like to trigger this script on system generation.  

 

thanks,  

ringo
0 포인트
5 응답
Altera_Forum
명예로운 기여자 II
554 조회수

In SOPC Builder, view memory map

0 포인트
Altera_Forum
명예로운 기여자 II
554 조회수

 

--- Quote Start ---  

Hello, 

 

i need to extract the start adresses of each component in my SOPC system. 

 

Is there any easy way? Or must i write a perl script or something similar? 

 

I would like to trigger this script on system generation.  

 

thanks,  

ringo 

--- Quote End ---  

 

 

You could use the tools that the linux guys use to map their addresses into the kernel build process.  

 

After you have compiled your SOPC into a SOPCINFO, open a NIOS terminal in the directory of your project and type "sopc-create-header-files --single custom_fpga.h". This should create an h file with all your addresses defined. 

 

Hope that helps. 

David
0 포인트
Altera_Forum
명예로운 기여자 II
554 조회수

The system.h has everything in it.

0 포인트
Altera_Forum
명예로운 기여자 II
554 조회수

If you don't have a Nios II core (and hence no system.h) you can call 'sopc-create-header-files' from the Nios II command line shell on any master in your system to get something equivalent to system.h generated. 

 

Alternatively if you created your own mastering component you can have the .tcl file query all the slave ports down stream from it and you could write a parser in .tcl to pull all the information out. This is a lot of work so I recommend the former approach.
0 포인트
Altera_Forum
명예로운 기여자 II
554 조회수

 

--- Quote Start ---  

You could use the tools that the linux guys use to map their addresses into the kernel build process.  

 

After you have compiled your SOPC into a SOPCINFO, open a NIOS terminal in the directory of your project and type "sopc-create-header-files --single custom_fpga.h". This should create an h file with all your addresses defined. 

 

Hope that helps. 

David 

--- Quote End ---  

 

 

Thanks, that's what i needed!  

 

I have no Nios Component in my System. So there was no system.h file. 

 

Now it's easy to extract the base adresses with a little Perl script ( perl is included in the nios II shell). 

 

i would like to generate a shell script to trigger the sopc-create-header-files call and the perl script. Can i add this in the tcl file of die SOPC system so its automatic executed by system generation? 

 

Thanks!  

Ringo
0 포인트
응답