143 points · by zdw · 3y ago · 140 comments
So... their cores are great, but if I'm only going to see them if I write a very large check to SiFive, they're sort of irrelevant to my world. I would love to have SiFive IP that doesn't use Rocket/Scala/Chisel and does produce catalog parts.
That could be just me. I enjoy getting my hands dirty.
Personally I'm more curious about RISC-V in tiny microcontrollers, and were I guiding semiconductor strategy I'd be way more concerned about ability to build embedded systems than GPU farms. The ecosystem to do the former can evolve into the latter, but skipping to the end is just a route to burn absolutely billions.
IIRC, the RISC-V spec includes an "embedded profile" that specifies a CPU with 16 32-bit registers, so that should make RV32 even smaller than it would be otherwise. SiFive designed a dog-simple 2-stage pipeline 32 bit core that could even run without I-cache. I mean, it's not a speed demon, but it was implementable in many fewer gates than their earlier E cores.
I worked at SiFive for a year and couldn't make sense of their product strategy. But maybe that's a me problem and not a SiFive problem.
I really do sort of wonder what they're doing with 175m in Series F funding. Where do you go from there?
Well, you drove a Bambino on a 60 miles each way commute over a huge hill, so there's something questionable going on there :p
I can't see much wrong with the "start with microcontrollers, work your way up to single-issue Linux-capable, then dual-issue in-order, then small then bigger and bigger OoO" strategy.
What else can you do? Try to take on Xeon day #1?
On the other hand, sure, you can ask a lot of questions about how you take that to the market, and who the customers will be.
SiFive early on obviously thought there were a lot of people out there who really wanted to make little custom chips for this and that but didn't have the skills, and SiFive (via buying OpenSilicon) could provide a one stop shop. And even provide a lot of automation around that, in the SiFive Chip Designer -- there used to be a web page (similar to SiFive Core Designer) but it's long gone, but see e.g. this Yunsup's presentation https://www.youtube.com/watch?v=pxd93jb1OAk
It seems no one really wanted to do that -- or at least SiFive didn't find them. So they got rid of OpenSilicon again (at a HUGE profit) and seem to be just selling CPU core IP to people who were already making chips, had all the people and knowledge to do that, but just wanted to change away from Arm or Tensilica or 8051 or whatever.
> what they're doing with 175m in Series F funding. Where do you go from there?
That's still absolute chickenfeed compared to what Intel or AMD or probably Arm spend on designing a single core.
https://ocw.mit.edu/courses/6-004-computation-structures-spr...
Via MPW and assembly service one can easily have that die manufactured, packaged and mounted on custom PCBs for under $50K, a.k.a. much less than you'll pay in salary to have it designed, fabricated and tested. Even at non-American labor rates.
In 2023 producing a computing core, albeit not a state-of-the-art one, is just not the moat it once was...
The only true thing that could be done is to have some top secret insight into CPU design optimization and apply it to RISC-V guiding the actual open spec along with you as necessary. Which is close to what Apple appear to have done with ARM64, but then Apple did hire/acquire an absolutely incredible team to get them there, and have the money to reward them.
How about SERV... That core can be configured to not use a register file (everything stored in BRAM).
But yes... this led us to a working style where we tried very hard to avoid having to use rocket or boom generators. I didn't want to be in the business of maintaining RISC-V Verilog tools. At around the same time we realized RISC-V was overkill and built a very poorly designed Lisp DSL which output Verilog for a dog-simple 6-bit controller. Not an ideal solution to be sure, but it worked better for us than spending a couple years learning Rocket/Scala/Chisel.
Nick Tredennick (who I believe was the main designer of the 68k) has a quote in his book "Logic Design: The Flowchart Method":
The problem with many texts is that we lie about
details. We are sloppy in areas that are not our primary
concern. Academics are method fanatics. Practitioners
are solution fanatics. In school, we glorify the methods
and lie about the sophisticated problems we solved. In
industry, we glorify the problems and lie about the
sophisticated methods we used. Each side loses
credibility the minute one side reads the other's
literature. The academic knows that the practitioner's
"method" is (ugh!) arbitrary, just as the practitioner
knows the academic's "solution is (ugh!) not applicable.
Because we oversell method and solution, it takes too
long to figure out what really works.
I don't want to say Rocket / Chisel / Firrtl is bad, but it always seemed to be more in support of a "process focused" methodology than the "solution oriented" focus I'm used to. If it works for you, I'm absolutely not going to tell you it's a bad idea to use it. It's just too much overhead for the small projects I work on.That being said... SiFive was working on CoC (theorum prover) extensions to validate designs using formal methods. THAT sounds fascinating, but I'm not sure how they would monetize it.
[Edit: To recap, I don't have a problem with Rocket / Chisel / Firrtl per se, but they operate at a level I'm uncomfortable with and seem to be less stable than I would prefer. I completely understand this is not the case for many other people.]
Synopsys seems to think it's a decent business to be in. :)
https://www.synopsys.com/verification/static-and-formal-veri...
By the way StarFive were SiFive China until SiFive divested them (the split was a bit acrimonious).
RISC-V is only interesting as a platform for a different business model.
If ARM decides to change their license terms, you are screwed. If SiFive decides to change their license terms, you could just switch to a competing IP vendor without any changes to your software ecosystem.
Nevertheless it seems plausible there are companies that would like to license a RISC-V design (rather than implement their own or use one of the slower free cores) and might therefore be a SiFive customer. I'm not saying it's going to be a huge market, probably a much smaller one even than Arm, but it's a possible one.
ARM is making peanuts compared pretty much all the companies that actually make high-end chips. Their IP seems to be worth much more than the business.
On the one hand you have ARM investors wanting them to extract more revenue, and the ARM customers do not want to pay more or have more restrictive licenses. They are in a bit of a nasty equilibrium but one that will hit all IP companies eventually.
An old colleague of mine has got into the idea businesses are now going to put the big squeeze on all suppliers that count as part of gross margins, which would include ARM, while essentially ignoring operational costs. The implication would be companies looking to use RISC-V would be more inclined to pay chip design houses on a contract basis more upfront than have anything including royalties. I dislike the idea but think he is right, and that the future of electronics is about to go through the same sea change that software did with open source and the emergence of SaaS.
ARM is a fabless pure play IP house. The big bucks are not in IP design but in manufacture.
That's another thing they have in common with Arm.
Yes. That's where the big money is. It seems their current top-of-the-line core is on par with an A72 or A77. I'm not sure how it stacks up against an Apple M1.
My take on SiFive is it's at the point that it COULD compete, but they have to get more mind-share. If you're Samsung or Apple (or MediaTek or Allwinner or Rockchip or ...), you probably have experience with the ARM ecosystem and tools. Presumably you have a history with a business model and have factored in whatever royalties you're paying ARM into your cost of operations. It's a risk to set that aside and start using a different architecture, so you would want to have some quantifiable benefit before you ditched ARM for RISC-V.
It seems to me that clearly elucidating that benefit to potential customers is an important part of this equation. SiFive's earlier designs seemed to have smaller PPA numbers, so that's nice. But they were for in-order execution w/o macro fusion or speculative branching, so they were a little closer to A53s in performance per watt. If you had a RV64 design with the performance per watt of an A77, but with a power/area budget 20% lower, that might have a REAL impact on yield and cost.
That would be a thing to crow about. But that's not the type of crowing I see happening on the SiFive web page.
I keep thinking a catalog part with maybe a pair of U-54s, a pair of 270s and a pair of 670s plus typical SoC peripherals would be a great way to introduce developers to what SiFive designs could do. They could give dev boards to Samsung, Zero, Google, LTE engineers who could tweak the existing android RISC-V android images to get an idea for performance and power use.
Maybe they could sell Apple on the idea of acquihiring SiFive. Apple's never been skiddish about changing processor architectures or suppliers.
So... to recap... I'm thinking catalog parts mostly as a vehicle to prove to potential customers your IP can be fabbed to meet their power / performance / yield / cost targets. And if I can buy a couple hundred of these boards for a different project, then I'm even happier.
Their current core, the P870 (the subject of the post we are commenting on) is on par with Cortex X2, announced just over 2 years ago in May 2021.
A76 class was the P550, announced in June 2021, 3 years after the A76's May 2018 announcement.
A72 class was their U84, back in October 2019, 4 1/2 years after the A72's February 2015 announcement.
The time gap has been coming steadily down.
All of these cores, both Arm and SiFive, take about four years to get into cheap mass produced catalog part chips and boards e.g. the A76 RK3588 just started appearing in SBCs around May 2022. A72 to Pi 4 was 4 1/2 years.
I don't know how much you can pick up a JH7110 with four 1.5 GHz U74s (plus that S7) for, but Milk-V are selling a compute module board with one for $34
https://arace.tech/products/milk-v-mars-cm?variant=423421722...
Oh I don't disagree, lowering the cost to field a system out of your micro-architecture increases the likely hood a design engineer will design it into their own design. This effect singlehandedly sustained the x86 product line until it didn't.
It probably wasn't obvious from my earlier comment, but I was comparing SiFive to ARM and then I was comparing SiFive with other RISC-V IP vendors (and open source projects.)
I hope that most code won't use LMUL=1, but LMUL>=1 when possible, otherwise we'd leave performance on the table.
The only case I can currently fore see where using LMUL=1 and manually unrolling instead will likely be always beneficial is vrgather operations that don't need to cross between registers in a register group (e.g. byte swapping).
> As with all new architectural features, we’ll have to wait and see how useful RISC-V’s LMUL will be.
RVV without LMUL would be a lot worse, the entire extension is build around the LMUL concept and it's really nice to work with imo.
What about algorithms where register pressure is an issue?
I think the problem with LMUL is it assumes that you always want to unroll the innermost dimension (where the vector loads are stride 1). That's usually, the last dimension I try to unroll, if there are any registers left over. If there is any sharing of data across any other dimension in the algorithm, it's better to tile/unroll those first.
Of course, for a simple algorithm, there will be registers left over. But I think more interesting algorithms will struggle on RVV if you must use LMUL > 1 for performance.
Then you'll probably saturate the processor without using a larger LMUL, but I think many algorithms can work with LMUL=2, without running out of registers.
Being able to use LMUL as a way to get the effect of unrolling and hide the pointer bumps and loop control on simple loops on narrow processors, without expanding the code, is just a bonus.
This is somewhat of a major problem with some kernels. RVV is quite spartan in the permute options it offers, often forcing you to use vrgather for many things. And as you suggest, vrgather doesn't scale well, so sticking to LMUL=1 seems sensible in a lot of cases. (this will also be a problem for RISC-V implementations that aim for longer vectors)
Honestly LMUL>1 could be more useful if more permute instructions were offered, particularly a restricted shuffle (like VPSHUFB on AVX or TBLQ on SVE2.1).
Stuff like vector constants can be more costly with LMUL>1, since they must consume more than one register.
On big cores, the only benefit LMUL>1 gives (other than design concepts like how widen work, or shuffling across vectors etc) is a code size reduction. Which is quite a dubious benefit for a somewhat complex feature.
Maybe smaller cores can extract more out of it, but it's not something I'm too knowledgeable about.
Also code size reduction can be pretty nice. It doesn't show up well in microbenchmarks but lowering load on the front end of your CPU is always nice. It means you get to save a little power or use the area for extra execution units.
RVV spec doesn't allow LMUL to vary across cores in a hybrid design, so no, that doesn't work. RVV doesn't do anything to help with hybrid cores with differing widths.
> It means you get to save a little power or use the area for extra execution units.
Power, maybe, but I don't see the rest being likely. For general purpose cores, you're going to need a wide enough front end to support scalar code, which tends to have more execution units than vector.
https://tenstorrent.com/risc-v/
...But I am starting to get suspicious of Tenstorrent. Maybe they have some customers using their designs privately, but I never see any of their hardware used in public.
Why on earth would you expect to already be falling over hardware in 2023?
CPU core design takes a couple of years, getting to the first test chips a couple more, and then to mass production a couple more after that.
I am also suspicious because their 12nm, 2021 Grayskull PCIe cards never materialized:
> We’ll be selling Tenstorrent AI PCIe cards, workstations, and servers soon. Stay tuned for availability.
(no concrete promise, thus not late)
In the Machine Learning startup field, RISC-V is the most popular choice these days.
RISC-V also becomes a national priority for China as far as I can tell, it won't surprise me the best RISC-V designs will be from there.
Why are TLBs so small? Are they super expensive or what? With 32 entries TLB it can cover only 1 Mb of RAM if using legacy 4k pages.
I wonder how many GHz this µArch would reach with TSMC 3nm.
I think the meaningful question is when we'll see RISC-V CPUs that are performance competitive with x86 or ARM CPUs. In that case, probably not in the near future, at least not for several years at least. x86 and Arm CPUs have decades of optimization behind them. That's the CPU designs themselves, and also compilers, etc. RISC-V has a lot of catching up to do, and Arm and x86 aren't static targets.
That isn't to say that RISC-V won't catch up. There's real momentum behind RISC-V. Also, the development of software built using machine learning introduces wildcards and the possibility of disruption. So in the medium to long term (end of the decade, maybe?) we might see interesting cell phones or laptops that are useful for more than Hacker News tinkerers. I'm looking forward to them.
>when we'll see RISC-V CPUs that are performance competitive
As you said, Arm and x86 aren't static targets. So while they'll catch up to where Arm is today, Arm will be somewhere further ahead at that point. Especially as implemented by Apple silicon. My concern remains that Apple will have to investment strength to always be a few years in the front. Their lead could in fact increase. And that's just CPU.
Also pioneer pricing, as can be expected. But it has uATX form factor, ddr4, pcie3, usb3, sata3 connectivity. You could certainly build a nice desktop with it.
When I seen this Milk-V Pioneer platform I was very enthusiastic: looks like what I need (minus IPMI, but I can omit this requirement) - one slot for 10G network, one slot for HBA, M.2 slots for caches, I can select RAM (in opposite to most of these platforms, where RAM is soledrid-on), plus ability to experiment with new platform. Looks perfect.
But... $1499?! Plus VAT to import to Europe?!
Sorry. I pass :-(
Why does it cost SO MUCH!?
It's the same for the Talos II using IBM's POWER. It costs a lot because a) it is designed as a workstation and b) the volume just isn't there.
Economies of scale basically.
Because it is their first generation chip, thus small production run.
You can either wait for the next one (SOPHON SG2044, with V 1.0 extension, TBA 2024) or get something that's mass-produced now, such as SBCs or tablets based on the JH7110 or TH1520 SoCs.
I haven't seen any news on since January, and no concrete shipping date. I signed up on the announcement email list and haven't seen anything there either (or at least I think I signed up; I don't even see an acknowledgement email.)
That's not really a criticism or doomsaying about Intel or SiFive from me -- I'm really interested to see what they have -- but they could do with a better communication strategy.
Actually 2024.
SiFive P870, Tenstorrent Ascalon, SOPHON SG2044, Ventana Veyron, and more.
To directly compete with AMD/Intel they are going to have to be within the same ballpark of performance and cost about the same and consume about the same amount of power. There is simply no way in hell that is going to happen in 2024, not with the amount of catchup they have to do. Even Tenstorrent's own Jim Keller expects their Ascalon to be behind Zen 5 in raw performance / GHz, and Ventana's slides show it barely beating 2021 CPUs[1] which are in turn already massively outperformed by current-gen ones[2].
I fully expect a few RISC-V products to be only a generation or 2/3 behind within a couple of years, but that is simply not enough to be a direct competitor.
[0]: https://arxiv.org/pdf/2309.00381.pdf
[1]: https://www.servethehome.com/ventana-veyron-v1-risc-v-data-c...
[2]: https://www.servethehome.com/amd-epyc-bergamo-epyc-9754-clou...
Add 3-4 years for cores to make their way into CHEAP mass-production hardware. People who describe this as "not in the near future" are probably still in school.
Not a decade. For sure not "at least a decade".