🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #619

Re: vector length CSR?

#619
From: Anton Ertl
Date: Tue, 10 Nov 2026 09:03
31 lines
2702 bytes
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
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID: <2026Nov10.100317@mips.complang.tuwien.ac.at>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: vector length CSR?
Date: Tue, 10 Nov 2026 09:03:17 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 31
Message-ID: <2026Nov10.100317@mips.complang.tuwien.ac.at>
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>
Injection-Date: Tue, 10 Nov 2026 09:18:45 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2112944"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18zyd9YsiCOm8SOqO6ZJCmV"; posting-host="751dcd0f8cccb292b049cfbd53940fe7"
Cancel-Lock: sha1:0C+g8/jeJsuFFf3Q3cX29FOgOPg= sha256:lXGEQ6pg+d71YaQKGAupIjHzlp9v9oWNVhyfm/o7/wI=
	sha1:6ILnBpaiB07OR7b6+pw7NGSqEyg= sha256:sirn6gYApmOFZjd4FwKr5PO77aJNG20f3Z56aBV8Ybg=
X-newsreader: xrn 10.11