Hacker News new | ask | show | jobs
by hn_submit 30 days ago
Is this something more than a flag-waiving exercise? Who's actually manufacturing and selling these "European" CPUs?

I just purchased a boatload of Chinese RISC-V development boards for about $2.30 a piece. Can't wait to start playing with them.

"RISC(-V) architecture is going to change everything."

[1]: https://www.aliexpress.com/item/1005011967676963.html

4 comments

Compared to x86, which is wholly owned by an American duopoly and needs licensing to produce legally, boosting RISC-V is a major step towards chip independence for Europe. With the current state of the US it almost seems a necessity. The only downside here is that it didn't happen sooner.
What about ARM? Isn't it also European?
While ARM Holdings is based in Cambridge, England, it is majority owned by SoftBank Group which is a Japanese investment conglomerate.

What's important in the context of a European "sovereign computing" initiative is the licensing of the instruction set architecture. Like x86, ARM is still proprietary, while RISC-V is a free and open standard.

SoftBank is technically hedquartered in Japan but it is mostly owned by Saudis.
This statement seems to be factually untrue. Mashayoshi Son owns 32-33% of Softbank and then the investors are like the Japanese Master Trust bank etc. Saudi Arabia is not even in top 10 of the investors list.

Saudi Arabia did recently invest 45 billion dollars in the vision fund which is an investment fund managed by Softbank but they haven't really invested within Softbank itself so not it is not mostly owned by Saudis from what the data can tell.

Others have already talked about the Japanese and Suadis.

My point would be that it has already been demonstrated that you can lose access to ARM technology as a consequence of US sanctions.

ARM is not a sufficiently independent ISA to guarantee sovereignty.

With RISC-V, you may lose access to a specific core, chip, or supply chain. But your ecosystem can pivot to an alternative. Long-term, you have the option of complete in-sourcing.

So, even working with Chinese chips and boards today can be progress, as long as more domestic RVA23 options can be expected to arrive later.

It was British until a short-sighted company sold it to the Japanese, the EU at the time was also looking in the other direction too.
It is if you define the UK being in Europe (the continent). It isn't part of the EU as of today, although there's a good chance it will be again in the future.

Even though it's Japanese-owned most of their R&D still takes place in England.

You don't need to define the UK being in Europe. UK is and forever will be in Europe, full stop.

I know that sometimes "European" is used as a synonym for "in the EU", but most of the time this is sloppy. Nobody in Europe thinks UK is "not European".

ARM is still IP locked like x86_64.

RISC-V is IP UNlocked. I bought RISC-V mini-boards (so cheap) years ago because I was planning to build my keyboard... but I am still on other projects... and there are even better RISC-V miniboard nowdays (better USB, more GPIOs... for a full fledge BFO-9000 keyboard!).

What I am waiting for are RISC-V high performance micro-architectures which will use the best silicon node (desktop, mobile, and for servers it seems there are a few attempts). One of the main issue seems... the compressed instructions which should be removed as it increases implementation complexity significantly in order to apply some of the known high-performance optimizations (it is not anectodale if ARM removed thumb machine instructions).

I like the idea, I code as much as possible things in RISC-V assembly now, and re-use a ton of code paths (at the assembly level!). I have even written a small RISC-V interpreter for x86_64 for static exes.

Even if Intel licensed x86 no one in Europe would want to make them. Unless they're guaranteed a monopoly there will be no takers. European companies and conglomerates are extremely lazy and risk averse.

All they want is to suck on the government's tit.

Arm would be a better choice the problem in Europe isn’t tech the problem is mainly a lack of will, I hope someone will pick up the gauntlet. And I don’t mean the free pizza and beer approach ie Linux.
ARM is a markedly worse choice than RISC-V for Europe. It's expensive to license, relatively inflexible, and not majority-owned by European firms.

There is no tangible advantage to Europe adopting the ARM ISA for domestic chips at any scale.

Such development boards are a completeley different thing compared to RVA23-profile RISC-V CPUs.

This is like comparing an 48MHz ARM-Cortex-M0 with the CPU in your Macbook. Yes both of them are ARM cores, but the small embedded processor has very little RAM/Flash/clockspeed, no memory management unit, no cache, no modern RAM interface.

Not even the instruction set is really the same, because you (typically) won't even have floating point instructions/registers on the small MCUs, much less vector instructions.

The Milk-V Jupiter 2 mentioned in the post is basically a full-fledged Desktop CPU and it's price is not gonna be anywhere close to $2 either...

You aren't going to be running ERICI's Linux on a Cortex-M0-like RV32E, no, but I'd think that most industrial equipment has a lot more need for RV32E or similar than it does for Linux.
You can certainly do a lot even with low end CPUs in automation (and they are certainly used a lot there).

But there's a lot of basically-desktop CPUs in industrial automation too, because those are not that expensive and very useful for higher bandwidth interfaces (think ethernet based), cycle times in the microsecond range (higher CPU clock gives you a much more generous cycle budget) and just a generally easier time doing anything where a FPU and memory helps (motion planning, driving some UI on a touch panel, etc).

See:

https://www.beckhoff.com/en-en/products/ipc/embedded-pcs/

This is certainly true, but I think that some of it is a question of industrial designs lagging behind the state of the art in computery stuff.

The CPU clock cycle time of any random Cortex-M0+ is on the order of 30 nanoseconds, a much higher clock speed than the microsecond range you're taking about. The microcontroller also has much better response-time predictability than you can get on a basically-desktop CPU, with its TLBs, three layers of cache, DRAM CAS latency, variable latency to open DRAM pages, SMM, Intel ME, high-priority DMA delaying the CPU's RAM access, etc.

