News for hackers. Stuff that matters.
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by PragmaticPulp on Monday July 05, 2021 @11:33AM (#27738991)
Very cool to see a team of 25 students put this together and get prototypes made. I wish opportunities like these were available back in my college days.

The headline is getting slightly ahead of the actual performance. Reaching Cortex-A76 performance is their goal after many more iterations. Their current implementation is not there yet, but that shouldn't detract from the magnitude of their achievement and their contribution to the open-source world:

> This culminated with an 8-core prototype built based on Yanqihu (雁栖湖) architecture using TSMC’s 28nm process with the processor running up to 1.2 or 1.3 GHz that should be taped out this month. But plans have been made to tape out a new prototype based on Nanhu (南湖) by the end of the year, using SMIC’s 14nm process allowing up to 2 GHz frequency, and further iterations of the architecture will aim at rivaling Arm’s Cortex-A76 processor.

RISC-V is an exciting development in the SoC world. We're starting to see some of HiFive's boards trickle out into the wild. The performance is good, but it's not quite as groundbreaking as many of the headlines make it out to be. The most exciting part of all of this is that ARM has more competition and we get to see some open-source contributions like this.

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by ethbr0 on Monday July 05, 2021 @12:21PM (#27739497)
Are there higher level abstraction efforts in the linux kernel to prevent a hypothetical custom RISC-V diversity explosion from ending up quite as messily as custom ARM did?

Afaict, most of the ARM ugliness was around non-"CPU" SoC components. But it definitely seemed like kernel code organization wasn't ready for a 10x (or 100x) explosion of popular SoCs.

And the entire point of open sourced RISC-V cores is that they would enable even more chip diversity, no?

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by stffrdhrn on Monday July 05, 2021 @10:23PM (#27743666)
The riscv kernel maintainer is not interested in maintaining many different configs for many different SoC. So that is one effort to avoid fragmentation. If you look at the riscv config tree we can see about 5 configs:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

Compare this to the ARM tree there are a few more:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

Source: https://github.com/esmil/linux/pull/6#issuecomment-844135991

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by voakbasda on Monday July 05, 2021 @12:44PM (#27739725)
There have been discussions about this, and my conclusion is that there definitely could be a problem on the order of ARM’s. With luck, RISC-V will learn from history and not doom itself to repeat the same mistakes.
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by Pet_Ant on Monday July 05, 2021 @02:17PM (#27740504)
Is there an existing standard that board implementations can rally around? Something like OpenBoot? Make it a defacto standard.
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by swiley on Monday July 05, 2021 @10:19PM (#27743645)
We have device tree. The problem on ARM is

1) Qualcomm and other SoC vendors fighting interoperability

and

2) Users not understanding device tree.

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by goodpoint on Monday July 05, 2021 @01:50PM (#27740252)
The RISC-V ISA specifically allows for custom extensions.

Unfortunately, the licensing model does require the implementations to be FLOSS. This encourages creating a lot of closed stuff with different and incompatible extensions.

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by brucehoult on Tuesday July 06, 2021 @01:12AM (#27744453)
It doesn't matter. As long as they implement the core RV64GC instruction set correctly, standard software will run, and if they implement privileged architecture 1.10 or later correctly then the standard Linux kernel will run.

Vendors are free to use custom extensions to implement the bootloader and SBI. Normal code and even the OS won't see that. They can also use custom extensions in hardware drivers. Even in libc, if they want, though that gives more maintenance work.

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by rjsw on Monday July 05, 2021 @02:57PM (#27740860)
Whether RISC-V ISA extensions are allowed or not is unrelated to the problems seen with ARM SoCs putting peripheral devices at different addresses.
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by a9h74j on Monday July 05, 2021 @03:35PM (#27741169)
Could a device table [for on-chip peripherals] be put right on chip?
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by formerly_proven on Monday July 05, 2021 @03:56PM (#27741314)
Yes, that's a devicetree. Those can be tacked onto the kernel image or dynamically loaded from the chip's firmware (which most likely gets it from the firmware flash).
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by goodpoint on Monday July 05, 2021 @05:51PM (#27742162)
Sure, but the question was about diversity explosion in general.
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by rektide on Monday July 05, 2021 @03:19PM (#27741059)
> I wish opportunities like these were available back in my college days.

I'm forgetting the source, but some book I read discussed some period of silicon valley as a place where colleges quite routinely exposed students to chip-making. It sounded like the fabs of the area greatly supported these efforts. I'm not sure where I read it but it's stuck with me across many years, always strongly affirming my belief that people, when given exposure to how & means to do, begin many great things.

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by zsmi on Monday July 05, 2021 @03:46PM (#27741240)
I'm sure students in the valley have been routinely exposed to VLSI chip-making, and actually making ICs, since at least the early 90s. I know I was.

The main problem is there are only so many universities with so many sections therefore quite a lot of students don't get exposure, even within a given EE department. And even if they could offer it to all students, many wouldn't enroll, as you're basically doing this class constantly for like a year, for not that many credits relative to the time spent, as it sucks down just tons of hours as one gets familiar with all the nitpicky details that one needs to know. And as one learns to deal with the joy that is CAD tooling.

However, in my opinion, the experience in invaluable. And students that can pass that course, with a successful chip in hand, are hand picked by employers. We sure do.

EE272 at Stanford actually started to post their flow. Another benefit of the open source PDKs.

https://code.stanford.edu/ee272/skywater-digital-flow

There are actually many interesting student designs out there. For example this OoO RV64GC RISC-V core from Berkeley: https://chipyard.readthedocs.io/en/latest/Generators/BOOM.ht...

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by rbehrends on Monday July 05, 2021 @08:10PM (#27743048)
This was kicked off by Lynn Conway's famous VLSI design course at MIT [1], which began the Mead & Conway revolution.

You can find a more detailed write-up of that course and other courses it inspired (as well as some of the practical challenges involved) in her retrospective in IEEE Solid-State Circuits Magazine [2].

An excerpt:

> "Importantly, these weren’t just any designs, for many pushed the envelope of system architecture. Jim Clark, for instance, prototyped the Geometry Engine and went on to launch Silicon Graphics Incorporated based on that work (see Fig. 16). Guy Steele, Gerry Sussman, Jack Holloway and Alan Bell created the follow-on ‘Scheme’ (a dialect of LISP) microprocessor, another stunning design."

[1] https://ai.eecs.umich.edu/people/conway/VLSI/MIT78/MIT78.htm...

[2] https://ieeexplore.ieee.org/document/6393023

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by liyanage on Thursday July 08, 2021 @01:34AM (#27768742)
Wow that second link ("Reminiscences of the VLSI Revolution") turned out to be a 29 page rabbit hole providing a fantastic glimpse into the history and early days of chip design and engineering, thanks a lot for posting that! Here's a direct link to the PDF: https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.69...
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by gumby on Monday July 05, 2021 @11:24PM (#27743949)
ARPA (and later DARPA) had a deal with MOSIS back in the late 70s and early 80s to fab chips for projects they funded (I remember this being used at MIT and Stanford at least, and surely others I wasn’t exposed to).
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by shard on Monday July 05, 2021 @03:36PM (#27741177)
Not sure when GP went to college, but Caltech students were able to submit projects to MOSIS shuttle runs for a chip design class over 25 years ago.
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by andrekandre on Monday July 05, 2021 @04:46PM (#27741674)
i love these names: they are very intel-like

雁栖湖 → yangqi lake 南湖 → south lake

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by throwawaysea on Monday July 05, 2021 @06:14PM (#27742303)
For someone unfamiliar with how the overall process works, what’s the road from this design to seeing this power laptops or desktops available to consumers? It isn’t clear to me, for example, what else needs to be designed around this - a motherboard? Will software “just works” since it is using a known instruction set architecture?
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by fjgjfdkghjf on Monday July 05, 2021 @09:17PM (#27743367)
> Very cool to see a team of 25 students [in China] put this together

There will be many more stories about Chinese "Open Source" CPUs, because the USA has declared a strategy for this decade to control and limit the flow of advanced semiconductor tech to China. China would love to have bright minds from the West contribute to "Chinese Open Source" CPUs. Western contributors will find that these "Open Source" designs can only be economically fabricated in China, though, creating dependence on China.

Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by whatever1 on Monday July 05, 2021 @10:43PM (#27743767)
It is a good strategy that has worked historically. Sugarcoat your real goal with some humanitarian bs and then have the best talent of the world working for you.
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by petre on Tuesday July 06, 2021 @12:40AM (#27744280)
Chinese companies have focused on RISC-V as an alternative to ARM since the export controls. The thing with their chips is that SDK support is somewhat lacking? This is my conclusion after working with the extremely popular ESP devices.
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by shifto on Tuesday July 06, 2021 @05:47AM (#27746102)
Are you talking about the riscv esp32-3c SDK? Because I think the Espressif SDK has really matured over time for their other cores.
Re:XiangShan open-source 64-bit RISC-V processor to rival Ar... by petre on Friday July 09, 2021 @02:44AM (#27781050)
The documentation is far from top notch. Compare it with Zephyr OS documentation and you'll see quite a difference.