summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorducky2015-12-09 14:48:25 -0800
committerducky2015-12-09 14:48:25 -0800
commit996ea685649136229b62579bdc1aecdb7e14d4dc (patch)
tree73a485592cbadbde4be8f97ba2c8c73cf63dcd99 /src
parentcd016b42a0c940f671bdd3c117b8f0ae3c4b30b5 (diff)
Optional additional Verilog sources to include in execute
Diffstat (limited to 'src')
-rw-r--r--src/main/scala/Chisel/testers/TesterDriver.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/scala/Chisel/testers/TesterDriver.scala b/src/main/scala/Chisel/testers/TesterDriver.scala
index 4c6134f0..90dc9355 100644
--- a/src/main/scala/Chisel/testers/TesterDriver.scala
+++ b/src/main/scala/Chisel/testers/TesterDriver.scala
@@ -8,7 +8,7 @@ import java.io.File
object TesterDriver extends BackendCompilationUtilities with FileSystemUtilities {
/** For use with modules that should successfully be elaborated by the
* frontend, and which can be turned into executeables with assertions. */
- def execute(t: () => BasicTester): Boolean = {
+ def execute(t: () => BasicTester, additionalVSources: Seq[File] = Seq()): Boolean = {
// Invoke the chisel compiler to get the circuit's IR
val circuit = Driver.elaborate(t)
@@ -29,7 +29,7 @@ object TesterDriver extends BackendCompilationUtilities with FileSystemUtilities
// Use sys.Process to invoke a bunch of backend stuff, then run the resulting exe
if (((new File(System.getProperty("user.dir") + "/src/main/resources/top.cpp") #> cppHarness) #&&
firrtlToVerilog(prefix, dir) #&&
- verilogToCpp(prefix, dir, vDut, Seq(), cppHarness, vH) #&&
+ verilogToCpp(prefix, dir, vDut, additionalVSources, cppHarness, vH) #&&
cppToExe(prefix, dir)).! == 0) {
executeExpectingSuccess(prefix, dir)
} else {