-
Notifications
You must be signed in to change notification settings - Fork 270
Is the constant value of SLEN architecturally visible? #233
Comments
It's computable by putting a known pattern into a register group and examining the group with a different SEW/LMUL ratio. I believe the following will put SLEN into t0. (Note that vmv.x.s ignores LMUL, so is effectively accessing the register group with a different SEW/LMUL ratio than the vid.v instruction wrote it with.)
|
It seems OK. Very inconvenient model for programmers. Why SLEN ≥ 32 but not SLEN ≥ 8 (min SEW) or, for example SLEN ≥ ELEN? |
It shouldn't be inconvenient for programmers in practice. Following the code-generation rule that the SEW / LMUL ratio be held constant for a strip-mine loop, SLEN should be invisible to the programmer. @kasanovic would have to comment on why SLEN ≥ 32. |
It would be nice to give an example for VLEN=256b, SLEN=64b, SEW=128b, LMUL=4 to illustrate
in addition to the following examples.
|
Do not disturb @kasanovic, please. He is probably very busy. I understand the case of SEW > SLEN, but an example would be useful to others. |
How can I get the value of the SLEN constant?
The text was updated successfully, but these errors were encountered: