summaryrefslogtreecommitdiff
path: root/src/main/scala/Driver.scala
diff options
context:
space:
mode:
authorjackbackrack2015-05-07 10:28:50 -0700
committerjackbackrack2015-05-07 10:28:50 -0700
commite9b4d9ea3ec38db12b37f81994c28b8a28b6f88e (patch)
tree44a99c722f65190653c65d54984d8ef95dffacab /src/main/scala/Driver.scala
parent458ba72d021623c14725c98df7ff3fa6fa5ba550 (diff)
add better testing support, better width inference and padding, remove old reduce ops
Diffstat (limited to 'src/main/scala/Driver.scala')
-rw-r--r--src/main/scala/Driver.scala26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/main/scala/Driver.scala b/src/main/scala/Driver.scala
index 7d5c2e6a..0b714b6f 100644
--- a/src/main/scala/Driver.scala
+++ b/src/main/scala/Driver.scala
@@ -146,20 +146,22 @@ object Driver extends FileSystemUtilities{
val emitter = new Emitter
val (c, mod) = build{ gen() }
// setTopComponent(c)
- val s = emitter.emit( c )
- val filename = c.main + ".fir"
- // println("FILENAME " + filename)
- // println("S = " + s)
- val out = createOutputFile(filename)
- out.write(s)
- /* Params - If dumping design, dump space to pDir*/
- if (chiselConfigMode == None || chiselConfigMode.get == "instance") {
- if(chiselConfigDump && !Dump.dump.isEmpty) {
- val w = createOutputFile(appendString(Some(topComponent.name),chiselConfigClassName) + ".prm")
- w.write(Dump.getDump); w.close
+ if (!isTesting) {
+ val s = emitter.emit( c )
+ val filename = c.main + ".fir"
+ // println("FILENAME " + filename)
+ // println("S = " + s)
+ val out = createOutputFile(filename)
+ out.write(s)
+ /* Params - If dumping design, dump space to pDir*/
+ if (chiselConfigMode == None || chiselConfigMode.get == "instance") {
+ if(chiselConfigDump && !Dump.dump.isEmpty) {
+ val w = createOutputFile(appendString(Some(topComponent.name),chiselConfigClassName) + ".prm")
+ w.write(Dump.getDump); w.close
+ }
}
+ out.close()
}
- out.close()
(c, mod)
}