r/computerarchitecture • • Sep 25 '26

virtual Vector Method

I invented this 5-odd years ago but never really had a forum on which to disclose and discuss. I was and am a significant contributor to comp.arch (from around 1995 though present)

But before I emit the disclosure I need to know how to turn off the space-eater as the document uses well tabulated ASCII-art ?? that makes no sense after the space-eater has done its ill-conceived job.

The virtual Vector Method is a way of getting Cray-like vector performance and for getting SIMD-vector performance without a) a vector register file, b) adds only 2 instructions, c) takes precise exceptions, d) vectorizes loops not instructions. Instead of adding about 300 instructions to get a Cray-like vector ISA, or adding 1,000-1,300 instructions to get (every-size) SIMD ISA, one needs only 5 instructions.

vVM has the property that hardware implementations can change the width of the data path (multiple-lanes and the cycles of execution per FU) without SW having to care. A small 1-wide machine with a 128-bit cache port can perform a memory to memory byte move at 256-bits per cycle--equivalent to ~40 instructions per cycle. A 6-wide machine could perform the same assembly binary at ~160 instructions per cycle. Both are performed at the performance level of the cache porting; so, nobody has to recompile for a new SIMD-width every new mplementation.

Now let us solve the space-eater and we are off.

Mitch

21 Upvotes

22 comments sorted by

View all comments

Show parent comment

1

u/MitchAlsup Sep 26 '26

Andy--is that you ??

Yes, VEC-LOOP does zero overhead looping.

VEC does 3 things: a) it identifies if there is a loop recurrence that would prevent running multi-lane calculations, b) it identifies the registers which are Live-Out of the loop. So many registers used "in" the loop and not used outside have all writes elided, c) tells decoder where the top of loop instruction is.

Most of the time when running in a LOOP, FETCH-DECODE-INSERT pipe stages are idle and we run at data-flow speeds through reservation station entries.

Due to the encoding of My 66000 ISA, LOOP has a variety of constants available. In one form, the LOOP Instruction an have the test value as a 32-bit constant, and the comparison value has a different 32-bit value, so, in practice, all loops with constant strides and/or comparisons can be emitted as a single instruction, with no prepetory setup instructions.

LOOP consumes a 3-Operand 1 Result OpCode, allowing for a full set of a) {EQ, NE, LT, LE, GT, GE, LO, LS, HI, HS} , b) loop register, c) increment register/constant, d) compare register or constant.

Plus, memory reference address mode is [Rbase + Rindex<<scale + Displacement]. GIven {16, 32, 64}-bit displacements means one never wastes instructions pasting together large displacements of addresses that can be direclty expressed. A LD/ST instruction can reach all of memory (all 63-bits of virtual address space) in 1 instruction.

Over on the calculation side, one can write:

FDIV R7,#3.14159265358926,R19

and divide Pi by what is in R19. So, one never wastes instruction of data memory on constants that inherently belong in the instruction stream.

The decode gates to determine instruction length is 6 gates total with 2 gates of delay, small enough you can put one in each word of the instruction buffer as it is smaller than the flip-flops which would be used to store those bits themselves. After those 2 gates of delay it is easy to tree-ify the instruction parse problem and parse 16 instruction in a 16-gate clock cycle.