Article View: comp.arch
Article #758Re: vector length CSR?
From: EricP
Date: Sun, 15 Nov 2026 17:45
Date: Sun, 15 Nov 2026 17:45
75 lines
5128 bytes
5128 bytes
On 2026-Nov-13 11:36, Stephen Fuld wrote: > On 11/13/2026 7:28 AM, EricP wrote: >> On 2026-Nov-12 15:43, Robert Finch wrote: > > snip >>> IDK how the belt works. Sounds like a familiar architecture with a conveyor belt of operands bolted on? When does the belt advance? At one point I was trying to re-organize the re-order buffer like a belt. Queueing at one end and committing at the other. The idea was to use a shift register for the re-order buffer. >> >> Its like an accumulator register in that it is the default result output register >> but it has multiple slots that logically act like a shift register array. >> As each new result is output the one at the far end falls off the belt. >> Like a regular register file it is logically committed when a result is written out. > > Yes. I look at it as sort of a fixed length stack (put new elements at the top an push all other elements down) with the enhancement that you can address, for reading only, stack elements other than the top. > > >> Internally it can be implemented as a shift register, or as a circular buffer, >> or as a fixed physical register file with a circular renamer. > > IIRC, the Mill implements it using the output buffers of each functional unit plus each having a "position register" of log2 (number of FUs) bit register that gives that register's position within the stack. Each instruction sets the register corresponding to that instruction to TOS and increments all the other position registers. No actual separate register set and no shifting. I'm borrowing it's architectural model of relative register addressing. Yeah, I skipped over their implementation as I didn't have a good mental picture of exactly how it works. AIUI each Mill FU has a small set of output registers which gives a private write port to its bank. But it also has something to do with instruction latency. And it tracks where each belt slot resides (in effect a renamer). But what happens when all the small set of output registers are full - where does the next output go? Seems like they would have to shuffle everything about. Since each output register can hold a belt value, Mill requires a giant crossbar to route any output register to each FU as a source operand. This looked to me like a register file with a read port for each belt slot, for each source operand. It wasn't clear to me where the benefit of this approach was. I chock this up to me not grokking their internal details. Links to the belt patents are below. >> The difference is in the programming model. >> A regular scalar RF (SRF) uses absolute register number addressing >> while a belt register file (BRF) uses relative addressing. > > Yes. > >> >> With SRF when you write to R1 and that's where the result stays. >> If you want to retain R1 for a later loop iteration then you have to copy it >> to R2 or unroll a loop and assign a different register to each iteration. >> >> With BRF each result is saved to belt[0] and older ones shift up. >> If the belt is 32 slots then belt[31] falls off and is lost unless saved first. > > Yes, although with the Mill (IIRC), the "shift" is logical not physical. Yes, I'm referring to an architectural or logical belt. It is also possible to do an OoO belt with more physical registers than the logical number of belt slots. If anyone is interested the Mill patents are here: https://patents.google.com/?assignee=Mill+Computing+Inc&sort=new The two that seem relevant to the belt operation are: US20150347142A1 - Computer Processor Employing Split Crossbar Circuit For Operand Routing And Slot-Based Organization Of Functional Units https://patents.google.com/patent/US20150370738A1/en US20150370570A1 - Computer Processor Employing Temporal Addressing For Storage Of Transient Operands https://patents.google.com/patent/US20150370570A1/en
Technical Details
Message-ID:
<EcmKS.7241$ML4.5773@fx14.iad>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.iad.POSTED!not-for-mailReferences:
<11cpqih$acf5$1@dont-email.me> <11cr2g5$q796$2@dont-email.me> <11crh64$ug0s$1@dont-email.me> <11crili$ur2d$1@dont-email.me> <11crrs5$118ll$1@dont-email.me> <11crsp0$11gka$1@dont-email.me> <YQsIS.6524$wY2.2685@fx24.iad> <2026Nov10.100317@mips.complang.tuwien.ac.at> <V_oJS.3483$453.1577@fx23.iad> <11d58dp$9i0o$1@dont-email.me> <_0GJS.4474$3J2.869@fx02.iad> <11d7ea6$17qtt$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.iad.POSTED!not-for-mail MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: EricP <ThatWouldBeTelling@thevillage.com> Subject: Re: vector length CSR? Newsgroups: comp.arch References: <11cpqih$acf5$1@dont-email.me> <11cr2g5$q796$2@dont-email.me> <11crh64$ug0s$1@dont-email.me> <11crili$ur2d$1@dont-email.me> <11crrs5$118ll$1@dont-email.me> <11crsp0$11gka$1@dont-email.me> <YQsIS.6524$wY2.2685@fx24.iad> <2026Nov10.100317@mips.complang.tuwien.ac.at> <V_oJS.3483$453.1577@fx23.iad> <11d58dp$9i0o$1@dont-email.me> <_0GJS.4474$3J2.869@fx02.iad> <11d7ea6$17qtt$1@dont-email.me> Content-Language: en-CA In-Reply-To: <11d7ea6$17qtt$1@dont-email.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 75 Message-ID: <EcmKS.7241$ML4.5773@fx14.iad> X-Complaints-To: abuse@UsenetServer.com NNTP-Posting-Date: Sun, 15 Nov 2026 17:45:08 UTC Date: Sun, 15 Nov 2026 12:45:06 -0500 X-Received-Bytes: 4891