Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions

Submissions

comment 5y ago · link · parent

And that happened YEARS ago.

comment 5y ago · link · parent

It's an ISA whose purpose is to be an open alternative for people developing microprocessors. It's actually a (large) family of ISAs, suitable for diverse applications.

The major advantage over rolling your own is that you don't have to develop the tools, and you can leverage quite a lot of software (still growing daily).

The major advantages over going with Arm is that you have the freedom to extended the architecture (in a well-defined manner) and the ISA is completely open and free. You can implement it yourself, use on of many open source implementations, or license the IP from many companies, including SiFive.

Nearly all machine learning startups use RISC-V for this reason, including Esperanto Technology.

Off the shelf chips are slow to come out, but there's a steady stream. The next generation of the ESP32 is RISC-V based and there's also BL602 in the same class.

For desktop (RV64GC)[1], I'm not aware of any chips for sale, but SiFive sells motherboards with their chips.

I expect a lot more RISC-V silicon in 2021, including RV64GC capable parts.

[1] see my rant elsewhere of why the "C" part is a !@#$ disaster.

comment 5y ago · link · parent

Yes this. It took me too long to realize that the “discount” was rarely worth the risk and opportunity cost.

KS is really bad, but there are many other crowd sourcing efforts that are worth backing which wouldn’t be available otherwise. I have backed ~ 4 different FPGA dev board campaigns (not on KS).

EDIT: for example https://groupgets.com/campaigns/868-butterstick

comment 5y ago · link · parent

Ahem, you need to full supervisor support as well with virtual memory (page table walkers, TLBs etc). And atomics. And floating point (etc).

This is all non-trivial and would make the design ~ twice as big and likely impact the cycle times in a rather sad way. But possible of course.

Anecdata: Full RocketChip (RV64GC) built for ECP5 85F comes in at 54k LUTs (out of 84k) and clocked at 14.8 MHz. However, the cycle time is related to the FPU which assumes retiming which yosys can't do. Without the FPU it's a more reasonable 50-60 MHz.

comment 5y ago · link · parent

Facts:

Chisel is NOT HLS at all. Chisel is one of many languages that generates HDL, that is, you describe code to built a circuit whereas in eg. Verilog you just describe the circuit (Verilog has a limited ability to do dynamically with generate statements).

An HLS is one that raise the abstraction. Almost all of them today allows you to write "lightly" annotated C[++] that gets translated into a circuit. Almost universally, the timing relationship isn't explicit at all.

Opinions:

All existing HDLs and HLSes are terrible and there's fertile ground for creating something to really advance the art. Personally I'm looking for something that is more productive that HDLs, but with more control than an HLS. Some promising examples: Handle C, Google's XLS (assuming promised development), and Silice.

comment 5y ago · link · parent

Anecdata: of the 36 projects (not including projects that failed to get backing) I have backed in the past 8 years:

- 4 were outright scams (only 1 was caught and cancelled by KS)

- 32 delivered, practically all were very delayed, sometimes by years.

- Of the 32, most were as promised, but some turned out useless - At least half I regretted buying

One thing that was very apparent (here as IRL) is that software projects runs WAY over the schedule.

I have since completely stopped supporting Kickstarter, unless I'm backing people who I already know of and who has a reputation at stake. There's way too much fraud and useless crap (but "World First Ultimate Crap").

Finally, it's not _all_ bad. The highlights: Klauf Light Bar (use them daily), Exploding Kittens (have played a few times), THIMBLEWEED PARK (love it), [Pocket]Chip, Nebia Shower, Kuroi Hana Knife Collection (use daily), Stingray Non-stick pan (use daily. Note, a 2nd campaign from the Kuroi Hana Knife people).

comment 5y ago · link · parent

Thinking about Ternary is good at exposing the binary bias we have most programming [languages] (eg., we could have to come with with new concepts to replace &, |, ~, << etc).

Worth remembering that the ENIAC was a decimal design but after careful consideration, von Neumann (and pals?) decided that using binary would be more efficient. (Decimal was popular for many reasons).

Binary has great noise immunity and all other coding schemes are inherently worse. It's also a lot simpler to make binary gates than ternary.

comment 5y ago · link · parent

