Forum Discussion
32 Replies
- Altera_Forum
Honored Contributor
Free?
How many boards are you looking to build? try opencores.org - Altera_Forum
Honored Contributor
Altera provide a Triple-Speed Ethernet MAC IP solution. You can try it out in Quartus II 6.1/7.1 Megacore Library. It provides an open core plus evaluation license.
- Altera_Forum
Honored Contributor
Hello tiande.
It would be very nice to use TSE MAC core, but there is no driver for it in uClinux OS. That's why I use 10/100 OpenCores MAC now. Moreover, I have a lot of problems with new *.sopc files( they are also not supported in uClinux). In my plans to write driver for TSE MAC. - Altera_Forum
Honored Contributor
Hi Nick,
You can actually use TSE MAC without using the SOPC builder system. There is a standalone TSE MAC where you can generate using Megawizard in Quartus II and integrate it in your custom system as normal HDL module. For this standalone MAC you need to write your own driver. However if you are using the SOPC builder mode of TSE MAC, you can actually use the provided driver. Can you share with me your problem with the SOPC files? - Altera_Forum
Honored Contributor
--- Quote Start --- Hi Nick, You can actually use TSE MAC without using the SOPC builder system. There is a standalone TSE MAC where you can generate using Megawizard in Quartus II and integrate it in your custom system as normal HDL module. For this standalone MAC you need to write your own driver. However if you are using the SOPC builder mode of TSE MAC, you can actually use the provided driver. Can you share with me your problem with the SOPC files? --- Quote End --- Tiande, Does this mean that the TSE MAC will run under uClinux? If so, could you explain how to make it work? I've been having difficulties getting the drivers to work properly. Thanks. - Altera_Forum
Honored Contributor
Hi tiande.
1)For old *.ptf files was written perl sript(HWSELECT), which creates all headers in uClinux. For new *.sopc files I need write one new(or create files manually). I will try to use TSE with SGDMA in SOPC, but before I need to port drivers in uClinux. 2)Does TSE work only with National PHYs? - Altera_Forum
Honored Contributor
Hi guys
Has anyone by now successfully ported a TSE MAC driver for uCLinux? - Altera_Forum
Honored Contributor
Hi,
I haven't port TSE MAC to uCLinux but I had read/modified/changed on the driver for TSE driver the interniche stack provided with MicroC/OS-II (come with Nios2-ide) before, i think it is not too difficult to understand it, in order to port the driver to uCLinux, what you need to knows (I think so, if it is not please let me know:)) 1. look at the section where TSE MAC driver provided all the necessary function pointer to the interniche stack as a struct --> you need to figure out what struct the uCLinux need, for example, interniche stack required the ethernet packet accept in memory being pad with 2 bytes of 0 in front so that it can jump to byte number-12 for the payload easily. 2. you need to see how the interniche stack in OS-II consume/take in the struct mentioned in 1 3. later will be modified other part of the driver that use function native to OS-II to uCLinux 4. check what is the other specific requirement that the uCLinux required from a MAC interface, if the feature exists in the TSE MAC as hardware function, add few more lines register read/write:) 5. if a feature doesn't exist in the TSE MAC, try to emulate it in the driver, or file a Service Request to the Altera TSE IP team for feature recommendation. - Altera_Forum
Honored Contributor
Also, the TSE MAC (as far as I have tested), National/Marvel/Broadcom PHY, the daughter card provided by the Altera Partner's 10/100 or 10/100/100 PHY daughter card and some sort of Finisar copper/optical SFP.
- Altera_Forum
Honored Contributor
Thanks for your reply Tiande - seems as if I will have to port the driver myself - will let you know how it goes.