r/RISCV • • 1d ago

Discussion Vector Floating-Point Complex Arithmetic Extension Proposal by DAMO Academy (XuanTie)

https://github.com/XUANTIE-RV/zvfx-proposal/releases/tag/zvfc-v0.1.0

Note that this is not (yet?) RVIA-approved proposal.

13 Upvotes

2 comments sorted by

3

u/monocasa 1d ago

Can someone explain to me what the point of something like this would be?

Complex arithmetic seems like one of those things that doesn't really gain a speed up versus just a sequence of regular float ALU instructions.

But maybe I'm missing some cute trick that makes a complex alu hardware design make sense.

3

u/omasanori 1d ago edited 20h ago

This proposal assumes a memory layout that interleave real part and imaginary part. Imagine a vector of pair of float. In this case, the V extension needs segmented load and store to de-interleave values, which is usually slower than regular load and store. With this proposal, you can use regular load and store.

In other words, if the data is already de-interleaved (i.e. a pair of vector of float), the advantage of this proposal losses. IMHO, this proposal indeed has its value with a small area increase, but is not worth a mandatory extension for general-purpose profiles like RVA.