summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/testers/BasicTester.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/Chisel/testers/BasicTester.scala')
-rw-r--r--src/main/scala/Chisel/testers/BasicTester.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/scala/Chisel/testers/BasicTester.scala b/src/main/scala/Chisel/testers/BasicTester.scala
index 6807a30e..d3e9e7c8 100644
--- a/src/main/scala/Chisel/testers/BasicTester.scala
+++ b/src/main/scala/Chisel/testers/BasicTester.scala
@@ -24,4 +24,11 @@ class BasicTester extends Module {
pushCommand(Stop(Node(clock), 0))
}
}
+
+ /** The finish method provides a hook that subclasses of BasicTester can use to
+ * alter a circuit after their constructor has been called.
+ * For example, a specialized tester subclassing BasicTester could override finish in order to
+ * add flow control logic for a decoupled io port of a device under test
+ */
+ def finish(): Unit = {}
}