I am just playing (=fighting against???) the new sc_ethernet stack from github. It was quite easy to integrate into the XC3 and AP_Led_Tile. But there is one warning that really puzzles me:
Code: Select all
Compiling main.xc
.././src/main.xc:122: warning: `rx' not used in two parallel statements (byte range 0..4)
.././src/main.xc:122: warning: `rx' not used in two parallel statements (byte range 4..8)
.././src/main.xc:122: warning: `tx' not used in two parallel statements (byte range 0..4)
.././src/main.xc:122: warning: `tx' not used in two parallel statements (byte range 4..8)
Code: Select all
chan rx[2], tx[2];
Code: Select all
// 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);
ethSwitch(rx[0], rx[1], c_local_rx_in,
tx[0], tx[1],c_local_tx,
cWdog[0]);
}
Or is there something wrong e.g. with my #defines which wrecks the code?
Anybody got some experience with this compiler behaviour or the sc_ethernet?
btw. my ethernet_conf.h looks ok for me – but I can be wrong on this too ;)
Code: Select all
#define MAX_ETHERNET_PACKET_SIZE (1518)
#define NUM_MII_RX_BUF 20
#define NUM_MII_TX_BUF 2
#define MAX_ETHERNET_CLIENTS (4)
#define NUM_ETHERNET_PORTS (2)