[TracerV] Drop the first token in comparison tests

This commit is contained in:
David Biancolin
2020-01-20 12:55:47 -08:00
parent 924f440385
commit b47e692b4b

View File

@@ -113,7 +113,8 @@ abstract class FireSimTestSuite(
case line if line.startsWith(printfPrefix) => line.stripPrefix(printfPrefix) })
// Last bit indicates the core was under reset; reject those tokens
val synthPrintOutput = getLines(new File(genDir, s"/TRACEFILE")).filter(line =>
// Tail to drop the first token which is initialized in the channel
val synthPrintOutput = getLines(new File(genDir, s"/TRACEFILE")).tail.filter(line =>
(line.last.toInt & 1) == 0)
assert(math.abs(verilatedOutput.size - synthPrintOutput.size) <= 1,