Page 1 of 1

How Can I use port array in one particular Function?

Posted: Wed Jun 17, 2020 10:50 am
by TonyXiao
Hi all

here i want using port array parameter for one function.
such as : void fun(port_arry[index])
i defined : port port_array[4] = on tile[2]: {XS1_PORT_1G,XS1_PORT_1H,XS1_PORT_1I,XS1_PORT_1J};
by changing the port array index, different port are function.
but the error report: error: only local variables of type chan or interface are allowed in a multi-tile main.

how can i solve it?

Re: How Can I use port array in one particular Function?

Posted: Fri Jul 31, 2020 6:22 pm
by dongore
I'm having a very similar problem. Did you solve yours?