Forum Discussion

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

How to manage two Ethernet MACs?

Hi

I need to implementent a system with 2 Ethernet MAC on a Cyclone III devboard. The two MAC must work in different ways:

- eth1 : use the iNiche stack and connects to my client application

- eth2 : is used by an EtherCAT master, so only needs to send/recv raw packets with no TCP/IP layers.

I used the sopc builder to create my system, loaded it and the two eth interfaces seems to initialize and work correctly at the hw level.

The problem is that nichestack tries to initialize any net interface it finds and the Nios application gets stuck.

Can anyone experienced in Nios programming suggest me how to restrict Nichestack to use only eth1? And possibly how to initialize eth2 for raw packet send/recv?

Thank you in advance

3 Replies

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

    I eventually solved the above problem.

    If anyone has a similar issue, I can give a few hints.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello Seilaser

    --- Quote Start ---

    I eventually solved the above problem.

    If anyone has a similar issue, I can give a few hints.

    --- Quote End ---

    I need to use EtherCAT interface in DE2-115, am new to this.

    Am little confused between EtherCAT and Ethernet MACs. Can you refer me some examples of EtherCAT implementation which will be very helpful.

    thanks,

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

    --- Quote Start ---

    I eventually solved the above problem.

    If anyone has a similar issue, I can give a few hints.

    --- Quote End ---

    Hi, Were you ale to use the TSE IP core for Ethercat master? How is the performance?