Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Extracting mm-slave address using hw.tcl file

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?
No RepliesBe the first to reply