Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI was able to get a 16bit interface to the Lan91C111 working under the quartus4.1 environment. Although I was using a custom cyclone board and a custom daughtercard, they were not very different from the kit boards.
There is documentation on the altera daughtercard, which I can send you if you like. If this is what you are using, then you can just build a project with the Lan91C111 (daughtercard option selected). At the time, I found I also needed to invert the reset line and select native address alignment in the class.ptf. These changes may not be needed under 5.0. Then set aside a week or so to rewrite the lan91C111 drivers, since they are written for the 32bit interface only. You will need to be very familiar with the datasheet for that chip, and you will end up modifiying altera_avalon_lan91c111.c, .h, regs.h . It helps to have a kit board with the on-board Lan91C111 (32bit interface), so you can watch the working driver code in a debugger to understand how it should behave. It is far easier to just get a board that already has a working driver.