Article View: comp.arch
Article #663Re: vector length CSR?
From: EricP
Date: Thu, 12 Nov 2026 20:06
Date: Thu, 12 Nov 2026 20:06
51 lines
3448 bytes
3448 bytes
On 2026-Nov-10 04:03, Anton Ertl wrote: > EricP <ThatWouldBeTelling@thevillage.com> writes: >> I'm not sure what I'm thinking as this idea is very un-baked >> but maybe the Mill's belt concept could be useful. >> >> Instead of treating the register file as 32 32-byte SIMD registers, >> what if it was a 1024 byte belt. A variable byte length LDV Load Vector >> copies a memory vector onto the belt such that element[0] lands in belt[0]. >> Source operands use a 10 bit belt byte offset, >> and dynamic vector length of up to 32 bytes. >> >> Internally its implemented as a circular buffer, >> with byte alignment shifters to right-align (little endian) >> the source operands as they are read for each operation. >> >> There is no renaming because the belt output inherently >> rotates the the whole belt. Internally that would just be >> an byte vector alignment shifter applied to the destination. > > The disadvantage of a belt is that stuff vanishes from the belt (or > you have to preserve it by regularly copying from the end of the belt > to the beginning, so you do not get the advantage of a vector > register, that you can reuse its content as often as you like without > additional costs (useful, e.g., in matrix multiplication). > > IIRC there are vector instruction sets (maybe even RVV?) that > can have more shorter or fewer longer vector registers. > > - anton Just playing around with this belt idea a bit more... Yes it needs other registers. So say it has 32 scalar 64-bit registers that can hold integer or float values, plus a 32 slot belt with 64-bit values, plus 32 vector registers of 8kB each, each with a byte count, and the vectors can be interpreted as 1, 2, 4 or 8 byte elements. Each vector instruction can source its operands from scalar, belt, or vector registers. If it is a vector register then it is implied that the current vector loop counter is the index to the element. The result output goes to belt[0] or belt[1:0] if 128 bit result. To save a belt value it must be copied to scalar, or vector register at the current index, or recycled to belt[0], or to memory. So the belt becomes the equivalent of a forwarding network for vector calculation temporaries that don't need to be saved. Not sure where I'm headed with this... just thinking out loud.
Technical Details
Message-ID:
<V_oJS.3483$453.1577@fx23.iad>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx23.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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx23.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> Content-Language: en-CA In-Reply-To: <2026Nov10.100317@mips.complang.tuwien.ac.at> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Lines: 51 Message-ID: <V_oJS.3483$453.1577@fx23.iad> X-Complaints-To: abuse@UsenetServer.com NNTP-Posting-Date: Thu, 12 Nov 2026 20:06:13 UTC Date: Thu, 12 Nov 2026 15:06:09 -0500 X-Received-Bytes: 3206