Western Digital SweRV RISC-V Core
github.com
github.com
PicoRV32 is particularly neat because it includes an SoC wrapper [2] that allows you to place other hardware / co-processors / peripherals on the same FPGA and talk to them from the CPU via a memory mapped interface.
[1] https://github.com/cliffordwolf/picorv32
[2] https://github.com/cliffordwolf/picorv32/tree/master/picosoc
The SweRV Core™ EH1 is an advanced high-performance core with small footprint, suitable for embedded devices supporting data-intensive applications such as storage controllers, industrial IoT, real-time analytics in surveillance systems, and other smart systems.
SweRV Core EH1:
Architecture: 32-bit, dual superscalar, 9-stage pipeline
Performance: Up to 4.95 CoreMark/MHz (further gain possible with compiler optimizations)
Clock speed: Up to 1.8 GHz
Technology: TSMC 28nm CMOS
Bus support: AXI, AHB-lite
Programmable Interrupt Controller
RISC-V debug supportThat's interesting. AXI is from ARM and I think it's still subject to ARM licensing.
So it seems like they might be in the clear.
ARM used to license (2013) for 1-10 million up front then 1-2% of the street value of the chip in royalties[0].
A little googling find this presentation on swerve [1] EH2 which says 4.9 coremark/mhz with one core. It's 8 stage, dual core (with SMT) targeting 1.2GHz on 16nm. It seems likely to be between an a35 (wearable) and a55.
With those chips starting at around $10 and around 100m units per year, it's easily 11-30 million per year but including the fact that integrating the arm core is also expensive and requires engineers. That money represents 22-60 full time engineers at $500,000 each. They also have a m4 sized chip too which is another big chunk of money
These big companies stand to save a lot moving to RISC-V.
[0] https://www.neowin.net/news/arm-reportedly-hiking-licensing-...
[1] https://riscv.org/wp-content/uploads/2019/12/12.11-14.20a3-B...
Apparently they were able to take over the SPARC people that were dropped by Oracle.
Building modern CPUs isn’t about the ISA of Intel made the x86 ISA open to all tomorrow you still would need a plethora of patents licensed to ship a CPU without being sued to oblivion.
I don't anything in the ISA itself is covered by patents anymore. And the basic techniques for making a high performance CPU are getting quite old. Seems like a lot of the techniques used by desktop CPUs being released today have a a lot to do with advanced cache architectures, "AI" branch prediction, virtual memory, hypervisors, etc. A lot of these things will not be so relevant to a special purpose embedded CPU like this.
And in general building a high performance ALU, FPU, a modern MMU with virtualization and I/OMMU support, an efficient instruction decoder and register file are all covered by patents that are still in effect.
Large companies that design their own cores cross license a shit tonne of patents between themselves and for everything else they hold each other at gun point.
AMD and Intel quite likely violate each other’s patents all the time at least those that aren’t covered by the cross licensing agreement they just know that if they go to court neither of them will be able to put a CPU on the shelves for the next 3 decades.
NVIDIA got patent slapped to oblivion when they wanted to emulate x86 on GPUs despite technically having an x86 license at the time (although Intel claimed it didn’t cover what NVIDIA was planning) and the fact that binary translation has been ruled not to infringe on ISA related patents.
In general circumventing patents is expensive and if you don’t have a large enough patent portfolio to be able to plausibly claim how you’ve achieved a certain level of functionality you’ll always be at risk of claims and law suits.
Until there will be a large consortium or industry leaders that are willing to share their patents for free or at an acceptable cost through a (F)RAND license with all members I don’t see RISC-V being a cheap version for anyone but the existing giants that already either license enough patents from others or have enough of their own to be bulletproof.
However, guess that Microsoft has a big enough patent portfolio for Intel to not go beyond that threat...
NVIDIA on the other hand was and still is a direct threat to Intel in the datacenter.
WD is still pretty darn huge and that is kinda the point, with ARM you can roll out cores cheaply without worrying about needing additional licenses.
Until RISC-V will have an ecosystem of oven ready cores that can be licensed for essentially immediate tape out I’m not seeing it as a major threat to ARM.
The biggest threat so far seems to be that ARM may have to lower its fees even further at least for its embedded cores as there aren’t any RISC-V designs out there that threaten their Application Processor uArch yet.
The U74 is very similar to an A55 without NEON.
I suspect SiFive is probably going to put the FU-740 SoC itself on Mouser once they have sufficient supplies to fulfill board orders.
Their U84 core was announced 12 months ago and is A72-equivalent (again excluding NEON). They way these things work there will probably be chips and boards available in another 12 months.
The VIU75 core was also just announced as available for licensing. That's a U74 plus RISC-V Vector extension (more like SVE than NEON).
Obviously ARM has already moved on from the A72 and they're up to A78 now with I think the A76 the latest actually shipping in devices (e.g. Samsung Galaxy S20). But RISC-V is catching up pretty quickly considering that four years ago there was no RISC-V chips shipping at all.
Also A72 to A78 is just incremental improvements, much like Nehalem to Sandy Bridge to SkyLake in x86. Of course the newer ones are better, but there are plenty of people out there still happily using Sandy Bridge.
https://www.anandtech.com/show/7112/the-arm-diaries-part-1-h...
https://youtu.be/hF3sp-q3Zmk?t=390
about how no existing embedded ARM core did exactly what they wanted, so they had to use two of them. With SweRV they were able to design a single core to do the same.
So clearly this must be possible to run DooM on.
[1] https://github.com/RandalLinden/DOOM-FX - yes, that’s the original code on GitHub, released by the author
So a remote attacker who already had root access to run fwtool could do it.
...yeah, a lot...? Over SATA link? I don't know, over NVMe? maybe, over regular PCIe? a lot, over USB? a lot...
Adversaries won't have to physically plug the device in, though, because there are plenty such potentially exploitable devices that are readily available on average computers(desktop or laptop). BIOS ROM chips, gaming RGB LED controllers, motion sensors, power management microcontrollers, internal Wi-Fi or Bluetooth chips, potentially some HDMI monitors, SSDs, HDDs, potentially Blu-ray drives, certain USB drives, gaming mice, GPUs, high end network controllers, BMCs for remote server management... Today even a microSD card runs some sort of software.
I think you'd have to go back to at least Pentium 2 or III days, further back if you want a laptop, to be confident that there is _no_ standalone microcontrollers that can be hacked from OS by adversaries, and that any reprogramming features in components are/can be fully disabled in hardware or at least by OS. Microcontrollers were usually overkill for simple management tasks back in those days, and ROMs either had hardware write enable pins or external reprogramming voltage supply required to do it.
Yes, most devices (including hard drives) can have their firmware updated from the host computer. Some newer devices support some form of firmware signing, making it more difficult for a malicious firmware to be installed, but they're in the minority -- most firmware update mechanisms are insecure.
Check out the slides in the "Various" section: https://tomverbeure.github.io/2019/03/13/SweRV.html#various
It shows how 2 SweRVs are used inside a NAND flash controller.
Therefore WD Red Plus and the faster WD Red Pro models should be 100% safe, while plain WD Red ones, especially if bought less than a couple years ago are not. Corrections welcome of course.
At least they're now documenting the technology they're using [1].
[0] https://www.toshiba-storage.com/products/s300-surveillance-h...
[1] https://www.westerndigital.com/products/internal-drives/wd-r...