sail-riscv
sail-riscv copied to clipboard
Added constraint for SXLEN and UXLEN
According to the spec:
- Added the constraint that
SXLEN≥UXLEN
. - When
MXLEN=64
, if S-mode is not supported, then SXL is read-only zero. - When
MXLEN=64
, if U-mode is not supported, then UXL is read-only zero.
This PR adds assertion and some conditional statements to satisfy the above constraints.