Forum Discussion

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

From one Ethernet to the other

First of all, I don't want to use TSE, I know that is easier but the thing is that I don't want to use the mac address, only take the data without changes and resend.

The only thing that I want is:

- I have two ethernet ports in de de2-115 board with their marvel chips, and I want to connect one port to one computer (computer A) and the other one (computer B) to another computer

- Inside of the fpga I would like to bridge the conections of the two connectors, I mean, for example, the reception of the ETH0 connected to the transmision of the ETH1, and the transmision of the ETH0 connected with the reception of the ETH1 and the same with the other port. This should be like a wire, if I tried to send data from the computer A to the B the fpga should do nothing, only resend.

For this purpose I'm connecting the in MII mode:

- The pins PHY0_RXD[3..0] with the PHY1_TXD[3..0]

- The pins PHY0_RXDV[3..0] with the PHY1_TXE[3..0]

- The pins PHY1_RXD[3..0] with the PHY0_TXD[3..0]

- The pins PHY1_RXDV[3..0] with the PHY0_TXE[3..0]

I'm only wirig this and I thought that could work but... if I try to ping from one computer to the other I get nothing :S

If you could help me it will be great, thanks =)

11 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I see Daixiwen post only now.

    About the concerns on using 2 TSE with Altera drivers and Nichestack I can say that I used this configuration a few years ago and it worked.

    I had Nios IDE V9.0sp2 installed. If I remember correctly Nichestack driver supported up to 4 TSE MAC.

    There was only a problem I remember I toiled to solve: the multiple MACs were not initialized by the automatically generated alt_sys_init and I eventually had to explicitly call alt_tse_system_add_sys() function in the very beginning of my main().