summaryrefslogtreecommitdiff
path: root/src/main/scala/Chisel/testers
diff options
context:
space:
mode:
authorHenry Cook2015-08-14 14:28:56 -0700
committerHenry Cook2015-08-14 14:28:56 -0700
commit3dade9a48f059e3eecc7048bcd1cd1db48cdb56a (patch)
tree447f263f04de6ac3eac6e943ab57febf94e54f62 /src/main/scala/Chisel/testers
parent0e1297437944956b3dd443436258f4c682190ca4 (diff)
more tests
Diffstat (limited to 'src/main/scala/Chisel/testers')
-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))
+ }
}