Article View: comp.arch
Article #557Re: Register windows
From: Paul Clayton
Date: Thu, 05 Nov 2026 03:45
Date: Thu, 05 Nov 2026 03:45
150 lines
9428 bytes
9428 bytes
On 10/31/26 4:44 PM, MitchAlsup wrote: [snip] > I see similar (at a smaller scale) when my cores perform CoIssue > (similar to instruction fusing, but designed to leverage RF ports > across instructions. A CoIssued instruction requires no more RF > ports or rename ports than any 'random' instruction can use. I think I would view CoIssue as a limited form of superscalar execution that has fine-grained hazard detection. With support for worst-case execution of three-source, one- destination instructions (e.g., no source coming from the forwarding network) and wide fetch (reducing fetch energy), there would be more opportunities for two-wide execution in a nominally one-wide design. I would guess that even two-way register banking would expose even more opportunities for dual issue at the cost of more complex hazard detection. (A 50% chance of two-wide issue enabled when base CoIssue is prevented only from the two instructions each having a register destination. Clever register allocation could increase the frequency of two-wide execution.) Adding such execution opportunities might then incentivize increasing execution resources, pushing the design closer to a conventional two-wide superscalar. (Even wider register access support for load/store multiple operations — ENTER/EXIT, context switch, etc. — might sometimes effectively provide more register ports, though I would have guessed that banking would not have that much more overhead.) Supporting two register destinations would presumably complicate the forwarding; limited forwarding would introduce another hazard to detect and potentially extend such to single issue. Borrowing across cycles could also support wider execution. E.g., if two instructions cannot CoIssue because both instructions read two registers, the earlier instruction could CoIssue with a pseudo-instruction that moves one register source from the later instruction into a buffer. The next cycle the first instruction would have only one register source (and one buffer source), and so would have a better chance of being eligible for CoIssue. Stores may also tolerate delayed register read. An indexed store might normally be ineligible for CoIssue (having three register sources), but might be able to borrow a register read port from the next cycle. [I do wonder if it would be practical to detect/express that a result is only stored. A Decoupled Access/Execute architecture could simply use a register name to indicate result being sent to the store queue (execute-to-access queue). This effectively partially fuses a computation instruction and a potentially substantially later store instruction, removing the need for allocating a destination physical register and using a register write port and possibly a register read port for the store (the store data might be supplied by ordinary forwarding in a conventional design).] Dependent instructions would present opportunities for later wider execution as one register operand would be from the forwarding network and one or more register sources could be read earlier and buffered. Borrowing a register write might also be possible. With a memory-access stage before writeback (classic 5-stage pipeline), it might be possible for the register write slot from an immediately previous no-register-write execution to be borrowed (inserting the write into the second forwarding slot). Borrowing a write slot from the following execution cycle > Since STs do not write to RF, STs can be CoIssued with any following > calculation instruction (or branch instruction). Presumably excluding indexed loads, which read three register sources? With four register read ports, an indexed load could CoIssue with an immediate-using calculation instruction (or an instruction getting one source from the forwarding network), but I thought only three read ports were the design target. > Since conditional Branch instructions do not write RF, they can be > CoIssued with previous calculation instruction. Presumably this is not possible if the branch is dependent on the result of the calculation instruction. (A branch might also be CoIssued with a following calculation instruction if the calculation instruction can be annulled, which might not require much more hardware if predication is implemented by suppressing register writes when the predicate evaluation is delayed. This wastes some energy.) > STs and <conditional> branches make up 30%-odd of instruction stream: > so, the decoder looks to be processing 1.3 I/c in a 1-wide implementa- > tion. > > There are other potentials--but since this is not close to RISC-V's > instruction fusing, I had to use a different word. It is not clear to me that a separate term is needed. How is CoIssue distinct from superscalar execution with management of register read and write port hazards? Not having to look at the register names to determine potential CoIssue has some advantage, but a one-register source instruction could also CoIssue with a two-register source if two register destinations were supported without looking at the register names. If two-way banking was used only one bit from each instruction would have to be compared to enable two register writes. (The extra forwarding complexity to support two register writes might make more general superscalar execution a better choice.) If register port count is the primary constraint, a three-read, one-write register file could support a slightly broader set of instruction pairings. Two-read, one-write, and one-read/write could support even more diverse pairings, some detectable just from the opcode (two one register source instructions). Two-way banking presents even more two-wide execution opportunities. An instruction following an instruction with a register destination would have to check for a dependency, which would presumably delay register read or force instruction result nullification and instruction replay (wasting energy and adding some complexity). Since a branch can CoIssue with a previous calculation instruction, this case already needs to handle a potential dependency. A skewed or second-chance pipeline (skewed: address generation is one or more stages before execute; second-chance: branch and perhaps other instructions can execute in an earlier execute stage with address generation or a later stage) is another superscalar variation. (Counterflow pipelines [Robert F. Sproull et al., "Counterflow Pipeline Processor Architecture", 1994] are reminiscent of second-chance pipelines and cascaded execution.) 1.3 wide execution may be preferred over 1 wide or 1.9x wide (not allowing two memory access instructions, two multiplies, or two branches, but allowing most other instruction pairings); faster than 1 wide and simpler than 1.9x wide. Such would also be faster on integer code than early FPR+GPR superscalar. Not being a hardware designer, I do not have a feel for how much complexity (and delay) more flexible superscalar would add. *IF* register file port count is the _only_ significant constraint, more general two-wide execution seems reasonable. A lot of instructions use an immediate for one operand or get an operand from the forwarding network, and banking would increase the effective port count. Yet I must assume that CoIssue is a good design point, which indicates that hardware overheads (and not mere design complexity) make 1.5 wide execution excessively expensive.
Technical Details
Message-ID:
<11clehe$2snva$1@dont-email.me>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:
<vpufbv$4qc5$1@dont-email.me> <2026Oct26.193309@mips.complang.tuwien.ac.at> <11bob96$3af$2@gal.iecc.com> <11bpggu$1961c$1@dont-email.me> <1793120292-5857@newsgrouper.org> <2026Oct29.171118@mips.complang.tuwien.ac.at> <1793296454-5857@newsgrouper.org> <2026Oct29.190945@mips.complang.tuwien.ac.at> <1793305885-5857@newsgrouper.org> <2026Oct30.080654@mips.complang.tuwien.ac.at> <1793385253-5857@newsgrouper.org> <2026Oct31.091342@mips.complang.tuwien.ac.at> <1793470952-5857@newsgrouper.org> <2026Oct31.201546@mips.complang.tuwien.ac.at> <1793479457-5857@newsgrouper.org>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: Paul Clayton <paaronclayton@gmail.com> Newsgroups: comp.arch Subject: Re: Register windows Date: Wed, 4 Nov 2026 22:45:12 -0500 Organization: A noiseless patient Spider Lines: 150 Message-ID: <11clehe$2snva$1@dont-email.me> References: <vpufbv$4qc5$1@dont-email.me> <2026Oct26.193309@mips.complang.tuwien.ac.at> <11bob96$3af$2@gal.iecc.com> <11bpggu$1961c$1@dont-email.me> <1793120292-5857@newsgrouper.org> <2026Oct29.171118@mips.complang.tuwien.ac.at> <1793296454-5857@newsgrouper.org> <2026Oct29.190945@mips.complang.tuwien.ac.at> <1793305885-5857@newsgrouper.org> <2026Oct30.080654@mips.complang.tuwien.ac.at> <1793385253-5857@newsgrouper.org> <2026Oct31.091342@mips.complang.tuwien.ac.at> <1793470952-5857@newsgrouper.org> <2026Oct31.201546@mips.complang.tuwien.ac.at> <1793479457-5857@newsgrouper.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 06 Nov 2026 20:49:51 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3039210"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UqAKCITpHu5qWhp0FBgDHym58111b7aw="; posting-host="05cb568412db26d811c55d3340e2d5f4" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:140.0) Gecko/20100101 Thunderbird/140.0 Cancel-Lock: sha1:sGfSKoCZl6e5b9DhReRVAXx1NkY= sha256:zPPlidULojTH5Qu3qgwXTsPjObSPEmP6qvZDNCYd1qY= sha1:n9M6NWV4S9YWLSNCJ+u0giIeetc= sha256:RmLupjOAYKtVJUkXVGDdunlQqfs/MtCv70fd1BY8KnI= In-Reply-To: <1793479457-5857@newsgrouper.org>