Commit 418350e
authored
feat(refill-check): add mask to refill check (#723)
After OpenXiangShan/XiangShan#3051, we have supported low-power
read (read only 5 out of 8 8B-banks) in ICacheDataArray, and in V3, it was
further modified to dynamically compute the mask based on the taken
branch location.
Though, refill-check in difftest does not support masked comparison,
instead it checks entire 512bit, so it will fail if we enable checks on
cacheid >=3 (#712). As we're refactoring ICache recently, we need
this check to ensure the refactored code is working properly.
Therefore, this PR tries to introduce masked refill-check, each mask
bit controls comparison of 8B data.1 parent 105be59 commit 418350e
2 files changed
+5
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
318 | 319 | | |
319 | 320 | | |
320 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
949 | 949 | | |
950 | 950 | | |
951 | 951 | | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
| 952 | + | |
| 953 | + | |
958 | 954 | | |
959 | 955 | | |
960 | 956 | | |
| |||
980 | 976 | | |
981 | 977 | | |
982 | 978 | | |
983 | | - | |
| 979 | + | |
984 | 980 | | |
985 | 981 | | |
986 | 982 | | |
| |||
1022 | 1018 | | |
1023 | 1019 | | |
1024 | 1020 | | |
1025 | | - | |
| 1021 | + | |
1026 | 1022 | | |
1027 | 1023 | | |
1028 | 1024 | | |
| |||
0 commit comments