xcore/sc_ethernet — Issue #17: Is it possible that XC-3 with two channels does not work?
Author: interactive-matter
Created: 2011-12-07 08:53:19+00:00
State: open

In the ap_led_tile I use two channels for rx & tx:

chan rx[2], tx[2];

par
{
// Threads constrained by I/O or latency requirements
//the internal 3 port ethernet switch
on stdcore[2]: {
int mac_address[2];
phy_init_two_port(clk_smi, p_mii_resetn, smi_0, smi_1, mii_0, mii_1);
ethernet_server_two_port(mii_0, mii_1, mac_address, rx, 2, tx, 2, smi_0, smi_1, null);
}
on stdcore[2]: {
ethSwitch(rx[0], rx[1], c_local_rx_in,
tx[0], tx[1],c_local_tx,
cWdog[0]);
}

Which raises an illegal resource exception, discussed in this xcroe thread: https://www.xcore.com/forum/viewtopic.php?f=32&t=1586&start=0

The acommpanying code looks a lot like the bug reported here: https://www.xcore.com/forum/viewtopic.php?f=26&t=610&p=4527&hilit=illegal_resource#p4527

So is it possible that there is some bug with channels as arrays?