Forum Discussion

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

Opencores MAC 10/100 Driver

Hi Everyone

Please feel free to use these files and/or comment on them. I've written them as a driver for the opencores mac solution. I have been using them with the lwip web server example that comes with the nios II installation and they seems to work.

I've attached a zip file with three files in it:

OpenCores_Ethernet_MAC_regs.h - contains the definitions of the registers inside the opencores MAC component.

OpenCores_Ethernet_MAC.c and the matching h file is the actual driver.

I've used these files in conjuction with files that come with the Nios installation, which I can't post here for obvious reasons. What I did was to make a copy of the altera_avalon_lan91c111 directory, name it accordingly and replace the file in the HAL\inc and HAL\src as well as the regs file in the inc directory with the file I've attached. I hope this helps someone.

Nir

24 Replies