🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #664

Re: vector length CSR?

#664
From: Robert Finch
Date: Thu, 12 Nov 2026 20:43
71 lines
4922 bytes
On 2026-11-12 3:06 p.m., EricP wrote:
> 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.
> 
> 
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.

Thinking about the dichotomy of vector registers versus integer and 
float-point ones. Why do vector registers accept either float or integer 
values while the integer and floating-point register files are kept 
separate?

I bin planning on just using a single massive physical register file for 
everything. Just changing the logical register tags to fake separate 
register files. But there is going to be separate register files 
viewable in the ISA. IDK if to have separate register files for vector 
integers and vector floats though. Why not add even more separate 
register files for decimal-floats and posits too?
Technical Details
Message-ID: <11d58dp$9i0o$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.quux.org!wilderland.ovh!ereborbbs.duckdns.org!eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.quux.org!wilderland.ovh!ereborbbs.duckdns.org!eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Robert Finch <robfi680@gmail.com>
Newsgroups: comp.arch
Subject: Re: vector length CSR?
Date: Thu, 12 Nov 2026 15:43:34 -0500
Organization: A noiseless patient Spider
Lines: 71
Message-ID: <11d58dp$9i0o$1@dont-email.me>
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>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 12 Nov 2026 20:43:37 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="313368"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+qTcbLCJVP/8CCEm2JHA/BXF7lr+vOOlw="; posting-host="5722395746fb20f886ca3891fc663b0c"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kgoo6ZP9FWRNI5jlhQwO3qh0kaU= sha256:xMQXg1nU2JrXlHAmTYm0MNF4MFHeseaf6fxOKJzE3l0=
	sha1:jDBOstqtZ668a/GWElZYSfealfc= sha256:FVTbJLYro6JY1sRzuuDaR0jMu4/wYKRTPreZxrXotmg=
In-Reply-To: <V_oJS.3483$453.1577@fx23.iad>
Content-Language: en-US