Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12748 Discussions

Extracting mm-slave address using hw.tcl file

Altera_Forum
Honored Contributor II
1,081 Views

Hi, 

 

I have inherited a class.ptf file that I need to port to a hw.tcl file. Basically, the existing SOPC component passes the slave's base address into the NIOS code this was done in the ptf file  

SLAVE data_in 

....  

SBI_data_in = "SLAVE data_in/SYSTEM_BUILDER_INFO" ; 

.... 

$WSA/DIN_BASE_ADDR = "{{ $SBI_data_in/Base_Address }}" ; 

.... 

 

When I look at the documentation for the hw.tcl file, they have example on haow to use the SYSTEM_INFO ADDRESS_MAP property to get a masters address map. But I am calling this in the component that contains the slave interface not the master interface? 

 

Does anyone have an example of how to do this? Is there a command to get the slave's base address directly?
0 Kudos
0 Replies
Reply