Skip to content

Commit

Permalink
Relax comparing memory read data
Browse files Browse the repository at this point in the history
The data is presented in the written register in any case, so all
this was testing is how the data is aligned in the report.
  • Loading branch information
PeterRugg committed Jan 8, 2025
1 parent 60042ee commit da35cad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QuickCheckVEngine/RVFI_DII/RVFI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ rvfiCheck strict is64 x y
checkField True "pc_wdata" printHex (maskUpper is64 (rvfi_pc_wdata x)) (maskUpper is64 (rvfi_pc_wdata y)),
checkField (strict || ((maybe 0 rvfi_mem_wmask (rvfi_mem_data x)) /= 0)) "mem_addr" printHex (getMemAddr is64 x) (getMemAddr is64 y),
_checkField (strict || rvfi_trap x == 0) "mem_wdata" (compareMemData is64 x y rvfi_mem_wmask rvfi_mem_wdata) "", -- TODO: context
_checkField (strict || rvfi_trap x == 0) "mem_rdata" (compareMemData is64 x y rvfi_mem_rmask rvfi_mem_rdata) "" -- TODO: context
_checkField strict "mem_rdata" (compareMemData is64 x y rvfi_mem_rmask rvfi_mem_rdata) "" -- TODO: context
]
printHex x = "0x" ++ showHex x ""

Expand Down

0 comments on commit da35cad

Please sign in to comment.