Article View: comp.arch
Article #585Re: vector length CSR?
From: George Neuner
Date: Sun, 08 Nov 2026 14:02
Date: Sun, 08 Nov 2026 14:02
49 lines
2866 bytes
2866 bytes
On Sun, 8 Nov 2026 07:39:44 -0500, Robert Finch <robfi680@gmail.com> wrote: >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? Certainly not. Element width may remain stable across many operations, but you can expect that different widths may be needed at different times. Vector lengths, however, often change frequently. >If so, they can be stored in a config register. If you are referring to a separate (Cray style) vector processor, or to a streaming unit, the width and length would be in setup registers in any case. >Otherwise, if they need to be changeable on a dynamic >basis they would have to be processed like a GPR with renaming etc. >Updating a CSR is rather slow as updates do not take place until commit >time. You can't change the setup while the vector unit is operating anyway. However, there is no reason changes can't be queued to happen as soon as the unit is finished. >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. "On the fly" meaning what? You can't change the setup /while/ the vector unit is in operation. Needing to frequently change element widths and/or vector lengths is the domain of the short-vector SIMD many chips now have. >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 is for the case where the vector unit is separate and asynchronous.
Technical Details
Message-ID:
<sgu0flpndaqltpdbft40fghmi7vk78q2hs@4ax.com>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!.POSTED!not-for-mailReferences:
<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!.POSTED!not-for-mail From: George Neuner <gneuner2@comcast.net> Newsgroups: comp.arch Subject: Re: vector length CSR? Date: Sun, 08 Nov 2026 09:02:18 -0500 Organization: A noiseless patient Spider Lines: 49 Message-ID: <sgu0flpndaqltpdbft40fghmi7vk78q2hs@4ax.com> References: <11cpqih$acf5$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Sun, 08 Nov 2026 14:02:21 +0000 (UTC) Injection-Info: dont-email.me; logging-data="399510"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lLWyVxA73Iu8Lcm+3+GPL48l/x3qHzPE="; posting-host="4cbe7cdac90406cd8f1a90f70e7a2560" User-Agent: ForteAgent/8.00.32.1272 Cancel-Lock: sha1:FLVJrOR0gb+2IpJWX2g36sWXJgo= sha256:ukkOzsq1A2ayR7vaC8vmKVgCyHW6hHYRguvqO7YbfTE= sha1:eNx1b+677cHMMoUmswJwMQCTnkU= sha256:0qClqQ8L3zZRoEitInK/2DRHt6JjDDxfDhojNQgjsLw=