Right. I think Bunnie has very good arguments for how you should approach "security focused" hardware (see, https://youtu.be/w8BA6_9HCzk) and this clearly isn't it.

AFAICT, this has much less documentation than the Itanium, so even from a tinker's perspective, this is really uninteresting.

comment 5y ago · link · parent

Seconded. I had to tweak the spacing, otherwise on it was too condensed on my Mac but the mono version feels slightly less cartoonish to me and is actually not bad at all. At first glance that only thing that annoyed me was that + and - didn't align perfectly.

comment 5y ago · link · parent

Hmm, it's hard to say (and a lot depends on how performant you make the vector loads) but it's really not comparable as the load pairs target any arbitrary (and renamed) architectural registers, whereas the vector load targets a different register file and just a single vector (= much more regular).

comment 5y ago · link · parent

You are right it's x^2 not 2^x. However it's bit worse still because the area grows too which either hurts your timing (longer distances) or forces more stages (power, yet more area, and mispredict penalty).

It simply isn't practically scalable much beyond where we are; if it were, you can be sure Intel would have scaled it instead of using µOP caches.

comment 5y ago · link · parent

I'm aware of this (I've been doing since RISC-V before it was public), but it seems unlikely to me, knowing how these companies operate, that Apple would use RISC-V for anything when they already have extensive HW and SW Arm64 IP, expertise, and infrastructure.

NVIDIA's use of RISC-V is for the internal power sequencing cores and similar tasks. This is not going into the shaders, nor is Arm64. Their future use of RISC-V for stuff like this will probably continue, but it seems unlikely that they will ever release anything with a user-visible ISA based on RISC-V.

comment 5y ago · link · parent

I haven't even attempted to implement AArch64 and only browsed the ISA, but it's all of these things. Instructions are many and some semantics that are more painful, like handling flags which are exactly like mini registers and the load pair/store pair instructions I mentioned. Also, there are more addressing modes which puts pressure on the load path. All this complexity hurts even more when it comes to verification.

comment 5y ago · link · parent

A load pair takes one address generation and one slot in the load queue but returns 2 x 64-bit. It doubles your load throughput at the cost of the complications from an instructions that return two results.

Apple's A14 can issues three loads per cycle. Assuming they can all be load pairs (I don't know currently) that would be 6 loads per cycle. This is frighting :)

The story is similar for store pairs, but probably less important as stores are rarely on the critical path.

comment 5y ago · link · parent

I implement RISC-V for a living and for fun. Arm64 is a very good modern ISA. RISC-V is good too. Comparison with RISC-V must account for the much broader purpose of RISC-V, but just to focus on a few points (I'm not an Arm64 expert though):

* RISC-V (RV64GC) have simpler instructions than Arm64. It's possible it would have a slight frequency advantage given the same implementation resources, but Arm64 might need slight fewer instructions. Notably, Arm64 have more addressing modes. Fusion and cracking makes this mostly a wash, but implementing a RV64 cores is a lot easier than an Arm64 (I speculate).

* Arm64 has load pairs and store pairs; this is a significant advantage.

* RISC-V has no flags and conditional branches directly compares operands. This look like a significant advantage in the code I have looked at and is easier to implement (no flag renaming etc.)

comment 5y ago · link · parent

And this is just idle speculation and I (and I guess Animats) don't necessarily buy. I think RISC-V is doing fine and will grow regardless.

Where more Arm mainstream success will have a slipstream effect on RISC-V is in app porting. There are significant differences between x86 and Arm, notably memory model (AS does support TSO with a flag, but native apps use the weak mode). Porting from x86 to Arm can be non-trivial, whereas porting from Arm to RISC-V is far easier.

comment 5y ago · link · parent

> The frontend decoder hasn't been a frequent bottleneck in Intel cores for a long time and they could scale it up more aggressively if they wanted.

This isn't grounded in any facts. Decoding the variable length x86 ISA costs you exponentially in decoding width, both power and area. You can scale it, but it will never be efficient. The way Intel and AMD combat this is by having a decoded uOP cache from which the issue width is typically twice that of the frontend decoder. Arm64 has an inherent advantage here (RISC-V does not have quite the same advantage as RV64GC instructions are a mix of 16- and 32-bit). Arm64 also is much more recent design than x86_64 that learned a lot from the past experience and isn't bogged down by a lot of useless legacy. This helps.

Arm64 is rather large for a RISC ISA, but it's mostly pretty good (however IMO RISC-V's lack of flags and implementation of conditional branches is superior).

comment 5y ago · link · parent

They bought Intrinsity as well, leaving us wonder about the fate of Fast14.

comment 5y ago · link · parent

You kids are funny - I remember sleeping in the back of our station wagon with my sister while we were flying down the autobahn. (Yes, it seems crazy today).

My main gripe about the car seat is all the damn waste. We have four of them and you can't sell them or even give them away. I'm not sure about the recycling situation yet, but even in the best case not much can be recycled.

comment 5y ago · link · parent

