Altera_Forum
Honored Contributor
12 years agoset_connection_parameter_value not callable from QSYS instance script?
Hello All,
I would like to embed the SGDMA descriptor on-chip ram inside of a QSYS subsystem however for this to work properly the base address of the subsystem must be passed in so that the SGDMA units use the same base address as the external CPUs for the descriptor RAM. To this end I have created a QSYS instance script as follows (see the instance parameters tab in QSYS). In principal this looks like a really good solution to the problem except that I receive an error message, and the base address isnt properly set. Error: invalid command name "set_connection_parameter_value" Does anyone know how this can be resolved? Otherwise, I will need to add this problem to the unresolved QSYS issues page.proc compose {} {
# manipulate parameters in here
# Example: set_instance_parameter_value child0 param0
set mbsw
set mbc
set mbcx2
set enblBurst
set baseAddr
set_instance_parameter_value mm_clock_crossing_bridge_master MAX_BURST_SIZE $mbc
set_instance_parameter_value mm_clock_crossing_bridge_master RESPONSE_FIFO_DEPTH $mbcx2
set_instance_parameter_value sgdma_rx enableBurstTransfers $enblBurst
set_instance_parameter_value sgdma_rx writeBurstcountWidth $mbsw
set_instance_parameter_value sgdma_tx enableBurstTransfers $enblBurst
set_instance_parameter_value sgdma_tx readBurstcountWidth $mbsw
set_connection_parameter_value sgdma_rx.descriptor_read/nif_descr_ram.s1 baseAddress $baseAddr
set_connection_parameter_value sgdma_rx.descriptor_write/nif_descr_ram.s1 baseAddress $baseAddr
set_connection_parameter_value sgdma_tx.descriptor_read/nif_descr_ram.s1 baseAddress $baseAddr
set_connection_parameter_value sgdma_tx.descriptor_write/nif_descr_ram.s1 baseAddress $baseAddr
}]]></instanceScript>