ERICI's plan to run Linux under a real-time hypervisor is definitely a thing that can be done, and a thing that is regularly done on cellphones and industrial-control systems, and has been since the 01990s, among other things, with RTLinux and Linux-CNC. But, although I need to say that I lack any experience in the area, I'm skeptical that it is a sensible tradeoff in 02026, where by rearchitecting the entire system to run under a hypervisor you can maybe avoid spending 9.97¢ on a 48MHz Cortex-M0+ https://www.lcsc.com/product-detail/Microcontrollers-MCU-MPU... or 17¢ on a 48MHz RV32E CH32V003 https://www.lcsc.com/product-detail/Microcontrollers-MCU-MPU.... I think it made more sense in the 01990s where EMC/LinuxCNC was running on an 80486 that was half as fast as the Cortex-M0+ but cost US$2500. I think it might be a better tradeoff to avoid having any CPUs that have to run "mixed-criticality" workloads, as seL4 calls them — where the same CPU is timeshared between a best-effort Linux workload and hard real-time code. The problem with hard real-time code in industrial automation is that, if it misses a deadline, it can crash your lathe and cost you US$159,532.53. You're depending on your real-time hypervisor to make sure that nothing Linux can do can make that happen.

It seems like it would probably be better engineering now to run the hard real-time control loops on a tiny dedicated computer that costs 37¢, and communicate with the Linux box over I²C or USB or a UART or PCIe or something. To get the response times lower than microcontrollers can guarantee, people seem to be moving to FPGAs. You can get a small FPGA for US$2 now, and the latency from inputs to outputs is typically on the order of 10 nanoseconds, much quicker than a microcontroller can respond from an ISR.

Avoiding one crashed lathe can pay for a lot of microcontrollers.

> ERICI's plan to run Linux under a real-time hypervisor...

Why plan? It's working right now, alongside QSOE/N. Resources nicely partitioned: graphics controller and UFS storage for Linux; NVMe, Ethernet UART for QSOE. Please see the demonstration video.

As I said, it's been working since the 01990s. Barabanov's original research on what would become RT-Linux and Yodaiken's paper about it were 01996. L⁴Linux was 01997. Heck, MERT was 01975. And, I'm sorry, but I'm not going to watch your demonstration video.
You do have valid points with the "better to avoid mixed criticality when possible" and "isolate the most latency sensitive compontents on dedicated hardware".

I work in embedded software and I have some insight on why the reality often looks very different from this:

Software "cost" works differently. In a startup environment, you can spread the fixed costs for software development on thousands of installs (or even more). Automation software is very different, and solutions are often bespoke; even if you're building and selling machines, the numbers will be much lower than for consumer stuff.

This means that fixed costs for software development matter much more, and that hard developer productivity (as in: how many factories can your PLC programmers automate per year) is much more important. Vendoring dependencies is much more costly, splitting your codebase over multiple subsystems is less desirable (=> overhead for general development, update, configuration management, redundant subcomponents, slower iteration), heterogenous systems are very undesirable (because specialized employees are more expensive to manage and less flexible).

This is why much of the industry is so willing to shell out for "overpriced" PLC controllers (when freely programmable MCUs can be had for cents), proprietary frameworks and what you might perceive as obsolete garbage tooling for HMI/cloud integration: All those things help to build solutions that are "good enough" with less programmers, less training, less specialization and thus, crucially, less software-fixed-costs (that you wouldn't be able to recoup).

One other thing: software being formally correct vs. reliable/robust is much more orthogonal in practice than you might assume, and industry typically cares more about the latter. My perspective is that formalizing/certifying software is (overly) concerned with eliminating lower risk holdouts (think: proving latency bounds on memory allocation or somesuch), while "robustifying" software looks at "actual highest risk" parts first (sanity checking requirements/specifications, avoiding pitfalls for users when configuring/operating your system, fixing false positives).

That makes a lot of sense, and I greatly appreciate you sharing your experience. It helps me to understand why the industrial automation world looks the way it does.
These implement 16-register cut down RISC-V RV32EC_Zmmul instruction set. It's an interesting choice. I wonder if they can run Coremark or Dhrystone so one can get an impression of their performance at 48MHz.

8k RAM, 64k ROM, compressed RISC-V insn set.

Edit: Apparently it's a QingKe RISC-V with about 130 Coremark.

They shouldn't have any trouble running Dhrystone, either. RV32EC_Zmmul is closely comparable to the Thumb-1 ISA implemented by Cortex-M0, but I'd expect a little lower DMIPS/MHz than a Cortex-M0.
The Coremark website claims the CH32X033F8P7 has a Coremark of 41.6.

An Atmel AVR has a Coremark of 7.5 so these little $2.50 MCUs are about 5 times (!) as fast as the 8-bit AVR.

These are more than sufficient for simple control applications. I'm just wondering if I can run a small GUI on it driving an OLED display. That's what I'm gonna find out.
I'm confident you won't have any trouble at all doing that. 8KB RAM doesn't sound like much, but it's plenty fast enough to make up for it unless your OLED display is huge and your graphics are very complicated. It's roughly 50 times as fast as the original Macintosh, but with one sixteenth of the RAM, a combination that you may find favors IMGUI approaches. Popular OLED display controllers like the SSD1306BZ have their own framebuffers onboard, so you don't have to regenerate the pixels dozens of times a second to refresh the display the way you do for VGA or NTSC.
Who actually builds these manufacturing facilities? Is America just a financial services empire now? Two can play this game.