summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/Chisel')
-rw-r--r--src/main/scala/Chisel/testers/Driver.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/scala/Chisel/testers/Driver.scala b/src/main/scala/Chisel/testers/Driver.scala
index a46c493c..72c6478a 100644
--- a/src/main/scala/Chisel/testers/Driver.scala
+++ b/src/main/scala/Chisel/testers/Driver.scala
@@ -32,10 +32,18 @@ package Chisel.testers
import Chisel._
object TesterDriver {
+ /** For use with modules that should successfully be elaborated by the
+ * frontend, and which can be turned into executeables with error codes. */
def execute(t: => BasicTester): Boolean = {
val circuit = Builder.build(Module(t))
//val executable = invokeFIRRTL(circuit)
//Process(executable) !
true
}
+
+ /** For use with modules that should illicit errors from the frontend
+ * or which produce IR with consistantly checkable properties. */
+ def elaborate(t: => Module): Circuit = {
+ Builder.build(Module(t))
+ }
}