95 points · by pabs3 · 3y ago · 65 comments
There are some good reasons for that though, I'm not entirely sure that an FPGA can drive hard enough for a useful Ethernet PHY except for parhaps short range stuff, not sure what happens when the isolating magnetics are added.
I wish there was a good IP Core for the IP Stack though, most implmentations of IP Ethernet on FPGAs use a softcore to run the networking stack which bumps up the utilization a lot. I'm absolutely certain a basic IP layer could be done purely in HDL which would go a long way in getting Ethernet going on lower spec FPGAs.
Releasing under AGPL is a great way to not see your design being used and contributed to. At least by entities that wants to abide by the license and do the right thing. Entities that steal work done by others, have no intention to contribute back may do differently.
The issue here is liability and what the lawyers counseling a company will recommend. If your design contain IP that the company has valued (very common), risking leakage of that IP by using a library that in legalese seems to suggest that you may have to release your design, you can probably bet that the lawyers will recommend to find another technical solution. Protecting business value and avoid exposure, liability drives conservatism. And in my experience will always triumph over technology choice. Esp if there seems to be a possible choice to be made. Including developing your own solution.
As an open source HW creator I have to decide if I develop stuff for my own amusement, or if I do it to (in somehow small way) help the world - which means other using my creations. And then consider if the license I use support that goal. Since I don't just develop stuff for my own amusement I've decided to use a permissive license since I think that makes it easiest for others to use my stuff.
Judging by the number of downloads, messages and additional work I've gotten, it seems to work out pretty ok.
AGPL throws the community baby out with the bathwater.
IMO it's normal and expected that companies hate GPL(v2 or v3 or AGPL). It's not okay but also okay to steal GPL code too, it's just an introductory price phase for inescapable lock-in which even Google hasn't been able to get away from.
CERN-OHL-S seems more common in open hardware.
In general FOSH licenses aren't as developed or tested as FOSS ones.
Think for example a standard SoC chip for an embedded device scenario - it will have one or more MII ports [1]. Onto these MII ports, you can then attach a PHY chip for your needs... Ethernet, coax, fiber optics, direct connection, whatever, so you don't need to change your SoC chip or even your operating system just if you want to offer a product with Ethernet and fiber networking.
Usually, these chips are proprietary... but this project provides an open source implementation, so that in the worst case of no one producing Ethernet PHYs any more, you can take an FPGA instead.
[1] https://en.wikipedia.org/wiki/Media-independent_interface
Normal logic pins on FPGAs generally can’t be used to transmit or receive fast enough (not to mention some of these standards are using multi-level signalling like PAM-4 which a normal logic pin just can’t do).
100Mbps on the other hand (like this project is doing) is possible to produce, but I do wonder how likely it would be to be able to practically receive with any meaningful cable length without an analogue front-end that you find in a PHY.
More power to you and this open source/open hardware/transparent hardware, highly educational project!
Upvoted and favorited!
Around the house, you'll find 100BASE-T Ethernet on wired security cameras, televisions, printers, home-automation, and lots of other stuff too.
As a product designer, there are lots of reasons why I might want to put Ethernet on my widget. It's more robust than wifi, it's lower-power, and it's cheaper. It also has much longer range. I might also like to use Power-over-Ethernet to avoid the need for batteries or an electrical outlet.
Ethernet is also much easier to handle than wifi, from a software perspective. And there are lots of products don't really need more than 10-20 KB/sec of data throughput.
I worked on a product in 2022 that settled on 100BASE-T Ethernet as the right design fit (as a backup to wifi), and it was a great choice for the project. I'd make the same choice again today, for a similar system. 10BASE-T is pretty much gone at this point, but 100BASE-T is alive and well as the lowest common-denominator.
Pretty much all networking gear on the market supports 100BASE-T flawlessly, even if the rest of the devices on the network are 1000BASE-T or 2.5GBASE-T. Almost every laptop (or USB) Ethernet adapter also supports auto-negotiate and auto-crossover, meaning that you could plug your laptop right into some device's 100BASE-T port and start talking to it.
FPGAs are typically a little too pricy for consumer gear, but they're incredibly common in higher-margin commercial, industrial, and military equipment. And if your design already has an FPGA for some reason or another, why not use it to provide Ethernet as well? Cuts down on the number of chips you need to use in your design.
P.S. Too many generations... I still remember Token Ring and coax Ethernet fighting it out, and even today I run a mix of four different speeds at home, 1G/2.5G/10G and 25G. Everything's become a bit of a blur. :)
Wifi isn't practical for all use cases either.
And 10Base is evolving, not going a way. Base-T1L spec got recently released. It does full-duplex 10mbit over a single twisted pair. It is rated for +1000meter cables. 1/10 of the speed of 100BaseTX, but 10x the range.
There is a GigE specification now too, but if all you're doing is controlling some motors you don't need that much throughput.
On top there are other things like ProfinetIO.
They don't look like valid Ethernet Frames, they are valid Ethernet Frames. Ethercat embeds its Ethertype within the frame the same way that other protocols do.
As you say, EtherCAT does its own thing with the frames, to get the real-time determistic performance it needs, but EtherCAT and other 802.3 Frames can co-exist.
https://www.ethercat.org/pdf/english/EtherCAT_Introduction_0...
Slide 25-32 are a good high level overview of possibilities. Slide 32 shows a setup with Co-Existance.
You can bitbang USB over a wet string with an ATtiny. If you want USB 2.0 you need dedicated hardware for it in your MCU, and you need to pay some attention to your PCB design. With USB 3.0 you need an expensive MCU, and you need to actually pay close attention to PCB design to ensure the signal remains intact. USB 3.1 and above is basically magic.
The same will apply to Ethernet: stick to the slowest standard which is sufficient for your application to save yourself a lot of headache.
So apart from being fun, maybe the main benefit would be less board space because it doesn’t need the PHY chip? (But also potentially lots of disadvantages practically).
I think this is a "because I can" sort of thing.
LiteX allows me to use it as a Gigabit Ethernet powered logic analyzer with a lot of inputs.