From 33192eb57939c4bf38ec7cb63aa7156632ef0076 Mon Sep 17 00:00:00 2001 From: "Felipe S. Prado" Date: Mon, 26 Nov 2018 13:38:47 +0100 Subject: [PATCH] SREF phases taken into account when checking the maximum time without refresh --- DRAMSys/traceAnalyzer/scripts/tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DRAMSys/traceAnalyzer/scripts/tests.py b/DRAMSys/traceAnalyzer/scripts/tests.py index 2b2b00b4..501ce151 100755 --- a/DRAMSys/traceAnalyzer/scripts/tests.py +++ b/DRAMSys/traceAnalyzer/scripts/tests.py @@ -512,11 +512,12 @@ def max_number_ref_burst(connection): return TestSuceeded() +@test @test def max_time_without_ref(connection): - """Checks that the maximum time allowed between REFA commands""" + """Checks that the maximum time allowed between REFA/SREF commands is not exceeded""" cursor = connection.cursor() - query = """SELECT PhaseBegin, PhaseEnd FROM phases WHERE PhaseName = 'REFA' """ + query = """SELECT PhaseBegin, PhaseEnd FROM phases WHERE PhaseName = 'REFA' OR PhaseName = 'SREF' """ prevrow = [0] * 2 flexibleRef = getFlexibleRef(connection) maxRefBurst = getMaxRefBurst(connection)