Fix TracerV test
This commit is contained in:
parent
e9521e0344
commit
503d2135c5
|
@ -1 +1 @@
|
|||
Subproject commit 8644a571dc5919cd6a1962ef6f100050fa4ac42a
|
||||
Subproject commit c52d7e740fe448c9da5fe3dc1223125b36571ceb
|
|
@ -111,8 +111,12 @@ abstract class FireSimTestSuite(
|
|||
}
|
||||
val resetLength = 50
|
||||
val verilatedOutput = getLines(new File(outDir, s"/${verilatedLog}"))
|
||||
val synthPrintOutput = getLines(new File(genDir, s"/TRACEFILE"), resetLength + 1)
|
||||
assert(verilatedOutput.size == synthPrintOutput.size, "Outputs differ in length")
|
||||
val synthPrintOutput = getLines(new File(genDir, s"/TRACEFILE"), resetLength)
|
||||
// We allow one extra token in the synthesized log since it may slip
|
||||
// ahead of the rest of the model by a single cycle
|
||||
assert(((verilatedOutput.size + 1) == synthPrintOutput.size)||
|
||||
verilatedOutput.size == synthPrintOutput.size,
|
||||
"Outputs differ in length")
|
||||
assert(verilatedOutput.nonEmpty)
|
||||
for ( (vPrint, sPrint) <- verilatedOutput.zip(synthPrintOutput) ) {
|
||||
assert(vPrint == sPrint)
|
||||
|
|
Loading…
Reference in New Issue