Forum Discussion

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

qsys - make connections based on parameters

Hi

I wanted to connect or disconnect 2 endpoints in qsys based on a Instance Parameter but I'm not sure this is possible.

Under the Instance Parameters tab I added a parameter "MAKE_CONNECTION" and gave it a default value of 1.

In the Instance Script I have the following code


proc compose {} {
    set make_conn 
    if {$make_conn == "1"} {
        add_connection block1.out block2.in
    }
}

However when I try to generate this I get an error -

invalid command name "add_connection
No RepliesBe the first to reply