In theory yes, in practice, only under virtualization (though I'm one of https://www.patreon.com/marcan sponsors so maybe one day this will change).

However this is a moot point as Apple doesn't sell what Pine does - Linux device. Apple sell Apple devices. If they incidentally runs Linux is irrelevant to Apple.

comment 5y ago · link · parent

> The retirement stage is some of the most difficult hardware logic to design

[citation needed] There are many difficult parts to a super scalar speculative dynamically scheduled microprocessor, but retirement doesn't even make top 10. If I had to pick, it would hands-down be the load-store unit which is really hard to scale (and has a lot of gnarly corner cases).

> This all may seem inefficient and crazy and it is. Program representation and execution need a major re-think along the lines of the once-investigated dataflow architecture.

I actually agree with the impedance mismatch of our legacy ISAs, but "dataflow" is a bizarre pick as the original formulation was incredibly inefficient and all modern processors (A72 included) are already dataflow machines over a fixed windows of the (partially speculated) path through the program.

There have been a lot of interesting paradigms published, but it's extremely rare for industry to take a risk. VLIW is still a darling (in principle very efficient iff you hit in the caches), but there are a _lot_ of other ideas. Browse through the past few decades of ISCA and MICRO proceedings to see examples.

The cost of making new binaries is always the problem. At Transmeta we used binary translation as the answer for x86 and NVIDIA's Denver much improved upon the idea for Arm. Both use in-order execution which in hindsight didn't seem to have worked out. Alas, dynamic translation of binary code has huge overheads and issues with cold code. There's hope though; if the code you are translating is WASM then you are in a much better place, but still not quite as good as source as you are lacking all the alias knowledge.

[updated typos and grammar]

comment 5y ago · link · parent

My favorite calculator app is Free42 (https://apps.apple.com/us/app/free42/id337692629) which is a (AFAICT) faithful HP-42S reimplementation. Besides the obvious functionality, I really love the haptic feedback (configurable) and the graphics. Recommended (it's also free).

comment 5y ago · link · parent

Maybe you have gotten blind to it? When I first landed in Palo Alto (coming from Europe), I couldn't believe my eyes: 3rd world infrastructure with wires flying everywhere! I most definitely noticed and notice. It's symptomatic of some of the ill that plague Sillicon Valley.

comment 5y ago · link · parent

There is an fundamental complexity in the semantics of x86_64 instructions that makes them expensive to implement. I worked for Transmeta and am at another microprocessor company today so I do have 1st hand experience.

There are other things in M1 that helps make M1-based systems fast. I'm not talking about that. I'm exclusively referring to pure-core performance. It is true that the latency improvement and high-bandwidth of the nearby DRAM does help here, but it is far from the major factor.

FWIW, there's no evidence that TSMC's N5 node is the major factor, beyond letting Apple spend a lot of transistors.

Intel/AMD have so far been able to overcome the overhead with lots transistors and power, afforded by leading edge nodes. Apple is now at the same playing field and especially the power efficiency difference is obvious.

comment 5y ago · link · parent

There's a lesson for all of us to not leap to conclusion.

In the case of the Apple iPhone I didn't see it and only boarded the train by iPhone 4 (and honestly, I think it was about the right time). In the case of M1 I _did_ expect a revolution and frankly one I had been waiting for for decades (the true cost of x86 is finally exposed). I can't wait to see if Apple can keep up the momentum.

comment 5y ago · link · parent

Extended this tangent, the conventional expression for this is "opinionated", but same idea.

comment 5y ago · link · parent

That's brilliant and looks surprisingly usable. I would like to see how this would run on the faster reMarkable 2.

comment 5y ago · link · parent

Based on the "tour of the Jupyter kernel" looks very useful, but unless I'm missing something, it's not immediately obvious how to install and use it.

749.

Esperanto Technologies to Reveal Chip with 1000 Cores at RISC-V Summit(esperanto.ai ↗)

6 points · by FullyFunctional · 6y ago · discuss

comment 6y ago · link · parent

Great example. Seeing as I'm working on my Merced box I felt like commenting on this.

Intel/HP did many things wrong when they designed EPIC. The absence of dynamic scheduling was supposed to have made it simpler and thus have a faster cycle time. Alas it was so bloated when it finally arrived and horrendously complicated that it clock very slowly (mine @ 733 MHz while contemporaries ran at 1+ GHz).

The EPIC designers probably also didn't anticipate the advances in OoO machines that got really good. Trying to statically schedule for unknown load-misses isn't just difficult, it's impossible without code explosion.

EPIC got some things right, but design by committee and betting again dynamic scheduling doomed it.

1
242526
52