Skip to content

Commit 7d7f1ad

Browse files
committed
Incorporate fixes to Flo/Dbl support and new Tester protocol.
Remove artificial delay. Use "lowest-bit-tolerant" Float expect.
1 parent 54a18f3 commit 7d7f1ad

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/FIR.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ class FIRTests(c: FIR) extends Tester(c) {
4343
poke(c.io.x, lx.litValue())
4444
val res = x * c.ws(0).floLitValue + px * c.ws(1).floLitValue
4545
println("TST X = " + x + " Flo(x) " + lx.floLitValue + " RES = " + res);
46-
px = x
46+
val expectedFloat = java.lang.Float.intBitsToFloat(Flo(res).litValue().toInt)
47+
expect(c.io.z, expectedFloat)
4748
step(1)
48-
expect(c.io.z, Flo(res).litValue())
49+
px = x
4950
}
50-
// CURRENTLY FAILS
51-
ok = true
5251
}

0 commit comments

Comments
 (0)