Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

When the value of vstart written through the csr instruction is greater than the vlmax under the current configuration, whether the hardware can be treated as an illegal instruction to implement #904

Closed
Wei-VV1995 opened this issue Jul 17, 2023 · 4 comments

Comments

@Wei-VV1995
Copy link

“The use of vstart values greater than the largest element index for the current SEW setting is reserved”
When the value of vstart written through the csr instruction is greater than the vlmax under the current configuration, whether the hardware can be treated as an illegal instruction to implement?

@aswaterman
Copy link
Collaborator

Yeah, in general, reserved behaviors can be implemented as an illegal-instruction exception.

@Wei-VV1995
Copy link
Author

Thank you very much for your answer !

@Wei-VV1995
Copy link
Author

Wei-VV1995 commented Jul 31, 2023

If vtype.vill=1, is VLMAX equal to 0? If vlamx=0, then any value configured for vstart is treated as an illegal instruction, because in this case, any vstart value is greater than the element index.

@aswaterman
Copy link
Collaborator

Duplicate of #907

@aswaterman aswaterman marked this as a duplicate of #907 Aug 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants