🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #592

Re: vector length CSR?

#592
From: MitchAlsup
Date: Sun, 08 Nov 2026 18:20
33 lines
2147 bytes
Robert Finch <robfi680@gmail.com> posted:

> I tried asking the web-browser this and it returned a bunch of links to 
> introduction to vectors.
> 
> Am I right in thinking that the vector length and element size are 
> basically stable throughout an application?

Consider Gaussian Elimination, the length of the loop goes down 
by 1 every loop.

>                                             If so, they can be stored in 
> a config register. Otherwise, if they need to be changeable on a dynamic 
> basis they would have to be processed like a GPR with renaming etc. 

Get ready to change them every entry to top-of-loop.
Most CRAY-like vector units have a length-this-time register that
is decremented by vector-register-length every vector-iteration.
On the last iteration, it is used to create a mask of elements
that are not going to be calculated.

> Updating a CSR is rather slow as updates do not take place until commit 
> time.
> 
> ATM the config is just wired directly into the micro-op translate stage 
> which would have really poor performance if things need to be modified 
> on the fly.
> 
> I looked at the RISCV vector extension model and they have it just as a 
> CSR. Makes me think that is an acceptable solution.

It can be, so long as it performs decrement-by-vector-length all
by itself ... 
Technical Details
Message-ID: <1794162004-5857@newsgrouper.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
References: <11cpqih$acf5$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
From: MitchAlsup <user5857@newsgrouper.org.invalid>
Newsgroups: comp.arch
Subject: Re: vector length CSR?
References: <11cpqih$acf5$1@dont-email.me>
Date: Sun, 08 Nov 2026 18:20:04 GMT
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <1794162004-5857@newsgrouper.org>
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user5857
Injection-Date: Sun, 08 Nov 2026 18:20:04 GMT
User-Agent: Newsgrouper/0.9.0