Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

eth1 on Nios II/ecos

Altera_Forum
Honored Contributor II
1,032 Views

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.

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
286 Views

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.
0 Kudos
Reply