Forum Discussion

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

TSE MAC Destination Address

Hi everyone

I'm using the TSE MAC to design a gigabit ethernet interface.But I don't know how to set the destination Address.Can anybody tell me?Thank you

4 Replies

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

    Hi

    I used this TSE MAC too, but the source of the data must provide a complete ethernet frame except for the CRC and padding bytes if you configure the TSE correctly.

    Bye

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

    Do you really mean destination address? Or maybe you mean source address?

    You normally set the last one, during board initialization.

    Destination address instead depends on what type of ethernet protocol you are using. Examples:

    If you application has a tcp/ip stack, than the stack itself will set addresses for you.

    If your app sends and receives raw ethernet frames, then you manually build and decode each frame, so you can virtually set any address you want, both source and dest.

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

    Thank you for your anwsers!Do you mean that the MAC core only complete the function of CRC and padding bytes other than the whole mac layer function?

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

    The MAC is not designed to pack your payload, so as said it expects a complete frame without CRC and paddng. But is has many other functions for you, like input destination MAC address filtering, Flow control wwith pause frames, transmit and receive FIFO', interfaces to Avalon ST and eg. RGMII PHY or TBI (inc. PCS) or SGMII (inc. PCS and PMA) ... so it helps you a lot by doing these function ...

    good luck

    Bert