Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by tns1@Nov 3 2005, 07:12 PM i 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.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=10782)
--- quote end ---
--- Quote End --- I have the altera daughtercard documentation, thanks though. How did the change to native addressing help? I found an explanation of the difference but I'm still confused about what situations you'd use each in. Also how did you hook up your address and byte enable lines? Right now I have my daughtercard component hooked up to a separate tri-state bridge. It gives me address lines 3..0 and byte enable 1..0.