Enable coverage tests for chiseltest

This commit is contained in:
Hansung Kim
2023-05-07 22:58:01 -07:00
parent 15889d7667
commit 737a760fcd

View File

@@ -2,6 +2,7 @@ package freechips.rocketchip.tilelink.coalescing
import chisel3._
import chiseltest._
import chiseltest.simulator.VerilatorFlags
import org.scalatest.flatspec.AnyFlatSpec
import freechips.rocketchip.tilelink._
import freechips.rocketchip.util.MultiPortQueue
@@ -230,7 +231,7 @@ class CoalescerUnitTest extends AnyFlatSpec with ChiselScalatestTester {
it should "coalesce fully consecutive accesses at size 4, only once" in {
test(LazyModule(new DummyCoalescingUnitTB()).module)
.withAnnotations(Seq(VerilatorBackendAnnotation, WriteFstAnnotation))
.withAnnotations(Seq(VerilatorBackendAnnotation, VerilatorFlags(Seq("--coverage-line")), WriteFstAnnotation))
// .withAnnotations(Seq(VcsBackendAnnotation, WriteFsdbAnnotation))
{ c =>
val nodes = c.coalIOs.map(_.head)