Article View: comp.arch
Article #689Re: vector length CSR?
From: EricP
Date: Fri, 13 Nov 2026 15:56
Date: Fri, 13 Nov 2026 15:56
61 lines
4017 bytes
4017 bytes
On 2026-Nov-12 23:14, George Neuner wrote: > On Tue, 10 Nov 2026 09:03:17 GMT, anton@mips.complang.tuwien.ac.at > (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 > > WRT the Mill, I think people here may be missing that it supported > short-vector-SIMD, and that a vector operand on its belt was a single > element [of whatever width] - not a bunch of scalars that magically > would be operated on together. > > According to Ivan, the Mill's instruction set supported quad FP and > 128-bit short vector SIMD. > [Similar width as Intel's SSE2, though SSE_ doesn't do quad FP.] > > He spoke about the potential for [more lanes] wider SIMD and made > clear that, whatever widths were supported, the "operands" still would > be treated as single belt elements. I didn't know that is how Mill handled SIMD but it makes sense. I was looking at the belt style for how it names results. Regular scalar register files use absolute addressing, eg R1. A belt style RF uses relative addressing, eg belt[N] is the Nth result ago. I've not programmed a belt, or a vector processor but it seemed to me that this relative result addressing might be more in line with what vector programs need in that it inherently names results like an unrolled loop. My exploration had not made it as far as to consider internally packing vector instructions and their operands together for SIMD execution but my intuition says that the belt's relative addressing might make this much easier.
Technical Details
Message-ID:
<sqGJS.25077$s13.18866@fx20.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!fx20.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> <gq0dflh8afjsm6u6jqqihfd047eb7n1mu1@4ax.com>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!fx20.iad.POSTED!not-for-mail MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: vector length CSR? Content-Language: en-CA 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> <gq0dflh8afjsm6u6jqqihfd047eb7n1mu1@4ax.com> From: EricP <ThatWouldBeTelling@thevillage.com> In-Reply-To: <gq0dflh8afjsm6u6jqqihfd047eb7n1mu1@4ax.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Lines: 61 Message-ID: <sqGJS.25077$s13.18866@fx20.iad> X-Complaints-To: abuse@UsenetServer.com NNTP-Posting-Date: Fri, 13 Nov 2026 15:56:08 UTC Date: Fri, 13 Nov 2026 10:56:06 -0500 X-Received-Bytes: 3775