Banked register files

Liste des GroupesRevenir à c arch 
Sujet : Banked register files
De : ggtgp (at) *nospam* yahoo.com (Brett)
Groupes : comp.arch
Date : 19. Aug 2024, 23:46:07
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <va0eev$31fml$1@dont-email.me>
User-Agent : NewsTap/5.5 (iPad)
Banked register files, a mental exercise at expanding the register file.

With three operand RISC you have you have three 5 bit register specifiers
using 15 bits.

If instead you have eight banks of eight registers you have a 3 bit bank
specifier and three 3 bit register specifiers for 12 bits.

Now the banks need to talk to each other and so you would add a bit to each
register specifier to tell whether it uses the bank or the base registers,
for 72 registers total, not 64. So a 3 bit bank specifier and three 4 bit
register specifiers for 15 bits, the same as a 32 register RISC chip.

Two operand plus 16 bit offset instructions would need to sacrifice one bit
of offset. Four operand instructions would save a bit.

As an extra bonus you now have another 3 bit field that could be another
source or destination if you are not using the bank register. But with only
eight base registers it can look hard to pull off using 4 or 5 registers at
once. But maybe not if most of the addressing is in the bank registers. The
frame pointer would be in the base registers, as it loads the other
pointers.

The most general case for banked registers is loop unrolling. Eight
registers is not a lot so the first loop may use two banks, but now you
have 4 unrolls that are fairly trivial to set up.

Is this a good idea, maybe, maybe not. This is a mental exercise, it proves
I am mental. ;)

How does banked compare to high registers? Not as good.

Intel could pull off something like this to one up ARM. A new fixed width
instruction set with a nice patent moat, and fits the x86 mindset.


Date Sujet#  Auteur
19 Aug 24 * Banked register files14Brett
20 Aug 24 `* Re: Banked register files13MitchAlsup1
20 Aug 24  `* Re: Banked register files12Brett
20 Aug 24   `* Re: Banked register files11MitchAlsup1
20 Aug 24    +* Re: Banked register files9Brett
22 Aug 24    i`* Re: Banked register files8Brett
24 Aug 24    i `* Re: Banked register files7Robert Finch
24 Aug 24    i  `* Re: Banked register files6Brett
26 Aug 24    i   `* Re: Banked register files5Brett
27 Aug 24    i    `* Re: Banked register files4MitchAlsup1
28 Aug 24    i     `* Re: Banked register files3Brett
28 Aug 24    i      `* Re: Banked register files2MitchAlsup1
30 Aug 24    i       `- Re: Banked register files1Brett
22 Aug 24    `- Re: Banked register files1mac

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal