Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI've found to make the LAN91c111 really work as a 16 bit device
on the Nios2 development board, one has to modify the file "class.ptf" in the altera_avalon_lan91c111 component folder. When the 'LAN91C111 MAC/PHY On Daughtercard' option is chosen then specifically these sections matter the most: $SPW/PORT byteenablen/width = "2"; $SPW/PORT address/width = "15"; $SPW/PORT data/width = "16"; $SBI/Data_Width = "16"; $SBI/Address_Width = "15"; $CONSTANTS/CONSTANT LAN91C111_REGISTERS_OFFSET/value = "0x0300"; $CONSTANTS/CONSTANT LAN91C111_DATA_BUS_WIDTH/value = "16"; After that the posted driver works great.