Skip to content

Commit 0717b22

Browse files
committed
fix(mem_tester): fix test results checks
1 parent 6f7b081 commit 0717b22

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

comp/debug/mem_tester/sw/mem_tester.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,14 @@ def config_test(
205205
}
206206

207207
def check_test_result(self, config, status, stats):
208+
burst = status['burst_cnt']
208209
errs = ""
209210
if status["err_cnt"] != 0 and not config["rand_addr"]:
210211
errs += f"{status['err_cnt']} words were wrong\n"
211212
if status["ecc_err_occ"]:
212213
errs += "ECC error occurred\n"
213-
if stats['Requests']["rd req words"] != stats['Requests']["rd resp words"]:
214-
errs += f"{stats['Requests']['rd req words'] - stats['Requests']['rd resp words']} words were not received\n"
214+
if stats['Requests']["rd req cnt"][-1] * burst != stats['Requests']["rd resp words"][-1]:
215+
errs += f"{stats['Requests']['rd req cnt'][-1] * burst - stats['Requests']['rd resp words'][-1]} words were not received\n"
215216
if not status["test_succ"] and errs == "" and not config["rand_addr"]:
216217
errs += "Unknown error occurred\n"
217218
return errs

0 commit comments

Comments
 (0)