News: 1625569411

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Chinese chipmakers look to topple Arm's Cortex-A76 with XiangShan RISC-V design

(2021/07/06)


The Institute of Computing Technology at the Chinese Academy of Sciences (ICT CAS) has showcased progress on a fully open-source processor, designed around the RISC-V architecture, which it hopes will offer competition for Arm parts at the performance end of the market.

Developed from the opening of a GitHub repository to booting Debian Linux in a matter of months, with work currently progressing on a higher-performance second iteration, XiangShan, or "Fragrant Hills", comes with bold promises first spotted in the west by [1]Heise magazine . Once optimised, its creators claim, it will go toe-to-toe with Arm's top-end Cortex-A76 processor cores – and it will do so while being available under an open-source licence.

Designed with performance in mind, the first-generation XiangShan processor is an out-of-order design with an 11-stage pipeline depth, six issue width, and four memory access components, built for speed. Taped out for production at TSMC on a 28nm process node this month, the part reaches speeds of up to 1.3GHz with a benchmarked performance claimed at seven SPEC CPU 2006 points per gigahertz.

Arm-killing performance still a pipe(line)-dream

In other words, it's not quite living up to its Arm-killing hopes just yet. "The performance-to-power ratio of the [Arm Cortex-]A73 is very good, reaching a performance higher than that of the XiangShan processor under the width of the second launch [issue]," developer Yinan Xu explained, in translation, in the project's documentation. "The XiangShan is currently six [issues], so the efficiency of XiangShan is not as good as that of the [Cortex-]A73.

[2]Arm chief hits out at 'ill-informed speculation' over proposed Nvidia buyout

[3]Deep neural networks... IN SPAAACE: Vector-enhanced RISC-V chips could give satellites onboard AI

[4]Intel to put SiFive's latest CPU cores into 7nm dev system to woo customers to RISC-V

[5]RISC-V boffins lay out a plan for bringing the architecture to high-performance computing

"Although our long-term goal in the future is to be in line with [Cortex-]A76, it is still in progress. We need down-to-earth iterative optimisation. The purpose of agile development is not to overtake a corner. The experience accumulated by Intel and Arm over the years, we also need to accumulate slowly."

Progress is definitely being made: the second-generation XiangShan processor, which the team is hoping to tape out by the end of the year, is expected to hit 2GHz on a 14nm process node and boasts a higher 10 points per gigahertz result on the SPEC CPU 2006 benchmark – though the team has not explained why it hasn't tested on the current SPEC CPU 2017 benchmark, which replaced SPEC CPU 2006 in June that year.

Free-as-in-speech a key feature

The key differentiator between XiangShan and Arm isn't performance, however, but in the licensing. The processor's design, written in the Chisel hardware description language (HDL) for its claimed efficiency improvements over rival HDL Verilog, is published under the Mulan Permissive Software Licence 2 (MulanPSL2) – a local equivalent to the Apache 2.0 licence.

As a result, it's possible to take XiangShan and mess with it to your heart's content – anything from experimenting with your own modifications and extensions to producing and selling physical chips. Thus far the team hasn't confirmed plans for its own commercialisation efforts but is in partnership with the Beijing Microcore Corporation, which has been named as "the first company to jointly develop with XiangShan."

[6]

While Bao Yungang, executive director of the Research Centre of Advanced Computer Systems at ICT CAS and colleagues may be targeting Arm's top-end parts on the performance side, they're not above borrowing a trick from Intel. Each generation of XiangShan microarchitecture is named after a lake, just as Intel names each generation of its own processors' microarchitecture.

[7]

[8]

The first microarchitecture is dubbed Yanqi Lake (Yanqihu), where some of the students working on the project spent a year; the second is Nanhu Lake (Nanhu), in honour of the 100th year of the Chinese Communist Party (CCP), which was reportedly founded aboard a boat on the lake.

Let's all meet up in the year 2051

"We have a hope that XiangShan can survive for 30 years," Bao claimed, in translation, in a recent presentation on the project. "We have an agreement to get together again in 30 years, and then see what XiangShan will become. However, to realise this desire, there are still many problems and challenges that need to be resolved."

Key among those challenges: scaling the development team up considerably. "The agile design process and platform [we] previously built supports a development team of more than 20 people, which is far from enough," Bao noted. "What we need to consider now is how to build a set of open source, open, and standardised open processes that can support the development of an open source community of 2,000 people."

The XiangShan source code, released under the permissive MulanPSL2 licence, is on [9]GitHub ; Bao's presentation on the topic has been published to [10]Zhihu.com .

[11]

"The XiangShan project excellently demonstrates the power of an open source instruction set," RISC-V and FOSSi Foundation director Stefan Wallentowitz told The Register .

