summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests/Stop.scala
blob: 7ce9461bffb850c97c9854bcb04e1c1c73f3b993 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// See LICENSE for license details.

package chiselTests

import org.scalatest._
import Chisel._
import Chisel.testers.BasicTester

class StopTester() extends BasicTester {
  io.done := Bool(false)
  stop()
}

class StopSpec extends ChiselFlatSpec {
  "stop()" should "stop and succeed the testbench" in {
    assert(execute{ new StopTester })
  }
}