Forum Discussion

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

eth1 on Nios II/ecos

Does anyone have any experience with putting a second ethernet port on a Nios II or does anyone know what would be involved? I need to add a second ethernet port to use on a separate diagnostic network and the cdl file indicated that only one ethernet port is implemented.

1 Reply

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

    I assume you're using the Altera_avalon_lan91c111 driver.

    I might be wrong, but I think if you look at the .inl file that's in the ecos-current/packages/devs/sopc/*lan91c111*/current (wildcarded because I forgot the exact name) directory, you'll see that it declares an instance of the driver and hardcodes the name "eth0". If you duplicated this declaration and changed the duplicate's name to "eth1" (and figure out a way to get two different MAC addresses in there), it might work. I can't say for sure, because I haven't done it myself.