"RISC-V is an excellent candidate to start university and general R&D projects on computer architecture. Running such a project with many students as an open source project up to the point where it gets commercially interesting is an amazing validation of the power of free and open source silicon." ®

Get our [12]Tech Resources



[1] https://www.heise.de/news/Offengelegter-RISC-V-Chip-aus-China-soll-an-ARM-Cortex-A76-heranreichen-6124545.html?wt_mc=rss.red.ho.ho.atom.beitrag.beitrag

[2] https://www.theregister.com/2021/07/05/arm_chief_nvidia_buyout/

[3] https://www.theregister.com/2021/07/01/vectorenhanced_riscv_chips_could_give/

[4] https://www.theregister.com/2021/06/22/sifive_performance_p550_intel/

[5] https://www.theregister.com/2021/06/10/riscv_hpc/

[6] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=2&c=2YOR@H9X1lI35ERHHODOB6wAAAJM&t=ct%3Dns%26unitnum%3D2%26raptor%3Dcondor%26pos%3Dtop%26test%3D0

[7] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YOR@H9X1lI35ERHHODOB6wAAAJM&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[8] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=3&c=33YOR@H9X1lI35ERHHODOB6wAAAJM&t=ct%3Dns%26unitnum%3D3%26raptor%3Deagle%26pos%3Dmid%26test%3D0

[9] https://github.com/OpenXiangShan/XiangShan

[10] https://www.zhihu.com/question/466393646/answer/1955410750

[11] https://pubads.g.doubleclick.net/gampad/jump?co=1&iu=/6978/reg_onprem/front&sz=300x50%7C300x100%7C300x250%7C300x251%7C300x252%7C300x600%7C300x601&tile=4&c=44YOR@H9X1lI35ERHHODOB6wAAAJM&t=ct%3Dns%26unitnum%3D4%26raptor%3Dfalcon%26pos%3Dmid%26test%3D0

[12] https://whitepapers.theregister.com/



frankvw

Cue US concerns about the embedded spy code in these chips and a subsequent embargo in three, two, one...

Warm Braw

They'd be on shaky ground: the HDL is open to inspection. And if you fear the actual silicon contains something different, you can take the HDL and make your own.

Paul Crawford

More likely a concern that they don't have spyware in them!

There is something incredibly ironic that the more trust worthy CPUs might end up coming from an untrustworthy authoritarian regime trying to rid itself of import restrictions and the threat of untrusted hardware.

Is it really super dumb and paranoid ...

Anonymous Coward

To assume that most recentish computer hardware contains in it's innards some sort of deliberately embedded/tinkered with code that makes it easier for agencies/baddies/whoever somewhere, to have a snoop around.

I'd have thought without having to sneak some noughty code etc. in by the backdoor, there are already plenty enough handy exploits or whatnot for use by ne'er-do-wells, ready and waiting, just due to regular happenstance/mis-cut-and-paste/fookups etc.

Synthesize your own

elsergiovolador

If you haven't, get one of the FPGA boards and synthesize your own RISC-V core.

Try add your own instructions and then add them to gcc toolchain.

It's much better than Sudoku.

Re: Synthesize your own

A Non e-mouse

But is a FPGA synthesized core as fast or as energy efficient as a physical CPU?

Re: Synthesize your own

elsergiovolador

Yes and no. Really depends on your use case. It should be faster than many microcontrollers and if you implement certain operations in HDL that you would otherwise implement in software, you can get some advantage over off the shelf CPUs.

I would say that this is more to test drive the design before actually committing it natively to silicon or just for fun.

Timto

We never did anything interesting like this at University.

Complete waste of tens of thousands of pounds.

Having opensource hardware might be a problem if ARM decide to launch a massive sueball.

first spotted in the west by Heise magazine.

Smirnov

Heise isn't a magazine, Heise is the name of the publisher which happens to publish a number of technology related magazines (such as c't, ix, Mac&I) as well as a number of online publications (such as TechStage or Heise Online, which is a news section).

ISA isn't that relevant

Elledan

The ISA is only a small part of a processor's performance. As China has demonstrated with its MIPS and x86 processors so far, they just do not have CPU designs that are refined enough to compete with offerings from Arm, Intel or AMD. Slapping on another ISA on the same anemic core isn't going to make it magically run faster, especially when RISC-V and MIPS are essentially identical RISC ISAs.

This is just a Loongson-style CPU with a slightly different ISA.

"The Soviet Union, which has complained recently about alleged anti-Soviet
themes in American advertising, lodged an official protest this week against
the Ford Motor Company's new campaign: `Hey you stinking fat Russian, get
off my Ford Escort.'"
-- Dennis Miller, Saturday Night Live