Forum Discussion

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

DHCP with TSE?

Hi,

is it possible to set different ip-addresses via PC without NIOS & Co into TSE-IP-Core?

I'll use one PC/ETH-Switch and e.g. three separate Cyclone V-GX devices with TSE-SGMII-PMA-PHY. All three FPGAs have the same image. How can I use DHCP?

Thanks!

3 Replies

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

    --- Quote Start ---

    is it possible to set different ip-addresses via PC without NIOS & Co into TSE-IP-Core?

    --- Quote End ---

    "Anything is possible."

    But if your question is if there is something already bundled with Quartus, the answer is no.

    --- Quote Start ---

    I'll use one PC/ETH-Switch and e.g. three separate Cyclone V-GX devices with TSE-SGMII-PMA-PHY. All three FPGAs have the same image. How can I use DHCP?

    --- Quote End ---

    DHCP is somewhat complex and is usually done in software.

    If this is a closed system (e.g. a lab experiment, or closed network in a commercial product) DHCP is probably overkill in the first place.

    You could simply hardcode the IP address for the given board in non-volatile memory somewhere (e.g. the tail end of the EPCS, if you're using that) and write associated logic to pull it in at boot time, the same as you must be doing for the MAC address.

    Or you can try something like "ARP Stuffing" here: http://en.wikipedia.org/wiki/address_resolution_protocol

    Or you can roll your own solution, with a low level (non-IP, or IP broadcast) network message from the PC directed toward the boards.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks ted, it's a good idea!

    Where can I set the unique IP address, any Register description? For setting of MAC addresses there are no problems, see ug_ethernet.pdf, but for setting the IP addresses all specs remains silent?! Any idea?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Since you aren't using software, you would have to visit the relevant documentation for whatever blocks are generating the ethernet packets being supplied to the TSE. If there are multiple such blocks, you would possibly need to supply each of them with the IP address.