Forum Discussion
Altera_Forum
Honored Contributor
16 years agoIf you have the Lan91c111 ethernet controller, you'll need to use the appropriate module in SOPC builder which will load the appropriate HAL driver into your BSP system when you create it.
The solution I have posted is for the altera de2 development board which uses a different ethernet controller device not natively supported by Altera. You should be able to modify my software/Quartus project to use your lan91c111 device: * Remove the DM9000a device in SOPC builder and add the Altera SOPC component for the lan91c111. Generate SOPC system. Ensure any other devices used (ie. flash memory and SDRAM are compatible with your development board - I assume you are using Nios II dev kit?) * You'll need to modify the pin mappings file to suit your dev board and you most likely will be using a different FPGA - so this will need to be changed as well. * Build Quartus project and download .SOF file. * Regenerate the BSP in Nios II Build tools based on the updated .SOPCINFO file. Rebuild the project and download the ELF file to the NIOS processor. You should have everything working by this point. Alternatively - check out the Nios II SDK and reference examples. There are a number of H/W ref examples (Quartus projects) which support the dev kit and socket server example. You should then be able to create the software from the reference template in Nios II SBT and deploy straight to your dev board.