6 ms·
Clockhands: Rename-free instruction set architecture for out-of-order processors
- wood_spirit 3y agoThis is reminiscent of the Mill CPU which had temporal addressing and called the history a “belt”. the Mill was described in an excellent series of talks: https://m.youtube.com/watch?v=QGw-cy0ylCc https://m.youtube.com/watch?v=QGw-cy0ylCc
- 082349872349872 3y agoanyone know the status of the Mill IP? Edit: looks good to mid 2030's, eg https://millcomputing.com/blog/wp-content/uploads/2016/10/uspto9513921.pdf https://millcomputing.com/blog/wp-content/uploads/2016/10/us...
- imtringued 3y agoMill is vaporware. Where is the FPGA version that you can play around with? The Reduceron was developed a decade ago and actually existed on FPGAs and it had an edge over contemporary processors like the Pentium 2 in functional programming workloads. There are modern architectures like Taychium‘s processors that are truly novel and nobody really cares about them. Why exactly would anyone expect the Mill architecture to live up to it's mind share?
- ithkuil 3y agoUnfortunately it seems to be worse than vaporware: it's patentware!
- rbanffy 3y agoSo, all we need to do is to wait for all the initial claims to expire. Chances are they'll expire well before anything based on it is produced.
- carbotaniuman 3y agoA Google for Taychium doesn't show anything, do you have a link or paper?
- pezezin 3y agoGP made a typo, here it is: https://www.tachyum.com/ https://www.tachyum.com/
- yencabulator 3y agoThat video really isn't giving me the vibe this is any more real than Mill, just better funded. I think they failed to mention how their new CPU will also fix world hunger.
- naasking 3y agoYes, they say Clockhands is a straight up a type of belt, which they've patented: https://millcomputing.com/topic/tokyo-universitys-straight-compiler/#post-3958 https://millcomputing.com/topic/tokyo-universitys-straight-c...
- ralferoo 3y agoYeah, I came here to comment that this sounded very similar to the belt. The comment numbered 3929 on the link you provided is useful as it succinctly explains the difference: The addressing (STRAIGHT vs Mill) is different: STRAIGHT refers to the generating instruction in time order, whereas Mill refers to the dropped result. In the hardware STRAIGHT uses a scoreboard approach to block for uncompleted instructions, while Mill uses full static scheduling. Some benefits are shared: no renaming, no encoded result registers. Some are peculiar to one or the other: Mill needs no reorder buffer, while straight need not track instruction retire time in the compiler.
- ralferoo 3y agoActually, after my third reading, I don't think it does infringe on their patent. The last comment on the GP link (3958) states: "The STRAIGHT addressing is not a belt because it uses ordinal instruction addressing, while a belt uses ordinal drop. But the new Clockhands addressing is a belt, pure and simple." But after re-reading the article again, it sounds like it genuinely is an extension of the STRAIGHT system to just add 4 groups of "ordinal instruction addressed" registers rather. It still definitely doesn't fulfil the criteria for "ordinal drop" as described in the comment (by the same author) that I quoted above.
- PoignardAzur 3y agoThe Mill patent is here: https://millcomputing.com/blog/wp-content/uploads/2016/10/uspto9513921.pdf https://millcomputing.com/blog/wp-content/uploads/2016/10/us... I think it covers the STRAIGHT addressing method. IANAL though.
- rwmj 3y ago
- the8472 3y agoWould a CPU still benefit if it supported both a register-renaming mode for backwards compatibility and a clockhands mode for power saving/a wider frontend? Like ARM thumb or x86 32 vs. 64 bit.
- jasonwatkinspdx 3y agoNot likely. The big advantage of this and similar proposals is they replace the massive register file renaming needs with something much more efficient in chip area. It's not just the number of registers/positions, it's that renaming forces a register file with a ton of ports, where chip area grows as the square of number of ports. So a chip that had both physical structures would be very area inefficient, and this is unlikely to be a win on cost, performance, or power.
- ithkuil 3y agoit's not just area, it's also powering the machinery. If you could turn it off for workloads that don't need it, you could achieve a reducing in power consumption. It would be better to also save the area, but perhaps a tradeoff if worth it?
- rbanffy 3y agoUnpowered silicon is great for power management as well. In order to heat up the chip, you'll also need to heat up those dark areas, allowing you to push more power for longer (in comparison with a design with zero spare transistors).
- Dylan16807 3y agoIf you want area that's dedicated to being "dark", put cache there.
- ajb 3y agoYou only need a renamer for out-of-order issue - I guess you could execute a backward compatible ISA using only in-order issue. Still, it doesn't strike me as very likely to be implemented in that way.
- JonChesterfield 3y agoCool, I love weird architectures. This one has attributes in common with an exposed pipeline - the sort of thing where one instruction writes to a register, then the next 10 cycles can read the stale version from that register, and then the 11th will finally see that value. That's cute from a hardware perspective and deeply confusing to program against. It looks like a register in "straight" is a circular buffer which ticks on instruction execution and a register in "clockhands" is a circular buffer which ticks on writes to the register, which would indeed be a substantial improvement. This is another variant of statically schedule lots of code ahead of time, moving work from the hardware into the compiler. Works really well if basic blocks contain many instructions and memory latency is known in advance, at least to within tight bounds, and you put enough effort into the compiler. Traditionally basic blocks are short and memory latency is all over the place, at which point you really want to schedule things at runtime. Hence CPUs and GPUs - both do a load of nominally avoidable work at program runtime. DSP chips and derivatives can sometimes fix memory latency, at which point this sort of static scheduling can be useful, though there's still the ratio of branch to arithmetic to deal with. As an aside, I'm not convinced by their motivating claim that current processors are power-inefficient. x64 / aarch64 / amdgpu seem to get a lot of maths done per watt.
- formerly_proven 3y ago> As an aside, I'm not convinced by their motivating claim that current processors are power-inefficient. x64 / aarch64 / amdgpu seem to get a lot of maths done per watt. Inefficient in the sense that in a general-purpose high-performance CPU the actual work performed by instructions is practically inconsequential compared to the work performed to manage it's execution.
- vlovich123 3y ago> As an aside, I'm not convinced by their motivating claim that current processors are power-inefficient. x64 / aarch64 / amdgpu seem to get a lot of maths done per watt. Why does getting a lot of math done per watt preclude the possibility of a more efficient design? For example, aarch64 is generally more efficient than x64 from a perf/watt metric and GPUs are more efficient for a subset of problems. It’s not hard to believe that existing CPU architectures do not represent the Pareto frontier. For example, x86’s variable length encoding is known to be substandard from an efficiency perspective because the decode frontend can’t extract as much parallelism as a fixed length / aligned instruction set and in today’s machines that would be more impactful to fix than the memory bandwidth saved by a relatively inefficient compression scheme.
- teraflop 3y agoThis is a cool concept! > Loop constants are written to the v hand. > There are eight callee-saved registers, which are written to the v hand, meaning that when it exits from a function, the values in v[0]–v[7] are not changed. Any instruction whose destination is a hand will change the offsets of all previous values in that hand. So am I correctly understanding that with this calling convention, every function that includes a loop must end with eight "mv" instructions, to restore those eight callee-saved registers to the "top" of the v hand? This seems like it would benefit enormously from a special instruction that allows you to decrement a hand's offset by a fixed amount.
- the8472 3y agoThere should be several ways to optimize around this without needing new instructions. Choosing different calling conventions for some functions (e.g. PreserveMost in llvm), amortizing the cost over multiple loops by inlining harder, using other hands instead if the register pressure inside the loop is low, ...
- chc4 3y agoThat immediately jumped out to me as well. I'm not sure their scheme can easily support a "hand decrement" instruction, either, since then the reused physical register might still have OoO instructions in flight using it and you're forced to stall, like they are doing if they loop around the hand ring buffer. You could have an instruction that pushes all of v[0]-v[7] to memory and restores it, like arm32 ldmia/stmdb, I guess?